File tree 3 files changed +14
-10
lines changed
fixtures/kitchensink/template/src 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -569,6 +569,9 @@ module.exports = function(webpackEnv) {
569
569
name : 'static/media/[name].[hash:8].[ext]' ,
570
570
} ,
571
571
} ,
572
+ // Webpack 5 Change: For some reason the default json-loader wasn't being used.
573
+ // This might be due to the type property I had to add to the first `parser.requireEnsure` rule?
574
+ { test : / \. j s o n $ / , loader : require . resolve ( 'json-loader' ) } ,
572
575
// ** STOP ** Are you adding a new loader?
573
576
// Make sure to add the new loader(s) before the "file" loader.
574
577
] ,
Original file line number Diff line number Diff line change @@ -156,16 +156,16 @@ class App extends Component {
156
156
this . setFeature ( f . default )
157
157
) ;
158
158
break ;
159
- // case 'json-inclusion':
160
- // import('./features/webpack/JsonInclusion').then(f =>
161
- // this.setFeature(f.default)
162
- // );
163
- // break;
164
- // case 'linked-modules':
165
- // import('./features/webpack/LinkedModules').then(f =>
166
- // this.setFeature(f.default)
167
- // );
168
- // break;
159
+ case 'json-inclusion' :
160
+ import ( './features/webpack/JsonInclusion' ) . then ( f =>
161
+ this . setFeature ( f . default )
162
+ ) ;
163
+ break ;
164
+ case 'linked-modules' :
165
+ import ( './features/webpack/LinkedModules' ) . then ( f =>
166
+ this . setFeature ( f . default )
167
+ ) ;
168
+ break ;
169
169
case 'no-ext-inclusion' :
170
170
import ( './features/webpack/NoExtInclusion' ) . then ( f =>
171
171
this . setFeature ( f . default )
Original file line number Diff line number Diff line change 58
58
"jest-environment-jsdom-fourteen" : " 1.0.1" ,
59
59
"jest-resolve" : " 24.9.0" ,
60
60
"jest-watch-typeahead" : " 0.4.2" ,
61
+ "json-loader" : " 0.5.7" ,
61
62
"mini-css-extract-plugin" : " 0.9.0" ,
62
63
"optimize-css-assets-webpack-plugin" : " 5.0.3" ,
63
64
"path-browserify" : " 1.0.1" ,
You can’t perform that action at this time.
0 commit comments