Skip to content

Commit

Permalink
fix: preload marker incorrect replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 25, 2021
1 parent 2096309 commit 7f83deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnaysisBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin {

// there may still be markers due to inlined dynamic imports, remove
// all the markers regardless
chunk.code = code.replace(preloadMarkerRE, 'void 0')
chunk.code = chunk.code.replace(preloadMarkerRE, 'void 0')
}
}
}
Expand Down

0 comments on commit 7f83deb

Please sign in to comment.