This repository was archived by the owner on Dec 1, 2019. It is now read-only.
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ Specify path to a TS config file. Useful when you have multiple config files. Th
99
99
100
100
Use this setting to force loader to use webpack's way to load files. Useful only with ts-jsx-loader. Builds may become slower.
101
101
102
- ### rewriteImports * (string )*
102
+ ### rewriteImports * (array )*
103
103
104
- Comma-separated list of modules that must be processed by webpack in imports. Useful if you want to use ` some-lib `
104
+ Array of modules that must be processed by webpack in imports. Useful if you want to use ` some-lib `
105
105
with pure TS files inside your app.
106
106
107
107
### externals * (string)*
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ function pathWithoutExt(fileName) {
31
31
}
32
32
33
33
function needRewrite ( rewriteImports , importPath ) : boolean {
34
- return rewriteImports && _ . any ( rewriteImports . split ( ',' ) , ( i ) => importPath . indexOf ( i ) !== - 1 )
34
+ return rewriteImports && _ . any ( rewriteImports , ( i ) => {
35
+ return importPath . split ( '/' ) [ 0 ] == i
36
+ } )
35
37
}
36
38
37
39
function updateText ( text , pos , end , newText ) : string {
You can’t perform that action at this time.
0 commit comments