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

[2.x] Switch to ESM imports #1059

Merged
merged 1 commit into from
May 30, 2022
Merged

[2.x] Switch to ESM imports #1059

merged 1 commit into from
May 30, 2022

Conversation

jessarcher
Copy link
Member

Carrying on from the PR at laravel/laravel#5895, this replaces require statements with import statements where possible in the JS resources in order to smooth the transition for Vite users.

Note that with Inertia there is one remaining dynamic require that does not have a replacement that works with webpack and Vite.

This improves the transition for Vite users.
@driesvints
Copy link
Member

Thanks @jessarcher

@driesvints driesvints deleted the esm-imports branch May 30, 2022 06:17
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