-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatic module loader API Specification? #75
Comments
The module loader API was actually removed from ES2015; it should probably just be removed from this repo. |
Ouch, that wasn't the answer I was expecting! So the module loader API is dead, yet the Internet is strangely quiet on the subject; hopefully somebody writes an article, or people luck out and end up here. Anyway, thanks so much for letting me know. |
Erm, so I'm struggling to come to terms with this loss. If true then this would mean that even |
Worse, there's no way for Eventually there will be a loader spec, but until then ES2015 just specifies the syntax, and the syntax does nothing. (That is, the spec contains points where it's like "consult the host environment to do something useful here.") |
Wow, I'm really struggling to understand what that even means. How can anybody use ES2015 if And, if we are back to bundling our modules, what does the bundling format look like given that the module loader polyfills seem to all be using |
You use it the same way you use ES5. CommonJS, AMD, globals, whatever. |
But CommonJS and AMD both use function invocations to bring dependencies into a module, which can be done in JS, whereas And, ... you know that April fool's day is the first day of the month and not the last right? Just checking... |
Maybe I wasn't clear. In a browser that implements ES2015, using |
Wow, this is huge! I'm blown away by this!! Final question: can you point me and everybody else to a transcript of the meeting (or the minutes) where this decision was made? |
Lovely, thanks for the heads up 👍. This paragraph was particularly interesting to me:
which makes me think that the ES6 module loader polyfill (or another polyfill that becomes more popular) will end up informing what the final module loader API ends up looking like, given that you are seeking real feedback based on what really works in both the browser and Node.js, and given that Babel already supports bundling in a format that this polyfill and others can work with (as specified in It's just good to have an inkling of what's happening in the future so we can better align ourselves with that future... |
@domenic Does this mean that any implementation (CommonJS, SystemJS, AMD, etc) has equal opportunity to become the underlying standard when/if a module spec finally becomes official? |
@trusktr there many way to import module with a numbers of optimization based on different scenario. So its a good decision to offload the process of including the module to third parties. |
What are some of the third party loading libraries would you recommend? |
Are there any pro's and con's choosing one over the others? I heard that JSPM is built on top of SystemJS. |
I'd suggest you just give each one a try and see which one you like more. There's other ones too, like duo.js and rollup.js. Trying them out is the best advice. |
You should also look at what is preferred for whatever environment you happen to be developing in. For example, the React community tends to prefer Webpack whereas Aurelia would have you use JSPM / System.js. |
It would be great if the documentation specified the source specification for the programmatic module loader API since the draft ES6 specification you link to does not include that API, and I can find no definitive source specification anywhere on the Web.
Any pointers much appreciated.
The text was updated successfully, but these errors were encountered: