Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(babel-preset-mc-app): add ability to disable core-js #2261

Merged
merged 7 commits into from
Jun 10, 2021

Conversation

tdeekens
Copy link
Contributor

Summary

This adds the ability to explicitly disable core-js.

Description

Some environments or build targets might not require core-js. In order to opt-out of it you can specify a disableCoreJs option now.

@vercel
Copy link

vercel bot commented Jun 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/7ZyXnoiwvquNdf7YkxYVknRDndD6
✅ Preview: https://merchant-center-application-kit-git-disabl-091f33-commercetools.vercel.app

@changeset-bot
Copy link

changeset-bot bot commented Jun 10, 2021

🦋 Changeset detected

Latest commit: 23e54a3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@commercetools-frontend/mc-scripts Minor
@commercetools-frontend/babel-preset-mc-app Minor
@commercetools-frontend/jest-preset-mc-app Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel vercel bot temporarily deployed to Preview June 10, 2021 06:23 Inactive
@tdeekens tdeekens requested a review from pa3 June 10, 2021 07:16
@tdeekens tdeekens self-assigned this Jun 10, 2021
@tdeekens tdeekens requested a review from mohib0306 June 10, 2021 07:16
@@ -143,7 +149,7 @@ module.exports = function getBabePresetConfigForMcApp(api, opts = {}) {
{
// corejs messes with jest@27 in tests, due to some
// Promise/Date related polyfills it provides.
corejs: !isEnvTest && 3,
corejs: isEnvTest || options.disableCoreJs ? false : 3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would enable corejs in test env all the time regardless of the disableCoreJs option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean disable, right? If so yes, that's what @pa3 implemented prior and intended.

@vercel vercel bot temporarily deployed to Preview June 10, 2021 07:30 Inactive
@vercel vercel bot temporarily deployed to Preview June 10, 2021 07:38 Inactive
@vercel vercel bot temporarily deployed to Preview June 10, 2021 07:45 Inactive
@vercel vercel bot temporarily deployed to Preview June 10, 2021 08:06 Inactive
@vercel vercel bot temporarily deployed to Preview June 10, 2021 08:12 Inactive
@tdeekens tdeekens merged commit 481fb8f into main Jun 10, 2021
@tdeekens tdeekens deleted the disable-core-js branch June 10, 2021 10:32
@ghost ghost mentioned this pull request Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants