alloc / cush

WIP module bundler 🎁
MIT License
0 stars 0 forks source link

Granular scss rebuild #4

Closed aleclarson closed 6 years ago

aleclarson commented 6 years ago

For each .scss or .sass module:

When a module is updated, insert external variables at the top of the module before transpiling.

This strategy lets us avoid re-transpiling the entire bundle when a .scss or .sass module changes.

Note: We won't support cross-file @extend for now.

aleclarson commented 6 years ago

This is more effort than it's worth, I think.

I completed the reference/declaration parser and got cold feet after digging into the complexity of resolving and tracking dependencies between modules.

May revisit in the (not nearby) future.

aleclarson commented 6 years ago

This would be easier to implement if only direct parents have access to the variables, mixins, and functions of a module.