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(bundleless): only try to redirect files under outBase dir #760

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

fi3ework
Copy link
Member

Summary

Fix #759.

Previously, in bundleless mode, files in the root folder underwent the redirect process. This caused files in the node_modules directory of a non-monorepo project, or the project mentioned in #759, to be redirected unexpectedly.

In this PR, only files in the outBase directory will go through the redirect process. The outBase refers to the directory containing the source files, and only imports between these source files should be redirected.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Sorry, something went wrong.

@fi3ework fi3ework force-pushed the outbase-external branch 4 times, most recently from 33a60f0 to 639eda4 Compare February 17, 2025 10:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • tests/integration/bundle-false/basic/.gitignore: Language not supported
Comments suppressed due to low confidence (1)

packages/core/src/config.ts:1173

  • The error message string should be 'outBase is expected to be a string in bundleless mode, but got ${outBase}' for better clarity.
`outBase expect to be a string in bundleless mode, but got ${outBase}`

@Timeless0911 Timeless0911 merged commit 8d3ac10 into main Feb 17, 2025
17 checks passed
@Timeless0911 Timeless0911 deleted the outbase-external branch February 17, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Monorepo setup causes incorrect externalizing of dependencies
2 participants