Skip to content

Commit

Permalink
feat: enable generatedCode: 'es2015' for rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 23, 2021
1 parent 7283eda commit ae0ee6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ async function doBuild(
exports: ssr ? 'named' : 'auto',
sourcemap: options.sourcemap,
name: libOptions ? libOptions.name : undefined,
generatedCode: 'es2015',
entryFileNames: ssr
? `[name].js`
: libOptions
Expand Down

0 comments on commit ae0ee6d

Please sign in to comment.