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

[1.x] support projects using type module #696

Merged
merged 1 commit into from
May 16, 2023
Merged

[1.x] support projects using type module #696

merged 1 commit into from
May 16, 2023

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented May 15, 2023

Fixes #695

Tested on Node >= 16

Renaming the file indicates to Node that it contains Common JS regardless of the projects "type" setting. We can't migrate the code to use ESM as it could break existing sites.

This means that existing projects with and without "type": "module" will continue to work as expected.

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.

Unable to run Octane in development mode with --watch after adding 'type: module' to Laravel boilerplate
3 participants