Skip to content

Commit

Permalink
fix(plugin-legacy): prevent esbuild injecting arrow function (#8660)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Jun 19, 2022
1 parent 3b41a8e commit c0e74e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ async function buildPolyfillChunk(
plugins: [polyfillsPlugin(imports, excludeSystemJS)],
build: {
write: false,
target: false,
// if a value above 'es5' is set, esbuild injects helper functions which uses es2015 features
target: 'es5',
minify,
assetsDir,
rollupOptions: {
Expand Down

0 comments on commit c0e74e5

Please sign in to comment.