From 377ed294d94d111edd217eb7c7834047873824c3 Mon Sep 17 00:00:00 2001 From: "caiwendi88@gmail.com" Date: Tue, 18 Apr 2023 11:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 2 ++ tsconfig.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index f7d5ff086..5f46ae940 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + reactStrictMode: true, + compress: true, experimental: { appDir: true, }, diff --git a/tsconfig.json b/tsconfig.json index c73eef3e8..89d1bf097 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,14 @@ { "compilerOptions": { - "target": "ES2015", - "lib": ["dom", "dom.iterable", "esnext"], + "target": "ESNext", + "lib": ["dom", "dom.iterable", "ESNext"], "allowJs": true, "skipLibCheck": true, "strict": true, "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, - "module": "esnext", + "module": "ESNext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true,