提交 4d684085 编写于 作者: M Matt Bierner

Set "module": "CommonJS" for default jsconfig

This is the default module config for our implicit projects.
上级 298e736f
...@@ -15,7 +15,10 @@ function getEmptyConfig( ...@@ -15,7 +15,10 @@ function getEmptyConfig(
isTypeScriptProject: boolean, isTypeScriptProject: boolean,
config: TypeScriptServiceConfiguration config: TypeScriptServiceConfiguration
) { ) {
const compilerOptions = ['"target": "ES6"']; const compilerOptions = [
'"target": "ES6"',
'"module": "CommonJS"'
];
if (!isTypeScriptProject && config.checkJs) { if (!isTypeScriptProject && config.checkJs) {
compilerOptions.push('"checkJs": true'); compilerOptions.push('"checkJs": true');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册