mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
Set "module": "CommonJS" for default jsconfig
This is the default module config for our implicit projects.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user