@@ -8,7 +8,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
8
8
const { BundleAnalyzerPlugin } = require ( "webpack-bundle-analyzer" ) ;
9
9
const { NativeScriptWorkerPlugin } = require ( "nativescript-worker-loader/NativeScriptWorkerPlugin" ) ;
10
10
const UglifyJsPlugin = require ( "uglifyjs-webpack-plugin" ) ;
11
- const hashSalt = Date . now ( ) . toString ( ) ;
11
+ const hashSalt = Date . now ( ) . toString ( ) ;
12
12
13
13
module . exports = env => {
14
14
// Add your custom Activities, Services and other Android app components here.
@@ -115,7 +115,7 @@ module.exports = env => {
115
115
test : ( module , chunks ) => {
116
116
const moduleName = module . nameForCondition ? module . nameForCondition ( ) : '' ;
117
117
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 ) ;
119
119
120
120
} ,
121
121
enforce : true ,
@@ -179,7 +179,7 @@ module.exports = env => {
179
179
use : "nativescript-dev-webpack/markup-hot-loader"
180
180
} ,
181
181
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" } ,
183
183
184
184
{
185
185
test : / \. c s s $ / ,
@@ -201,6 +201,9 @@ module.exports = env => {
201
201
options : {
202
202
configFile : "tsconfig.tns.json" ,
203
203
allowTsInNodeModules : true ,
204
+ compilerOptions : {
205
+ sourceMap
206
+ }
204
207
} ,
205
208
}
206
209
} ,
@@ -213,7 +216,7 @@ module.exports = env => {
213
216
"process" : undefined ,
214
217
} ) ,
215
218
// Remove all files from the out dir.
216
- new CleanWebpackPlugin ( [ `${ dist } /**/*` ] ) ,
219
+ new CleanWebpackPlugin ( [ `${ dist } /**/*` ] ) ,
217
220
// Copy assets to out dir. Add your own globs as needed.
218
221
new CopyWebpackPlugin ( [
219
222
{ from : { glob : "fonts/**" } } ,
@@ -226,10 +229,10 @@ module.exports = env => {
226
229
// configures the WebPack runtime to be generated inside the snapshot
227
230
// module and no `runtime.js` module exist.
228
231
( snapshot ? [ ] : [ "./runtime" ] )
229
- . concat ( [
230
- "./vendor" ,
231
- "./bundle" ,
232
- ] )
232
+ . concat ( [
233
+ "./vendor" ,
234
+ "./bundle" ,
235
+ ] )
233
236
) ,
234
237
// For instructions on how to set up workers with webpack
235
238
// check out https://github.com/nativescript/worker-loader
0 commit comments