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

Add type=module to package.json to avoid vite deprecation warning #2679

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

jrochkind
Copy link
Contributor

Previous saw this in vite build:

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

Changing package.json to default to type module seems like the current best practice, and fixes this warning, and our JS still builds appropriately.

See ElMassimo/vite_ruby#431

Previous saw this in vite build:

```
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
```

Changing package.json to default to type module seems like the current best practice, and fixes this warning, and our JS still builds appropriately.
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