Last active
October 23, 2015 19:28
-
-
Save kaidez/298628e397ec2aa5f2dc to your computer and use it in GitHub Desktop.
es6-module-issue
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
// Also tried "import foo from './resources'" | |
// Imported from the file below | |
import { foo } from 'resources'; | |
console.log(foo); |
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
var foo = "bar"; | |
export foo; |
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
//Babel output | |
'use strict'; | |
var _resources = require('./resources'); | |
console.log(_resources.foo); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment