-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from rollup/sync-5d91210d
docs(en): merge rollup/master into rollup-docs-cn/master @ 5d91210
- Loading branch information
Showing
354 changed files
with
5,128 additions
and
1,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import path from 'path'; | ||
import type { Plugin } from 'vite'; | ||
|
||
export function replacePathPicomatch(): Plugin { | ||
return { | ||
enforce: 'pre', | ||
load(id) { | ||
if (id === 'picomatch') { | ||
return 'export default {}'; | ||
} | ||
}, | ||
name: 'replace-picomatch', | ||
resolveId(source) { | ||
if (source === 'picomatch') { | ||
return { id: 'picomatch' }; | ||
} | ||
if (source === 'path') { | ||
return path.resolve(__dirname, '../../browser/src/path.ts'); | ||
} | ||
} | ||
}; | ||
} |
Oops, something went wrong.