Skip to content

jeetiss/mjs-commonjs-default

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mjs-commonjs-default

demo that shows difference in module resolution for js and mjs files.

how to run

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 }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks