Skip to content

Commit c78c1fa

Browse files
Zaccc123gaearon
authored andcommitted
Added NamedModulesPlugin in webpack.config.dev.js (#2458)
* Added NamedModulesPlugin in webpack.config.dev.js * Update webpack.config.dev.js
1 parent b264b8d commit c78c1fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/config/webpack.config.dev.js

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ module.exports = {
249249
inject: true,
250250
template: paths.appHtml,
251251
}),
252+
// Add module names to factory functions so they appear in browser profiler.
253+
new webpack.NamedModulesPlugin(),
252254
// Makes some environment variables available to the JS code, for example:
253255
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
254256
new webpack.DefinePlugin(env.stringified),

0 commit comments

Comments
 (0)