Skip to content

Correct way to add babel plugins in monorepo #4739

Answered by quangta93
quangta93 asked this question in General
Discussion options

You must be logged in to vote

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 see Uncaught 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's package.json, the issue goes away.

@mischnic @devongovett any suggestions please?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quangta93
Comment options

@quangta93
Comment options

Answer selected by quangta93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant