Created
June 10, 2015 14:48
-
-
Save mikehaas763/e294a98b2a8e722e0609 to your computer and use it in GitHub Desktop.
How I'd like the consumption of ES6 modules to work.
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
// 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