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
[10.x] sets package.json type to module #6090
Conversation
@timacdonald after this PR, my vite livewire plugin fails to load with this error:
any hint on how can I solve this? |
Looks like you are building a CJS package. You will want to build both a CJS and MJS version to support both systems. |
I guess this is the way, was just hoping for a way to support both thanks @timacdonald for the hint! |
@fabio-ivona you should be able to support both if you build both of those types 👍 that is what we are doing in Laravel's Vite plugin |
yep, I'm looking at your code, I think I can do the same, thanks @timacdonald! |
Full description: laravel/vite-plugin#189
See: