@@ -30,6 +30,9 @@ const nativeScriptDevWebpack = {
30
30
getAppPath : ( ) => 'app' ,
31
31
getEntryModule : ( ) => 'EntryModule' ,
32
32
hasRootLevelScopedModules : ( ) => false ,
33
+ hasRootLevelScopedAngular : ( ) => false ,
34
+ processTsPathsForScopedModules : ( ) => false ,
35
+ processTsPathsForScopedAngular : ( ) => false ,
33
36
getResolver : ( ) => null ,
34
37
getConvertedExternals : nsWebpackIndex . getConvertedExternals ,
35
38
getSourceMapFilename : nsWebpackIndex . getSourceMapFilename ,
@@ -48,7 +51,7 @@ const webpackConfigAngular = proxyquire('./webpack.angular', {
48
51
'nativescript-dev-webpack/transformers/ns-replace-lazy-loader' : { nsReplaceLazyLoader : ( ) => { return FakeLazyTransformerFlag } } ,
49
52
'nativescript-dev-webpack/transformers/ns-support-hmr-ng' : { nsSupportHmrNg : ( ) => { return FakeHmrTransformerFlag } } ,
50
53
'nativescript-dev-webpack/utils/ast-utils' : { getMainModulePath : ( ) => { return "fakePath" ; } } ,
51
- 'nativescript-dev-webpack/utils/tsconfig-utils' : { getNoEmitOnErrorFromTSConfig : ( ) => { return false ; } } ,
54
+ 'nativescript-dev-webpack/utils/tsconfig-utils' : { getNoEmitOnErrorFromTSConfig : ( ) => { return false ; } , getCompilerOptionsFromTSConfig : ( ) => { return false ; } } ,
52
55
'nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin' : { getAngularCompilerPlugin : ( ) => { return AngularCompilerStub ; } } ,
53
56
'@ngtools/webpack' : {
54
57
AngularCompilerPlugin : AngularCompilerStub
@@ -59,7 +62,7 @@ const webpackConfigAngular = proxyquire('./webpack.angular', {
59
62
const webpackConfigTypeScript = proxyquire ( './webpack.typescript' , {
60
63
'nativescript-dev-webpack' : nativeScriptDevWebpack ,
61
64
'nativescript-dev-webpack/nativescript-target' : emptyObject ,
62
- 'nativescript-dev-webpack/utils/tsconfig-utils' : { getNoEmitOnErrorFromTSConfig : ( ) => { return false ; } } ,
65
+ 'nativescript-dev-webpack/utils/tsconfig-utils' : { getNoEmitOnErrorFromTSConfig : ( ) => { return false ; } , getCompilerOptionsFromTSConfig : ( ) => { return false ; } } ,
63
66
'terser-webpack-plugin' : TerserJsStub
64
67
} ) ;
65
68
@@ -362,6 +365,7 @@ describe('webpack.config.js', () => {
362
365
describe ( `alias for webpack.${ type } .js (${ platform } )` , ( ) => {
363
366
it ( 'should add alias when @nativescript/core is at the root of node_modules' , ( ) => {
364
367
nativeScriptDevWebpack . hasRootLevelScopedModules = ( ) => true ;
368
+ nativeScriptDevWebpack . hasRootLevelScopedAngular = ( ) => true ;
365
369
const input = getInput ( { platform } ) ;
366
370
const config = webpackConfig ( input ) ;
367
371
expect ( config . resolve . alias [ 'tns-core-modules' ] ) . toBe ( '@nativescript/core' ) ;
@@ -371,6 +375,7 @@ describe('webpack.config.js', () => {
371
375
} ) ;
372
376
it ( 'shouldn\'t add alias when @nativescript/core is not at the root of node_modules' , ( ) => {
373
377
nativeScriptDevWebpack . hasRootLevelScopedModules = ( ) => false ;
378
+ nativeScriptDevWebpack . hasRootLevelScopedAngular = ( ) => false ;
374
379
const input = getInput ( { platform } ) ;
375
380
const config = webpackConfig ( input ) ;
376
381
expect ( config . resolve . alias [ 'tns-core-modules' ] ) . toBeUndefined ( ) ;
0 commit comments