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 resolution of relative external files outside target directory #5099

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This resolves an issue I hit when implementing the ESM build for the SWC conversion.
Basically when an external file with a relative path would be outside the target directory, imports from chunks not at the top level would be rendered wrong, e.g. ./foo instead of ../../foo.

@vercel
Copy link

vercel bot commented Aug 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview Aug 17, 2023 4:37am

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#fix-relative-externals

or load it into the REPL:
https://rollup-m7c728x71-rollup-js.vercel.app/repl/?pr=5099

@lukastaegert lukastaegert merged commit bc0fe1b into master Aug 22, 2023
10 checks passed
@lukastaegert lukastaegert deleted the fix-relative-externals branch August 22, 2023 04:31
@rollup-bot
Copy link
Collaborator

This PR has been released as part of rollup@3.28.1. You can test it via npm install rollup.

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.

None yet

2 participants