1
- module . exports = function ( config ) {
1
+ module . exports = function ( config ) {
2
2
const options = {
3
3
4
4
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -11,7 +11,7 @@ module.exports = function(config) {
11
11
12
12
13
13
// list of files / patterns to load in the browser
14
- files : [ $ { testFiles } ] ,
14
+ files : [ $ { testFiles } ] ,
15
15
16
16
17
17
// list of files to exclude
@@ -75,7 +75,7 @@ module.exports = function(config) {
75
75
76
76
setWebpackPreprocessor ( config , options ) ;
77
77
setWebpack ( config , options ) ;
78
-
78
+
79
79
config . set ( options ) ;
80
80
}
81
81
@@ -87,7 +87,7 @@ function setWebpackPreprocessor(config, options) {
87
87
88
88
options . files . forEach ( file => {
89
89
if ( ! options . preprocessors [ file ] ) {
90
- options . preprocessors [ file ] = [ ] ;
90
+ options . preprocessors [ file ] = [ ]
91
91
}
92
92
options . preprocessors [ file ] . push ( 'webpack' ) ;
93
93
} ) ;
@@ -98,6 +98,7 @@ function setWebpack(config, options) {
98
98
if ( config && config . bundle ) {
99
99
const env = { } ;
100
100
env [ config . platform ] = true ;
101
+ env . sourceMap = config . debugBrk ;
101
102
options . webpack = require ( './webpack.config' ) ( env ) ;
102
103
delete options . webpack . entry ;
103
104
delete options . webpack . output . libraryTarget ;
0 commit comments