Parcel: @parcel/transformer-babel: remove core-js dep?

Created on 5 Apr 2020  路  6Comments  路  Source: parcel-bundler/parcel

馃悰 bug report

It seems that this dependency is redundant:
https://github.com/parcel-bundler/parcel/blob/c690f91bcb28081ba370eacdb91b9b1b9a1baa6a/packages/transformers/babel/package.json#L32

Searching the code base, I only found core-js in the tests.

馃敠 Context

core-js is particularly harmful due to https://github.com/zloirock/core-js/issues/548, https://github.com/zloirock/core-js/issues/611, https://github.com/zloirock/core-js/issues/708.

Any chance it can be removed?

Question babel

Most helpful comment

@corwin-of-amber there is nothing harmful about asking for some kind of sponsorship for an open source project.

That being said there's the issue of core-js no longer being maintained which will lead to it being replaced at some point...

All 6 comments

@corwin-of-amber there is nothing harmful about asking for some kind of sponsorship for an open source project.

That being said there's the issue of core-js no longer being maintained which will lead to it being replaced at some point...

That is a bit subjective, but in that case the decision is yours.

At any rate, I did not find that @parcel/transformer-babel is even utilizing core-js at all. Am I wrong?

Oh, I missed that! Sorry and thanks for the ref @mischnic!

Can we close this, as it's not really an issue and a real dependency? The only way around this I see is to enforce all parcel users to install core-js and babel locally besides parcel which would not change anything.

~core-js will eventually be replaced as it's no longer maintained but for now I don't see any issue in leaving it as is.~ I assumed it was abandoned but apparently someone else took over maintaining it

core-js will eventually be replaced as it's no longer maintained but for now I don't see any issue in leaving it as is.

If it becomes a problem, this is on Babel to fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

medhatdawoud picture medhatdawoud  路  3Comments

Niggler picture Niggler  路  3Comments

dotdash picture dotdash  路  3Comments

jsftw86 picture jsftw86  路  3Comments

dsky1990 picture dsky1990  路  3Comments