Set "module": "CommonJS" for default jsconfig

This is the default module config for our implicit projects.
This commit is contained in:
Matt Bierner
2017-10-27 15:40:45 -07:00
parent 298e736f6a
commit 4d684085ff

View File

@@ -15,7 +15,10 @@ function getEmptyConfig(
isTypeScriptProject: boolean,
config: TypeScriptServiceConfiguration
) {
const compilerOptions = ['"target": "ES6"'];
const compilerOptions = [
'"target": "ES6"',
'"module": "CommonJS"'
];
if (!isTypeScriptProject && config.checkJs) {
compilerOptions.push('"checkJs": true');
}