April 8, 2016 02:36 pm GMT
Original Link: https://www.nczonline.net/blog/2016/04/es6-module-loading-more-complicated-than-you-think/
ES6 module loading: More complicated than you think
Nicholas Zakas:
The differences between scripts and modules are subtle enough that it's hard for developers to understand the restriction of declaring what a JavaScript file represents ahead of time. My hope is that this post clarifies some of the reasons why it's not possible to autodetect modules from inspecting the source code and why tools such as ESLint ask you to specify the file type before executing. There will be a point in the future where ES6 modules are …
ES6 module loading: More complicated than you think is a post from CSS-Tricks
Original Link: https://www.nczonline.net/blog/2016/04/es6-module-loading-more-complicated-than-you-think/
Share this article:
Tweet
View Full Article