Open douglasduteil opened 9 years ago
I'm a bit confused what this does. We should really build a test suite for this stuff, any ideas on the best way to go about that?
Hi @geelen
The new loading strategy involves sorting and injecting css asynchronously if no other styles are loaded in a 0.5s period (see https://github.com/douglasduteil/jspm-loader-css/blob/v1.0.1/lib/CSSLoaderDOM.js#L17) . However it gives no guarantee that all the registered styles are done going through the other asynchronous processes ! So this fix is made to filter the styles so only fully resolved styles are injected in the DOM.
Again @geelen. This is a fix for a critical bug because the current code allow compiling class with undefined path. (Ex: .undefined__foo)
For testing I tried some dummy tests with TAPE and I already found some bugs did to no JSPM compiled code
I will be posting it tonight so you can review it
Filter the available dependencies so the pending ones don't get linked