Skip to content
Advertisement

Tag: production

Rollup unexpectedly generates a file for reactive state

I’m kinda of new to rollup, and been having several issues with it over the last couple of weeks. I’m currently using rollup to build Lit components to production. And for some unknown reason, when it generates a file which contains, what I believe is the reactive state for every component – query-assigned-elements-78bcb1b1.js. Every component that has reactive state then

webpack production build bundle.js file size is 10mb

I’m working on this react app and when I build the projects the bundle.js file is 10mb so after the deployment it takes time to load the content. Here’s the code: https://github.com/sef-global/scholarx-frontend Here’s my webpack config file: Answer I assume for production build you using your “build” command from packages.json which states: That will trigger webpack “building” of course, but

Advertisement