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

Legacy plugin not compatible #20

Closed
jasondibenedetto opened this issue Dec 21, 2021 · 5 comments
Closed

Legacy plugin not compatible #20

jasondibenedetto opened this issue Dec 21, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@jasondibenedetto
Copy link

Describe the bug

In vite 2.7, the name of the legacy-polyfills entry has changed from "vite/legacy-polyfills" to "\u0000vite/legacy-polyfills" which seems to be causing issues loading the legacy polyfill file.

This issue is discussed in both vitejs/vite#6097 and ElMassimo/vite_ruby#156

Versions

  • Plugin version: 1.0.15
  • Craft version: 3.7.25.1
@jasondibenedetto jasondibenedetto added the bug Something isn't working label Dec 21, 2021
@khalwat
Copy link
Contributor

khalwat commented Dec 21, 2021

This is very likely an issue with Vite \u0000 is the Unicode character for null

I'm assuming this is some kind of a mistake either in Vite or in the Legacy plugin.

While I can "fix" this, I want to be sure that it's intentional on Vite's end to change the name of this polyfill. Prefacing it with the Unicode character for null feels to me like it potentially could be a mistake

@khalwat khalwat closed this as completed Dec 21, 2021
@khalwat khalwat reopened this Dec 21, 2021
@jasondibenedetto
Copy link
Author

Yes I was unsure which end this bug needs to be resolved on. After seeing the issue on vite_ruby, I thought it was worth flagging.

@khalwat
Copy link
Contributor

khalwat commented Dec 21, 2021

Yeah I commented on that issue -> ElMassimo/vite_ruby#156 (comment)

My spidey-sense is telling me that this is actually a bug, it's pretty unlikely they'd randomly decide to prefix virtual modules with the Unicode for null (\u0000).

@khalwat
Copy link
Contributor

khalwat commented Dec 21, 2021

Fixed via this PR (which is not yet merged, but I'm assuming will be):

vitejs/vite#6225

@khalwat khalwat closed this as completed Dec 21, 2021
@khalwat
Copy link
Contributor

khalwat commented Dec 22, 2021

Fixed in Vite 2.7.6, just released -> https://github.com/vitejs/vite/blob/v2.7.6/packages/vite/CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants