Upgrade to `esm` dependency versions
See original GitHub issueClear and concise description of the problem
Currently there are some libraries (Vite is using) that only supports esm
.
Namely these are currently:
- node-fetch
- periscopic
- strip-ansi
And execa: https://github.com/vitejs/vite/pull/5784
Suggested solution
I’m not quite sure what we need to do to support these 🤔
Maybe we need also to use package.json
’s "type": "module"
?
Alternative
No response
Additional context
This also helps to archive #5839
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to update project when a dependency switches ...
We are developing a project that uses commonjs. When node-fetch is updated to v3.x, jest complains that:
Read more >Upgrade your Node app: From CommonJS to ES Modules
Install the latest Node.js version (at least the current LTS) and verify that your app is running smoothly after the update. Commit all...
Read more >Getting Started with (and Surviving) Node.js ESM
The Node.js ecosystem is shifting towards ESM. ... API changes just to support the latest, ESM-only versions of some of their dependencies.
Read more >Upgrading Dependencies
This is the process we use to upgrade dependencies. This should approximately once per week to ensure we safely apply all of the...
Read more >esm
esm is the world's most advanced ECMAScript module loader. This fast, production ready, zero dependency loader is all you need to support ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Related: https://github.com/node-fetch/node-fetch/issues/1289
Fixed in https://github.com/vitejs/vite/pull/8572