javascript - Webpack creating duplicate entries for dependencies -


i trying switch using browserify webpack. 1 thing browserify handled nicely dependency management inside dependencies. let me give example:

main app project:

var util1 = require('shared-components/util1'); var util2 = require('shared-components/util2'); 

inside shared-components/util1.js

var util2 = require('../util2'); 

browserify realize reference util2 in both scenarios same appears webpack not creates duplicate entries util2.

is there configuration setting or plugin can use resolve this?

try new webpack.optimize.dedupeplugin(). see the docs more info.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -