File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
fixtures/kitchensink/template/src Expand file tree Collapse file tree 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) {
569569 name : 'static/media/[name].[hash:8].[ext]' ,
570570 } ,
571571 } ,
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' ) } ,
572575 // ** STOP ** Are you adding a new loader?
573576 // Make sure to add the new loader(s) before the "file" loader.
574577 ] ,
Original file line number Diff line number Diff line change @@ -156,16 +156,16 @@ class App extends Component {
156156 this . setFeature ( f . default )
157157 ) ;
158158 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 ;
169169 case 'no-ext-inclusion' :
170170 import ( './features/webpack/NoExtInclusion' ) . then ( f =>
171171 this . setFeature ( f . default )
Original file line number Diff line number Diff line change 5858 "jest-environment-jsdom-fourteen" : " 1.0.1" ,
5959 "jest-resolve" : " 24.9.0" ,
6060 "jest-watch-typeahead" : " 0.4.2" ,
61+ "json-loader" : " 0.5.7" ,
6162 "mini-css-extract-plugin" : " 0.9.0" ,
6263 "optimize-css-assets-webpack-plugin" : " 5.0.3" ,
6364 "path-browserify" : " 1.0.1" ,
You can’t perform that action at this time.
0 commit comments