这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(external): match root paths on unix-like and windows #891

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

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

ckohen
Copy link
Contributor

@ckohen ckohen commented Apr 23, 2023

This PR fixes the regex used to match non node modules in the esbuild external plugin.

It changes the regex to match on the root of a windows-based filesystem in addition to simplifying the match of a unix-like root or relative path.
This inverts the logic, however, I believe the regex was improperly named before, as what it was matching was actually node modules.

@codesandbox
Copy link

codesandbox bot commented Apr 23, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@vercel
Copy link

vercel bot commented Apr 23, 2023

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

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2023 0:47am

@egoist egoist merged commit cfa6bba into egoist:dev Jun 16, 2023
@ckohen ckohen deleted the fix/windows-shims branch June 16, 2023 06:12
@github-actions
Copy link
Contributor

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shim support for Windows is broken Issue with "shims: true" on Windows
2 participants