Fix Bun default import handling for Babel helpers#15214
Open
gaoflow wants to merge 1 commit into
Open
Conversation
Contributor
|
Hi @gaoflow, Welcome, and thank you for contributing to React Router! Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once. You may review the CLA and sign it by adding your name to contributors.yml. Once the CLA is signed, the If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run. Thanks! - The Remix team |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@react-router/devFixes #15209.
AI assistance was used under my direction.
Testing
pnpm test packages/react-router-dev/vite/babel-test.ts packages/react-router-dev/vite/remove-exports-test.tsbun --bun -e "import { generate, parse } from './packages/react-router-dev/vite/babel.ts'; const ast = parse('const x = 1', { sourceType: 'module' }); console.log(typeof generate); console.log(generate(ast).code);"pnpm run --filter @react-router/dev buildpnpm run changes:validatepnpm run --filter react-router buildpnpm test packages/react-router-dev/pnpm run --filter @react-router/dev typecheckpnpm exec prettier --check packages/react-router-dev/vite/babel.ts packages/react-router-dev/vite/babel-test.ts packages/react-router-dev/.changes/patch.bun-babel-default-imports.mdpnpm exec eslint packages/react-router-dev/vite/babel.ts packages/react-router-dev/vite/babel-test.tsbun --bun ../../packages/react-router-dev/dist/cli/index.js typegenfromplayground/framework