salsify / ember-css-modules

CSS Modules for ambitious applications
MIT License
282 stars 50 forks source link

Tree passed to preprocessors for app and addon is not scoped with moduleName #283

Closed wondersloth closed 2 years ago

wondersloth commented 2 years ago

Replicated the issue here: https://github.com/wondersloth/demo-embroider-preprocessors-bug

When a preprocessor is run on an app or addon, the tree isn't scoped with the moduleName.

This creates backcompat issues with addons like ember-css-modules that uses the file path to generate hash for some values.

screenshot