Skip to content
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

Create css module loader (like curl's legacy loader) and a text loader. #226

Open
unscriptable opened this issue Sep 6, 2013 · 1 comment

Comments

@unscriptable
Copy link
Member

I like the new config-based way we're specifying exports and dependencies in the new legacy loader. One of the things it fixes is that it eliminates the !order and !exports suffixes on the module ids necessary with the js! plugin. The css! plugin also uses suffixes (as well as allowing comma-separated ids which has the same consequences).

Removal of these suffixes, in turn, eliminates the need to have a normalize method on the plugin. And, finally, as we're coming to discover, the proposed ES6 module loader will not allow async normalization.

In short: the current js! and css! plugins won't work seamlessly in ES6 land because of their module id suffixes / normalization rules.

We should probably plan to break backwards compatibility on these plugins at some point, but maybe we should also investigate a css loader that allows the user to specify dependencies (for proper cascading) and an export (to allow the plugin to verify that the stylesheet is loaded in Chrome 14+ and Safari 6).

While we're at it. Why not a text loader, too?

Any thoughts? Comments?

@unscriptable
Copy link
Member Author

This is related to, but not redundant with #234.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant