From 67da66c908611145a826f53944cd172ee5a74b20 Mon Sep 17 00:00:00 2001 From: sabertazimi Date: Wed, 4 May 2022 21:38:33 +0800 Subject: [PATCH] fix(components-Editor): disable SWC minifier close #796 --- next.config.js | 3 ++- tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index ddcc400af..3a6040505 100644 --- a/next.config.js +++ b/next.config.js @@ -16,7 +16,8 @@ const nextConfig = { disable: !isProduction, }, reactStrictMode: true, - swcMinify: isProduction, + // TODO: enable SWC minifier when it's ready. + // swcMinify: isProduction, }; module.exports = NextPwa(nextConfig); diff --git a/tsconfig.json b/tsconfig.json index da99ca97e..c0ac5e265 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,8 @@ "__mocks__" ], "compilerOptions": { - "target": "es5", - "module": "esnext", + "target": "ES5", + "module": "ESNext", "moduleResolution": "node", "lib": ["DOM", "DOM.Iterable", "ES2021", "ESNext"], "allowJs": true,