-
Notifications
You must be signed in to change notification settings - Fork 216
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
Extension-based loading strategy #234
Comments
Experiment with simplest-possible extension-based loader configuration. The ext plugin maps file extensions to plugin other plugin loaders to allowing loading things like html, css, text, json, locale files, etc. without explicitly using a plugin id. Still more to do here, like how to use this without having to specify ext! everywhere (which kinda defeats the purpose!) See #234
After discussion w/@unscriptable, I added a simple experiment in the extension-based-loading branch. It's a plugin that delegates to other plugins by transforming resource ids based on their extension. It works great, but requires that you either explicitly use it as a plugin, e.g. It'd be nice if this were mostly invisible, but we still need to work that out. |
Any progress with this at all? :D |
Sorry, @gehan. Not much time lately. :( |
No probs! Was mainly of interest for relative paths in specs which seems to be possible in the newest develpments! |
It'd be great to support loading different types of resources based on file extension, or module id pattern matching. Also, AMD plugin syntax, or the like, will not be supported as a first-class syntax in ES6 module loaders, so that's an indication that an AMD-like plugin approach probably is not the future. Using Extensions and/or pattern-matching is also closer to how Node's
require
extensions work.The text was updated successfully, but these errors were encountered: