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

POC: Don’t accidentally re-include the compact reexport plugin more then once #596

Closed
wants to merge 0 commits into from

Conversation

stefanpenner
Copy link
Collaborator

@stefanpenner stefanpenner commented Oct 3, 2018

cc @rwjblue

  • test...

@stefanpenner
Copy link
Collaborator Author

I noticed this was causing us to mutate the share plugin state, resulting in babel-plugin-compact-reexports being included 1 per apps engine...

}

this.options.babel.plugins.push(require.resolve('babel-plugin-compact-reexports'));
if (this.options.babel.plugins.indexOf(BABEL_COMPACT_REEXPORTS_PLUGIN)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use includes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good call!

Copy link
Member

Choose a reason for hiding this comment

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

Agree, especially since the original code was wrong (didn’t have > -1)...

@stefanpenner stefanpenner force-pushed the fix-duplicate-babel-plugin-issue branch from 9f50617 to a6749e6 Compare October 3, 2018 01:53
@stefanpenner stefanpenner force-pushed the fix-duplicate-babel-plugin-issue branch from a6749e6 to d970f6f Compare October 3, 2018 17:17
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.

None yet

3 participants