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

Use "moduleResolution": "NodeNext" #257

Closed
wants to merge 2 commits into from
Closed

Conversation

sapphi-red
Copy link
Contributor

Vite 5 uses Rollup 4 and Rollup 4 now requires "moduleResolution": "NodeNext" or "moduleResolution": "bundler".

I set "type": "module" in package.json to make it work, but I can rename src/index.ts to src/index.mts instead of that. Setting "type": "module" will fix inertia-helpers to be interpreted as CJS too.

@sapphi-red sapphi-red changed the title Use "moduleResolution": "NodeNext" and fix type issues Use "moduleResolution": "NodeNext" Nov 4, 2023
@SuperDJ SuperDJ mentioned this pull request Dec 5, 2023
@timacdonald timacdonald marked this pull request as draft December 10, 2023 23:25
@timacdonald
Copy link
Member

Thank you so much for dropping by our Laravel world to help us out with the upgrade, @sapphi-red.

We've got a working branch where we have already made the type module changes, thankfully.

I'm going to close this one as we I'm creating a single PR to house all our Vite 5 upgrade work to make it easier for review etc.

Thanks again. We really appreciate the Vite team ❤️

@sapphi-red sapphi-red deleted the vite5 branch December 15, 2023 10:09
@sapphi-red
Copy link
Contributor Author

No problem! 😃

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