Skip to content

Instantly share code, notes, and snippets.

@mikehaas763
Created June 10, 2015 14:48
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 mikehaas763/e294a98b2a8e722e0609 to your computer and use it in GitHub Desktop.
Save mikehaas763/e294a98b2a8e722e0609 to your computer and use it in GitHub Desktop.
How I'd like the consumption of ES6 modules to work.
// Hypothetically the contents of this is in a file located at 'myproject/lib/WantedEs6ModuleLoading.js
// located at 'myproject/lib/Earth/People/Person.js'
// notice that I do not have to specify 'lib/'
import Person from 'Earth/People/Person.js';
// located at 'myproject/node_modules/3dMathLib/Grids/CoordinatePlane.js';
// would work because in some way the loader knows 3dMathLib is a package in node_modules (could be configuration or whatever)
import CoordinatePlane from '3dMathLib/Grids/CoordinatePlane.js';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment