Created
August 11, 2017 03:07
-
-
Save djmadeira/255b81aad527d1a6e6a9b18816965d3f to your computer and use it in GitHub Desktop.
@std/esm issue demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import src from './src'; | |
console.log(src({ apple: 'hi' })); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('@std/esm'); | |
require('./app'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@std/esm": { | |
"cjs": true, | |
"esm": "js" | |
}, | |
"devDependencies": { | |
"@std/esm": "^0.1.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (apples) => { | |
return { | |
...apples | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment