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

Use only regexpu-core instead of all of regexpu #3259

Merged
merged 1 commit into from
Jan 11, 2016
Merged

Use only regexpu-core instead of all of regexpu #3259

merged 1 commit into from
Jan 11, 2016

Conversation

mathiasbynens
Copy link
Contributor

Ref. mathiasbynens/regexpu#24.

regexpu’s use of esprima and recast is not needed for Babel. Removing them decreases the npm download size by about 1.5 MB.

cc @thejameskyle

@@ -11,4 +11,4 @@ export default function () {
}
}
};
}
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FTR, this semicolon to be missing from most plugins.

@jamiebuilds
Copy link
Contributor

Awesome! Thank you for this

@@ -1,4 +1,4 @@
import rewritePattern from "regexpu/rewrite-pattern";
import * as rewritePattern from "regexpu-core";
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be:

import rewritePattern from "regexpu-core";

since rewritePattern is the default export

@mathiasbynens
Copy link
Contributor Author

Thank you for showing me the way ;)

I suppose we don’t need a separate babel-plugin-regexpu anymore?

@jamiebuilds
Copy link
Contributor

Those modules were never published so I'll just delete the repos.

@codecov-io
Copy link

Current coverage is 85.16%

Merging #3259 into master will decrease coverage by -0.07% as of 09d6762

@@            master   #3259   diff @@
======================================
  Files          215     215       
  Stmts        15699   15699       
  Branches      3360    3360       
  Methods          0       0       
======================================
- Hit          13381   13370    -11
- Partial        676     686    +10
- Missed        1642    1643     +1

Review entire Coverage Diff as of 09d6762

Powered by Codecov. Updated on successful CI builds.

jamiebuilds added a commit that referenced this pull request Jan 11, 2016
Use only `regexpu-core` instead of all of `regexpu`
@jamiebuilds jamiebuilds merged commit dfc4113 into babel:master Jan 11, 2016
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants