Skip to content

Commit

Permalink
fix(build): use crossorigin for module preloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tengmaoqing authored May 10, 2022
1 parent e10c0c1 commit 85cab70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ export function buildHtmlPlugin(config: ResolvedConfig): Plugin {
tag: 'link',
attrs: {
rel: 'modulepreload',
crossorigin: true,
href: toPublicPath(chunk.fileName, config)
}
})
Expand Down

0 comments on commit 85cab70

Please sign in to comment.