diff --git a/next.config.mjs b/next.config.ts similarity index 97% rename from next.config.mjs rename to next.config.ts index 54e4e049..246824ec 100644 --- a/next.config.mjs +++ b/next.config.ts @@ -1,3 +1,5 @@ +import type { NextConfig } from "next" + const isDev = process.argv.indexOf("dev") !== -1 const isBuild = process.argv.indexOf("build") !== -1 if (!process.env.VELITE_STARTED && (isDev || isBuild)) { @@ -6,13 +8,13 @@ if (!process.env.VELITE_STARTED && (isDev || isBuild)) { await build({ watch: isDev, clean: !isDev }) } -/** @type {import("next").NextConfig} */ export default { devIndicators: { buildActivity: false, appIsrStatus: false, }, experimental: { + reactCompiler: true, optimizePackageImports: ["shiki"], }, async redirects() { @@ -104,4 +106,4 @@ export default { }, ] }, -} +} satisfies NextConfig diff --git a/tsconfig.json b/tsconfig.json index bf2220fc..ece6c98b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "target": "es5", + "target": "ESNext", "downlevelIteration": true, "plugins": [ {