-
I am using Parcel 1.12.4 to build an application that uses some large libraries including rxjs and material-ui. The build & package time for development is painfully slow (sometimes up to 10-15 minutes for initial build and 3-4s for subsequent iterations). Since Parcel doesn't support tree-shaking on development, I am following this guide in order to minimize the bundle size. Unfortunately, babel config seems to be ignored. The same config works great with Parcel 2 but I can't upgrade because another library I am using I know that in Parcel 1, custom babel configs are merged with the default one. Could someone please give me a working example of how custom babel configs should look? Here's my current configuration:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I've limited this issue to babel config being ignored when Parcel has to work in a monorepo (I'm using lerna). I've setup a repo (https://github.com/quangta93/lerna-parcel) based on recommendation from babel config guide for monorepo Once running @mischnic @devongovett any suggestions please? |
Beta Was this translation helpful? Give feedback.
I've limited this issue to babel config being ignored when Parcel has to work in a monorepo (I'm using lerna). I've setup a repo (https://github.com/quangta93/lerna-parcel) based on recommendation from babel config guide for monorepo
Once running
foo
app, you should seeUncaught ReferenceError: regeneratorRuntime is not defined
because async/await is not supported even though"targets": "last 2 Chrome versions"
should fix that. If I add"browserslist": ["last 2 Chrome versions"]
inside the app'spackage.json
, the issue goes away.@mischnic @devongovett any suggestions please?