Comments (7)
Absolutely!
{
"entry":{
...multiple entries
},
"output":{
"path":"/Users/claudio/Projects/loom/dist/webpack",
"publicPath":"https://cdn.loom.com/assets/",
"filename":"js/[name]-[contenthash].js"
},
"devtool":false,
"module":{
"rules":[...rules]
},
"optimization":{
"moduleIds":"hashed",
"splitChunks":{
"cacheGroups":{
"default":false,
"commons":{
"name":"commons",
"test":{
},
"chunks":"all",
"minChunks":3
}
}
},
},
"plugins":[...plugins],
"resolve":{...aliases only},
"mode":"production"
}
babel.config
contains preset/react and preset/env with no modules nor target options set.
from optimize-plugin.
Awesome, thanks for this. I will try to set up a test case. I likely missed some bundle parsing cases for multi-entry since I avoid using multi-entry whenever possible for performance reasons.
from optimize-plugin.
We bundle multiple separate 'apps' so we definitely need multiple entries, not something we can avoid unfortunately.
from optimize-plugin.
Hiya - this seems the same as the second issue mentioned in #7.
Are you able to share your Webpack configuration - in particular the mode
, target
and output
options?
from optimize-plugin.
Oh that's very interesting. I can intuitively understand why would it be a performance drain, do you have any links where I can learn more (multi entry webpack)? 🙏
I'll do some digging of my own in the meanwhile :)
from optimize-plugin.
@keepitterron it's a little buried in the docs, but there now:
https://webpack.js.org/plugins/module-concatenation-plugin/#optimization-bailouts
from optimize-plugin.
For those hitting this issue, you can disable automatic modernization via new OptimizePlugin({ modernize: false })
. This improves performance, but will use the unmodified ES5 source of most npm modules since they do not publish modern code.
from optimize-plugin.
Related Issues (13)
- for blogspot HOT 1
- Cannot read property 'arguments' of undefined HOT 3
- Some questions about integrating with HtmlWebpackPlugin babel-env and browserslist. HOT 5
- errored out during transformation Cannot read property 'constant' of undefined HOT 2
- [Feature Request/Question] Non ECMAScript polyfills HOT 1
- Support Webpack 5 HOT 3
- NPM version multiple majors behind source code HOT 2
- SyntaxError 'with' in strict mode HOT 2
- Babel configs are ignored HOT 8
- webpack module-federation HOT 1
- TypeError: OptimizePlugin is not a constructor HOT 2
- errored out during transformation TypeError: /PROJECT/pages/404.js: Cannot read property 'constant' of undefined HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optimize-plugin.