@@ -30,6 +30,9 @@ const nativeScriptDevWebpack = {
3030 getAppPath : ( ) => 'app' ,
3131 getEntryModule : ( ) => 'EntryModule' ,
3232 hasRootLevelScopedModules : ( ) => false ,
33+ hasRootLevelScopedAngular : ( ) => false ,
34+ processTsPathsForScopedModules : ( ) => false ,
35+ processTsPathsForScopedAngular : ( ) => false ,
3336 getResolver : ( ) => null ,
3437 getConvertedExternals : nsWebpackIndex . getConvertedExternals ,
3538 getSourceMapFilename : nsWebpackIndex . getSourceMapFilename ,
@@ -48,7 +51,7 @@ const webpackConfigAngular = proxyquire('./webpack.angular', {
4851 'nativescript-dev-webpack/transformers/ns-replace-lazy-loader' : { nsReplaceLazyLoader : ( ) => { return FakeLazyTransformerFlag } } ,
4952 'nativescript-dev-webpack/transformers/ns-support-hmr-ng' : { nsSupportHmrNg : ( ) => { return FakeHmrTransformerFlag } } ,
5053 '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 ; } } ,
5255 'nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin' : { getAngularCompilerPlugin : ( ) => { return AngularCompilerStub ; } } ,
5356 '@ngtools/webpack' : {
5457 AngularCompilerPlugin : AngularCompilerStub
@@ -59,7 +62,7 @@ const webpackConfigAngular = proxyquire('./webpack.angular', {
5962const webpackConfigTypeScript = proxyquire ( './webpack.typescript' , {
6063 'nativescript-dev-webpack' : nativeScriptDevWebpack ,
6164 '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 ; } } ,
6366 'terser-webpack-plugin' : TerserJsStub
6467} ) ;
6568
@@ -362,6 +365,7 @@ describe('webpack.config.js', () => {
362365 describe ( `alias for webpack.${ type } .js (${ platform } )` , ( ) => {
363366 it ( 'should add alias when @nativescript/core is at the root of node_modules' , ( ) => {
364367 nativeScriptDevWebpack . hasRootLevelScopedModules = ( ) => true ;
368+ nativeScriptDevWebpack . hasRootLevelScopedAngular = ( ) => true ;
365369 const input = getInput ( { platform } ) ;
366370 const config = webpackConfig ( input ) ;
367371 expect ( config . resolve . alias [ 'tns-core-modules' ] ) . toBe ( '@nativescript/core' ) ;
@@ -371,6 +375,7 @@ describe('webpack.config.js', () => {
371375 } ) ;
372376 it ( 'shouldn\'t add alias when @nativescript/core is not at the root of node_modules' , ( ) => {
373377 nativeScriptDevWebpack . hasRootLevelScopedModules = ( ) => false ;
378+ nativeScriptDevWebpack . hasRootLevelScopedAngular = ( ) => false ;
374379 const input = getInput ( { platform } ) ;
375380 const config = webpackConfig ( input ) ;
376381 expect ( config . resolve . alias [ 'tns-core-modules' ] ) . toBeUndefined ( ) ;
0 commit comments