Dev - Bundles Contain Duplicate Code · Issue #877 · webpack/webpack.js.org (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@pastelsky

Description

@pastelsky

The output of npm run build generates a bunch of .js split points, and each of them seem to have a copy of preact and other npm libs.

I tried introducing CommonsChunkPlugin in webpack.config, but don't find any commons file being generated. This is pretty inefficient and perhaps loading a single commons bundle upfront would be better.

@bebraw Any clue if this config comes from antwar side of things?