ardatan / meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
MIT License
123 stars 29 forks source link

How to bundle meteor packages on a single file? #75

Open onhate opened 5 years ago

onhate commented 5 years ago

Hi,

First of all, thank you so much community and @ardatan for this awesome project, I really love DDP and that's all, I don't think MDG should build all stuff from scratch, but...

My question is if it's possible to bundle all meteor packages into a single bundle so I can work with chunks. Now my build has ~30 script files all coming from /packages/

image

gerkensm commented 3 years ago

Did you ever find a solution to this problem? We have the related problem that the Meteor/Atmosphere packages are not processed by babel. I cannot install the ecmascript packages to transpile them to ES5 within Meteor as this conflicts with the meteor-webpack package. As babel treats them as externals, I don't think I can specify how to transpile them anywhere. My hope is that if you found a way to bundle them, this could also be used for transpilation to ES5.