Skip to content

Commit

Permalink
fix: ignore ids that start with \0 in plugin asset, fix vitejs#3424 (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored and fi3ework committed May 22, 2021
1 parent 14276e4 commit 451bddb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vite/src/node/plugins/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export function assetPlugin(config: ResolvedConfig): Plugin {
},

async load(id) {
if (id.startsWith('\0')) {
// Rollup convention, this id should be handled by the
// plugin that marked it with \0
return
}

// raw requests, read from disk
if (rawRE.test(id)) {
const file = checkPublicFile(id, config) || cleanUrl(id)
Expand Down

0 comments on commit 451bddb

Please sign in to comment.