@@ -34,6 +34,7 @@ interface CompilerOptions {
34
34
locale ?: string ;
35
35
mapRoot ?: string ; // Optionally Specifies the location where debugger should locate map files after deployment
36
36
module ?: string ;
37
+ moduleResolution ?: string ;
37
38
newLine ?: string ;
38
39
noEmit ?: boolean ;
39
40
noEmitHelpers ?: boolean ;
@@ -75,6 +76,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
75
76
locals : { type : types . string } ,
76
77
mapRoot : { type : types . string } ,
77
78
module : { type : types . string , validValues : [ 'commonjs' , 'amd' , 'system' , 'umd' ] } ,
79
+ moduleResolution : { type : types . string , validValues : [ 'classic' , 'node' ] } ,
78
80
newLine : { type : types . string } ,
79
81
noEmit : { type : types . boolean } ,
80
82
noEmitHelpers : { type : types . boolean } ,
@@ -212,6 +214,7 @@ var typeScriptVersion = '1.5.0-beta';
212
214
export var defaults : ts . CompilerOptions = {
213
215
target : ts . ScriptTarget . ES5 ,
214
216
module : ts . ModuleKind . CommonJS ,
217
+ moduleResolution : ts . ModuleResolutionKind . NodeJs ,
215
218
isolatedModules : false ,
216
219
jsx : ts . JsxEmit . React ,
217
220
experimentalDecorators : true ,
@@ -238,6 +241,10 @@ var typescriptEnumMap = {
238
241
'system' : ts . ModuleKind . System ,
239
242
'umd' : ts . ModuleKind . UMD ,
240
243
} ,
244
+ moduleResolution : {
245
+ 'node' : ts . ModuleResolutionKind . NodeJs ,
246
+ 'classic' : ts . ModuleResolutionKind . Classic
247
+ } ,
241
248
jsx : {
242
249
'preserve' : ts . JsxEmit . Preserve ,
243
250
'react' : ts . JsxEmit . React
0 commit comments