diff --git a/scripts/build.js b/scripts/build.js index 41b8d0ffed6..d80d5a6d1bf 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -192,7 +192,7 @@ async function build(name, inputFile, outputPath, outputFile, isProd, format) { tsconfig: path.resolve('./tsconfig.build.json'), }, ], - ['@babel/preset-react', {runtime: 'automatic'}], + ['@babel/preset-react', {runtime: isWWW ? 'classic' : 'automatic'}], ], }), {