@@ -20,6 +20,7 @@ var compilerOptionsValidation = {
20
20
locals : { type : types . string } ,
21
21
mapRoot : { type : types . string } ,
22
22
module : { type : types . string , validValues : [ 'commonjs' , 'amd' , 'system' , 'umd' ] } ,
23
+ moduleResolution : { type : types . string , validValues : [ 'classic' , 'node' ] } ,
23
24
newLine : { type : types . string } ,
24
25
noEmit : { type : types . boolean } ,
25
26
noEmitHelpers : { type : types . boolean } ,
@@ -73,6 +74,7 @@ var typeScriptVersion = '1.5.0-beta';
73
74
exports . defaults = {
74
75
target : ts . ScriptTarget . ES5 ,
75
76
module : ts . ModuleKind . CommonJS ,
77
+ moduleResolution : ts . ModuleResolutionKind . NodeJs ,
76
78
isolatedModules : false ,
77
79
jsx : ts . JsxEmit . React ,
78
80
experimentalDecorators : true ,
@@ -98,6 +100,10 @@ var typescriptEnumMap = {
98
100
'system' : ts . ModuleKind . System ,
99
101
'umd' : ts . ModuleKind . UMD ,
100
102
} ,
103
+ moduleResolution : {
104
+ 'node' : ts . ModuleResolutionKind . NodeJs ,
105
+ 'classic' : ts . ModuleResolutionKind . Classic
106
+ } ,
101
107
jsx : {
102
108
'preserve' : ts . JsxEmit . Preserve ,
103
109
'react' : ts . JsxEmit . React
0 commit comments