css-modules / postcss-modules-resolve-imports

Resolves ICSS imports
MIT License
9 stars 6 forks source link

implement predictable result #2

Closed sullenor closed 8 years ago

sullenor commented 8 years ago

Since, we have to process multiple files, we need to provide tokens for mutliple compositions in the order.

Affects only tokens currently.

sullenor commented 8 years ago

Looks like I managed to understand the problem. It comes from cache and queue, when the promise can be resolved earlier or later then the dependency will be called, which depends on the cached file.

Simple solution — use promises as cache.

sullenor commented 8 years ago

solved