File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 104
104
"sinon-chai" : " ^2.8.0" ,
105
105
"typescript" : " ^2.2.2" ,
106
106
"uglify-js" : " ^2.7.5" ,
107
- "webpack" : " ^1.13 .1"
107
+ "webpack" : " ^2.4 .1"
108
108
},
109
109
"greenkeeper" : {
110
110
"ignore" : [
Original file line number Diff line number Diff line change @@ -111,32 +111,33 @@ module.exports = function(config) {
111
111
devtool : 'inline-source-map' ,
112
112
module : {
113
113
/* Transpile source and test files */
114
- preLoaders : [
114
+ rules : [
115
115
{
116
+ enforce : 'pre' ,
116
117
test : / \. j s x ? $ / ,
117
118
exclude : / n o d e _ m o d u l e s / ,
118
- loader : 'babel' ,
119
- query : {
119
+ loader : 'babel-loader ' ,
120
+ options : {
120
121
loose : 'all' ,
121
122
blacklist : [ 'es6.tailCall' ] ,
122
123
comments : false ,
123
124
compact : true
124
125
}
125
- }
126
- ] ,
127
- /* Only Instrument our source files for coverage */
128
- loaders : [ ] . concat ( coverage ? {
129
- test : / \. j s x ? $ / ,
130
- loader : 'isparta' ,
131
- include : / s r c /
132
- } : [ ] )
126
+ } ,
127
+ /* Only Instrument our source files for coverage */
128
+ coverage ? {
129
+ test : / \. j s x ? $ / ,
130
+ loader : 'isparta-loader' ,
131
+ include : / s r c /
132
+ } : { }
133
+ ]
133
134
} ,
134
135
resolve : {
135
136
// The React DevTools integration requires preact as a module
136
137
// rather than referencing source files inside the module
137
138
// directly
138
139
alias : { preact : '../src/preact' } ,
139
- modulesDirectories : [ __dirname , 'node_modules' ]
140
+ modules : [ __dirname , 'node_modules' ]
140
141
} ,
141
142
plugins : [
142
143
new webpack . DefinePlugin ( {
You can’t perform that action at this time.
0 commit comments