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

Merge env-standalone to babel-standalone #10821

merged 3 commits into from Jan 11, 2020


Copy link

JLHwung commented Dec 5, 2019

Q                       A
Minor: New Feature? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes? Add more devDependencies to babel-standalone
License MIT

This PR registers env in babel-standalone and copies the plugins in babel-preset-env-standalone to babel-standalone. By doing so babel-standalone will now includes all the functions in env-standalone, and we intend to remove env-standalone on 8.x.

The following size change is produced from CI Artifacts before and CI Artifcats after

Previous Size New Size Change
babel.js 2.4 MB 2.9 MB +20%
babel.min.js 1.2 MB 1.5 MB +25%
babel-preset-env.js 3.0 MB 3.0 MB -
babel-preset-env.min.js 1.3 MB 1.3 MB -

Edit by @nicolo-ribaudo
The previous table should be read as this. These sizes refer to the whole bundle including all the plugins + preset-env.

Previous Total Size New Total Size Change
Not minified 5.4 MB 2.9 MB -46%
Minified 2.5 MB 1.5 MB -40%

This comment was marked as resolved.

Copy link

nicolo-ribaudo commented Dec 5, 2019

Could you post the bundle size differences?

@@ -110,6 +110,61 @@
).toThrow(/Invalid plugin specified in Babel options: "lolfail"/);

describe("env preset", () => {

This comment has been minimized.

Copy link

JLHwung Dec 6, 2019

Author Contributor

The REPL Build is not working. I will investigate it today.
Fixed by rebasing on #10837 : REPL Build

I will rebase again after it gets merged.

@JLHwung JLHwung force-pushed the JLHwung:merge-env-standalone branch 3 times, most recently from 98f15d7 to 19390de Dec 7, 2019
@JLHwung JLHwung force-pushed the JLHwung:merge-env-standalone branch from 19390de to 231eaed Jan 10, 2020

This comment has been minimized.

Copy link
Contributor Author

JLHwung commented Jan 11, 2020

@nicolo-ribaudo Note that both nullish-coalescing and optional-chaining are merged to preset-env, this PR is still good to go because those two features are added to both sides. This PR cares only those exclusively available in -standalone.

@nicolo-ribaudo nicolo-ribaudo merged commit 405c1aa into babel:master Jan 11, 2020
3 of 5 checks passed
3 of 5 checks passed
build (13.x)
Travis CI - Pull Request Build Failed
test262 Workflow: test262
build-standalone Workflow: build-standalone
e2e Workflow: e2e
@nicolo-ribaudo nicolo-ribaudo deleted the JLHwung:merge-env-standalone branch Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.