Skip to content

Commit

Permalink
fix: browserslist-rs compat
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Feb 8, 2023
1 parent a600f7c commit d8aff61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
&& !Array.isArray(options.modernPolyfills)
) {
// analyze and record modern polyfills
await detectPolyfills(raw, { esmodules: true }, modernPolyfills)
await detectPolyfills(raw, 'supports es6-module', modernPolyfills)
}

const ms = new MagicString(raw)
Expand Down

0 comments on commit d8aff61

Please sign in to comment.