Skip to content

Instantly share code, notes, and snippets.

@kaidez
Last active October 23, 2015 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaidez/298628e397ec2aa5f2dc to your computer and use it in GitHub Desktop.
Save kaidez/298628e397ec2aa5f2dc to your computer and use it in GitHub Desktop.
es6-module-issue
// Also tried "import foo from './resources'"
// Imported from the file below
import { foo } from 'resources';
console.log(foo);
var foo = "bar";
export foo;
//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