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

fix(core): make sure "clone-deep-browser" code path is used on browsers #13068

Merged
merged 1 commit into from Mar 29, 2021

Conversation

charlessuh
Copy link
Contributor

@charlessuh charlessuh commented Mar 29, 2021

Q                       A
Fixed Issues? Fixes #13067
Patch: Bug Fix? Yes
Major: Breaking Change? No
Minor: New Feature? No
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

When using a published package, the clone-deep file lives under lib instead of src.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 29, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit bde6698:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@charlessuh charlessuh changed the title fix(core): ignore 'v8' module for browsers fix(core): make sure "clone-deep-browser" code path is used on browsers Mar 29, 2021
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/44855/

@@ -41,6 +41,7 @@
"./lib/config/files/index.js": "./lib/config/files/index-browser.js",
"./lib/config/resolve-targets.js": "./lib/config/resolve-targets-browser.js",
"./lib/transform-file.js": "./lib/transform-file-browser.js",
"./lib/transformation/util/clone-deep.js": "./lib/transformation/util/clone-deep-browser.js",
Copy link

@davedx davedx Mar 29, 2021

Choose a reason for hiding this comment

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

Edit: nevermind, I see it now

Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

Thanks 🤦
We need to map both the lib and the src folder:

  • lib if for people bundling @babel/core
  • src is when we generate the @babel/standalone bundle

@nicolo-ribaudo nicolo-ribaudo added pkg: core PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression labels Mar 29, 2021
Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

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

Thanks!

@JLHwung JLHwung merged commit 4092446 into babel:main Mar 29, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: core PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module not found: Error: Can't resolve 'v8'
5 participants