Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit e9f1371

Browse files
Zaccc123wmonk
authored andcommitted
Added NamedModulesPlugin in webpack.config.dev.js (#2458)
* Added NamedModulesPlugin in webpack.config.dev.js * Update webpack.config.dev.js
1 parent ad5b884 commit e9f1371

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
@@ -237,6 +237,8 @@ module.exports = {
237237
inject: true,
238238
template: paths.appHtml,
239239
}),
240+
// Add module names to factory functions so they appear in browser profiler.
241+
new webpack.NamedModulesPlugin(),
240242
// Makes some environment variables available to the JS code, for example:
241243
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
242244
new webpack.DefinePlugin(env.stringified),

0 commit comments

Comments
 (0)