mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
change to use esm
This commit is contained in:
1 parent
eb231e4056
commit
78966d351f
10 files changed
+47
-17
No files matched your search
+37
-7
@@ -1,12 +1,42 @@
|
||||
{
|
||||
// "compilerOptions": {
|
||||
// "target": "ESNext",
|
||||
// "module": "ESNext",
|
||||
// "moduleResolution": "Bundler",
|
||||
// "strict": true,
|
||||
// "moduleDetection": "force",
|
||||
// "skipLibCheck": true,
|
||||
// "esModuleInterop": true,
|
||||
// "declaration": true,
|
||||
// "sourceMap": true,
|
||||
// "allowJs": true,
|
||||
// "resolveJsonModule": true,
|
||||
// "isolatedModules": true,
|
||||
// "lib": ["ESNext"]
|
||||
// }
|
||||
// "compilerOptions": {
|
||||
// "esModuleInterop": true,
|
||||
// "skipLibCheck": true,
|
||||
// "target": "ESNext",
|
||||
// "resolveJsonModule": true,
|
||||
// "isolatedModules": true,
|
||||
// "moduleDetection": "force",
|
||||
// "strict": false,
|
||||
// "noUncheckedIndexedAccess": true,
|
||||
// "moduleResolution": "NodeNext",
|
||||
// "module": "NodeNext",
|
||||
// "noEmit": true,
|
||||
// "lib": ["es2022", "dom", "dom.iterable"]
|
||||
// }
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"target": "ESNext", // 要編譯成的 JS 目標版本
|
||||
"module": "NodeNext", // 要編譯成的 module
|
||||
"moduleResolution": "NodeNext", // module 解析方式, default "classic"
|
||||
"esModuleInterop": true, // module 兼容, 會影響 build 方式
|
||||
"allowJs": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
"allowJs": true
|
||||
"skipLibCheck": true,
|
||||
"outDir": "dist"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user