diff --git a/docs/addons/addon-migration-guide.mdx b/docs/addons/addon-migration-guide.mdx index 2e9c50dfbca5..9984decc5e57 100644 --- a/docs/addons/addon-migration-guide.mdx +++ b/docs/addons/addon-migration-guide.mdx @@ -220,17 +220,20 @@ Next, update the `exports` field in your `package.json` to remove mentions of CJ }, ``` -Update `tsconfig.json` to use `esnext` modules. +Update `tsconfig.json`. ```diff title="tsconfig.json" { "compilerOptions": { // ... -- "module": "preserve", -+ "module": "esnext", +- "target": "es2023", ++ "target": "esnext", // ... - "lib": ["es2023", "dom", "dom.iterable"], + "lib": ["esnext", "dom", "dom.iterable"], + // ... +- "rootDir": "./src", ++ "rootDir": ".", }, - "include": ["src/**/*"] + "include": ["src/**/*", "tsup.config.ts"]