Created
May 24, 2019 07:59
-
-
Save linonetwo/459434e8029177df2012a5162eeb983f to your computer and use it in GitHub Desktop.
ES5 and ES6 import export #syntax
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
const xxx = require('./xxx'); | |
module.exports = xxx; |
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 xxx; | |
/// and in another es5 file | |
const xxx = require('./xxx').default; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment