@@ -17,7 +17,7 @@ class AngularCompilerStub {
1717} ;
1818
1919let uglifyJsOptions : any ;
20- class UglifyJsStub {
20+ class TerserJsStub {
2121 constructor ( options ) {
2222 uglifyJsOptions = options ;
2323 }
@@ -50,27 +50,27 @@ const webpackConfigAngular = proxyquire('./webpack.angular', {
5050 '@ngtools/webpack' : {
5151 AngularCompilerPlugin : AngularCompilerStub
5252 } ,
53- 'uglifyjs -webpack-plugin' : UglifyJsStub
53+ 'terser -webpack-plugin' : TerserJsStub
5454} ) ;
5555
5656const webpackConfigTypeScript = proxyquire ( './webpack.typescript' , {
5757 'nativescript-dev-webpack' : nativeScriptDevWebpack ,
5858 'nativescript-dev-webpack/nativescript-target' : emptyObject ,
59- 'uglifyjs -webpack-plugin' : UglifyJsStub
59+ 'terser -webpack-plugin' : TerserJsStub
6060} ) ;
6161
6262const webpackConfigJavaScript = proxyquire ( './webpack.javascript' , {
6363 'nativescript-dev-webpack' : nativeScriptDevWebpack ,
6464 'nativescript-dev-webpack/nativescript-target' : emptyObject ,
65- 'uglifyjs -webpack-plugin' : UglifyJsStub
65+ 'terser -webpack-plugin' : TerserJsStub
6666} ) ;
6767
6868const webpackConfigVue = proxyquire ( './webpack.vue' , {
6969 'nativescript-dev-webpack' : nativeScriptDevWebpack ,
7070 'nativescript-dev-webpack/nativescript-target' : emptyObject ,
7171 'vue-loader/lib/plugin' : EmptyClass ,
7272 'nativescript-vue-template-compiler' : emptyObject ,
73- 'uglifyjs -webpack-plugin' : UglifyJsStub
73+ 'terser -webpack-plugin' : TerserJsStub
7474} ) ;
7575
7676describe ( 'webpack.config.js' , ( ) => {
0 commit comments