From cf554801639c1af49e4d084c753f97fd6b5f80ef Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 20 May 2022 23:25:54 +0800 Subject: [PATCH] build: target es2019/node 12 for node dist files close #5957 --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 16f6a465..1bc27969 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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