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

pkg: Relax @babel/runtime requirement to ^7.7.2 #513

Merged
merged 2 commits into from
Feb 4, 2021
Merged

Conversation

ntucker
Copy link
Collaborator

@ntucker ntucker commented Feb 3, 2021

Motivation

Having multiple @babel/runtimes with nesting creates some interesting issues when building.

After a more thorough investigation of babel/babel#10853 I have realized that 7.12 is simply the requirement to work with webpack 5, but interop with babel/core will work. This is due to the new package exports directives - which are processed by webpack 5 only.

Thus, users of webpack 5, should ensure they run only babel 7.12+ and also hoist it to ensure a single version. Other users should not care.

Solution

To reduce the chance of non-hoisted runtimes, we relax our requirements to what 4.5.9 was. This should enable no new introduced of non-hoisted runtimes.

@ntucker ntucker requested a review from ljharb February 3, 2021 21:51
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2021

Size Change: -44 B (0%)

Total Size: 109 kB

Filename Size Change
packages/core/dist/index.cjs.js 12.5 kB +4 B (0%)
packages/endpoint/dist/index.cjs.js 1.76 kB +2 B (0%)
packages/endpoint/dist/index.umd.min.js 1.29 kB -2 B (0%)
packages/normalizr/dist/normalizr.amd.js 10.3 kB -3 B (0%)
packages/normalizr/dist/normalizr.amd.min.js 5.58 kB -7 B (0%)
packages/normalizr/dist/normalizr.browser.js 10.3 kB -3 B (0%)
packages/normalizr/dist/normalizr.browser.min.js 5.58 kB -8 B (0%)
packages/normalizr/dist/normalizr.js 10.1 kB +5 B (0%)
packages/normalizr/dist/normalizr.min.js 5.58 kB -9 B (0%)
packages/normalizr/dist/normalizr.umd.js 10.4 kB -8 B (0%)
packages/normalizr/dist/normalizr.umd.min.js 5.66 kB -5 B (0%)
packages/rest-hooks/dist/index.cjs.js 7.67 kB -1 B
packages/rest-hooks/dist/index.umd.min.js 4.08 kB -6 B (0%)
packages/rest/dist/index.umd.min.js 2.14 kB -3 B (0%)
ℹ️ View Unchanged
Filename Size Change
packages/core/dist/index.umd.min.js 5.73 kB 0 B
packages/hooks/dist/index.cjs.js 714 B 0 B
packages/hooks/dist/index.umd.min.js 429 B 0 B
packages/legacy/dist/index.cjs.js 579 B 0 B
packages/legacy/dist/index.umd.min.js 511 B 0 B
packages/rest/dist/index.cjs.js 3.88 kB 0 B
packages/test/dist/index.cjs.js 3 kB 0 B
packages/use-enhanced-reducer/dist/index.cjs.js 1.08 kB 0 B
packages/use-enhanced-reducer/dist/index.umd.min.js 607 B 0 B

compressed-size-action

Copy link
Contributor

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

not sure why this would be an issue - nothing in the entire ecosystem should be depending on babel/runtime without a ^ - but seems fine

@ntucker ntucker merged commit cc95b21 into master Feb 4, 2021
@ntucker ntucker deleted the pkg/babel-runtime branch February 4, 2021 05:13
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