Skip to content

fix: support imports with trailing slash in Vite 8#153

Open
sapphi-red wants to merge 5 commits intodavidmyersdev:mainfrom
sapphi-red:fix/support-imports-with-trailing-slash-in-vite8
Open

fix: support imports with trailing slash in Vite 8#153
sapphi-red wants to merge 5 commits intodavidmyersdev:mainfrom
sapphi-red:fix/support-imports-with-trailing-slash-in-vite8

Conversation

@sapphi-red
Copy link
Copy Markdown
Contributor

Built on top of #152

import Buffer from 'buffer/' did not work in Vite 8 because this plugin aliased that to vite-plugin-node-polyfills/shims/buffer/ which cannot be resolved by Node (Vite 7 seemed to support that incorrectly).
This PR fixes that bug by using a custom plugin instead of relying on resolve.alias.

This PR also updates the Vite 8 CI to run the unit tests.

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.

1 participant