Skip to content

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

Closed
sapphi-red wants to merge 6 commits into
davidmyersdev:mainfrom
sapphi-red:fix/support-imports-with-trailing-slash-in-vite8
Closed

fix: support imports with trailing slash in Vite 8#153
sapphi-red wants to merge 6 commits into
davidmyersdev: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.

@davidmyersdev
Copy link
Copy Markdown
Owner

Closing in favor of #156.

@davidmyersdev
Copy link
Copy Markdown
Owner

Released in v0.28.0.

@sapphi-red sapphi-red deleted the fix/support-imports-with-trailing-slash-in-vite8 branch May 18, 2026 02:51
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.

2 participants