Closed msbasanth closed 4 years ago
Polymer is not supposed to be split that way (into "vendor" chunk).
react-dom
)With webpack 4, we recommend to use import()
for per-route code splitting.
Check out the webpack config preset by Open WC for a working config.
Thanks @web-padawan
Thanks for the clarification I will look into per-route code splitting.
Hi,
Description
We have a Polymer 3 WebComponents which after bundling comes around 2.5 MB size package. We would like to split the package to multiple chunks, we used WebPack 3 for splitting the packages,
Steps to Reproduce
new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: ({ resource }) => ( resource !== undefined && resource.indexOf('node_modules') !== -1 ) })
bootstrap:142 Uncaught TypeError: Cannot read property 'bind' of undefined at bootstrap:142 at bootstrap:150 (anonymous) @ bootstrap:142 (anonymous) @ bootstrap:150 polyfills.js:1 Uncaught TypeError: (intermediate value)(intermediate value).push is not a function at polyfills.js:1