[英]Typescript configuration: is module setting case sensitive?
I've got a question coming from the following two tsconfig.json
files, they're in the same project, one extends the other:我有一个来自以下两个
tsconfig.json
文件的问题,它们在同一个项目中,一个扩展另一个:
{
"compilerOptions": {
"experimentalDecorators": true,
"skipLibCheck": true,
"module": "ESNext"
}
// ...
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"module": "esNext",
},
// ...
}
From another answer :从另一个答案:
In order to make code portable, it's important to make sure the casing in a module specifier matches the referenced file name exactly.
为了使代码可移植,确保模块说明符中的大小写与引用的文件名完全匹配很重要。
I'm not sure what does the OP refers to, when saying "to make code portable", any clarification about it?我不确定 OP 指的是什么,当说“使代码可移植”时,有什么澄清吗?
Thanks谢谢
It seems to be case-insensitive as I tried "esnext" and "ESnext" and got the same output.当我尝试“esnext”和“ESnext”并得到相同的 output 时,它似乎不区分大小写。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.