Skip to content

Commit

Permalink
chore: remove rollup namespaceToStringTag (#8569)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 13, 2022
1 parent c5c424a commit b85802a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/node/build.ts
Expand Up @@ -460,6 +460,9 @@ async function doBuild(
exports: cjsSsrBuild ? 'named' : 'auto',
sourcemap: options.sourcemap,
name: libOptions ? libOptions.name : undefined,
// es2015 enables `generatedCode.symbols`
// - #764 add `Symbol.toStringTag` when build es module into cjs chunk
// - #1048 add `Symbol.toStringTag` for module default export
generatedCode: 'es2015',
entryFileNames: ssr
? `[name].${jsExt}`
Expand All @@ -472,9 +475,6 @@ async function doBuild(
assetFileNames: libOptions
? `[name].[ext]`
: path.posix.join(options.assetsDir, `[name].[hash].[ext]`),
// #764 add `Symbol.toStringTag` when build es module into cjs chunk
// #1048 add `Symbol.toStringTag` for module default export
namespaceToStringTag: true,
inlineDynamicImports:
output.format === 'umd' ||
output.format === 'iife' ||
Expand Down

0 comments on commit b85802a

Please sign in to comment.