@@ -8,7 +8,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
88const { BundleAnalyzerPlugin } = require ( "webpack-bundle-analyzer" ) ;
99const { NativeScriptWorkerPlugin } = require ( "nativescript-worker-loader/NativeScriptWorkerPlugin" ) ;
1010const UglifyJsPlugin = require ( "uglifyjs-webpack-plugin" ) ;
11- const hashSalt = Date . now ( ) . toString ( ) ;
11+ const hashSalt = Date . now ( ) . toString ( ) ;
1212
1313module . exports = env => {
1414 // Add your custom Activities, Services and other Android app components here.
@@ -115,7 +115,7 @@ module.exports = env => {
115115 test : ( module , chunks ) => {
116116 const moduleName = module . nameForCondition ? module . nameForCondition ( ) : '' ;
117117 return / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / . test ( moduleName ) ||
118- appComponents . some ( comp => comp === moduleName ) ;
118+ appComponents . some ( comp => comp === moduleName ) ;
119119
120120 } ,
121121 enforce : true ,
@@ -179,7 +179,7 @@ module.exports = env => {
179179 use : "nativescript-dev-webpack/markup-hot-loader"
180180 } ,
181181
182- { test : / \. ( h t m l | x m l ) $ / , use : "nativescript-dev-webpack/xml-namespace-loader" } ,
182+ { test : / \. ( h t m l | x m l ) $ / , use : "nativescript-dev-webpack/xml-namespace-loader" } ,
183183
184184 {
185185 test : / \. c s s $ / ,
@@ -201,6 +201,9 @@ module.exports = env => {
201201 options : {
202202 configFile : "tsconfig.tns.json" ,
203203 allowTsInNodeModules : true ,
204+ compilerOptions : {
205+ sourceMap
206+ }
204207 } ,
205208 }
206209 } ,
@@ -213,7 +216,7 @@ module.exports = env => {
213216 "process" : undefined ,
214217 } ) ,
215218 // Remove all files from the out dir.
216- new CleanWebpackPlugin ( [ `${ dist } /**/*` ] ) ,
219+ new CleanWebpackPlugin ( [ `${ dist } /**/*` ] ) ,
217220 // Copy assets to out dir. Add your own globs as needed.
218221 new CopyWebpackPlugin ( [
219222 { from : { glob : "fonts/**" } } ,
@@ -226,10 +229,10 @@ module.exports = env => {
226229 // configures the WebPack runtime to be generated inside the snapshot
227230 // module and no `runtime.js` module exist.
228231 ( snapshot ? [ ] : [ "./runtime" ] )
229- . concat ( [
230- "./vendor" ,
231- "./bundle" ,
232- ] )
232+ . concat ( [
233+ "./vendor" ,
234+ "./bundle" ,
235+ ] )
233236 ) ,
234237 // For instructions on how to set up workers with webpack
235238 // check out https://github.com/nativescript/worker-loader
0 commit comments