Skip to content

Commit

Permalink
build: target es2019/node 12 for node dist files
Browse files Browse the repository at this point in the history
close #5957
  • Loading branch information
yyx990803 committed May 20, 2022
1 parent 80de1ad commit cf55480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -107,7 +107,7 @@ function createConfig(format, output, plugins = []) {
cacheRoot: path.resolve(__dirname, 'node_modules/.rts2_cache'),
tsconfigOverride: {
compilerOptions: {
target: isServerRenderer || isNodeBuild ? 'es2020' : 'es2015',
target: isServerRenderer || isNodeBuild ? 'es2019' : 'es2015',
sourceMap: output.sourcemap,
declaration: shouldEmitDeclarations,
declarationMap: shouldEmitDeclarations
Expand Down

0 comments on commit cf55480

Please sign in to comment.