https://github.com/node-projects/add-js-to-esm-modules
https://github.com/node-projects/add-js-to-esm-modules
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/node-projects/add-js-to-esm-modules
- Owner: node-projects
- License: mit
- Created: 2023-02-03T15:59:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T16:29:23.000Z (over 2 years ago)
- Last Synced: 2024-03-24T07:01:07.342Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# add-js-to-esm-modules
## goal
add .js to local imports/exports so they can be used directly as esm modules
## why
cause typescript does not add the extensions:
see: https://github.com/microsoft/TypeScript/issues/40878
annd a pull: https://github.com/microsoft/TypeScript/pull/47436## thanks
basic script is from https://gist.github.com/lovasoa/8691344