Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeetiss/mjs-commonjs-default
https://github.com/jeetiss/mjs-commonjs-default
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeetiss/mjs-commonjs-default
- Owner: jeetiss
- Created: 2023-03-14T09:11:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-14T09:16:11.000Z (over 1 year ago)
- Last Synced: 2024-04-24T12:03:44.980Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# mjs-commonjs-default
demo that shows difference in module resolution for `js` and `mjs` files.
## how to run
```bash
mjs-commonjs-default % node src/index.mjs
{ default: 42 }
mjs-commonjs-default % node dist/mjs.js
{ default: 42 }
mjs-commonjs-default % node dist/js.js
42
mjs-commonjs-default % node src/index.js
{ default: 42 }
```