Skip to content

Commit

Permalink
fix(build): use crossorigin for modern polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 1, 2022
1 parent 83254dc commit 9ec82d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
tag: 'script',
attrs: {
type: 'module',
crossorigin: true,
src: `${config.base}${modernPolyfillFilename}`
}
})
Expand Down

0 comments on commit 9ec82d4

Please sign in to comment.