Releases: salsify/ember-css-modules
Releases · salsify/ember-css-modules
Eventually Consistent
Fixed
- Ensure
ember-css-modulesis initialized beforeember-cli-htmlbars. This almost always was coincidentally the case already, but ordering constraints from other addons could cause ECM to init later, causinglocal-classin colocated templates not to be processed, as in ember-concurrency-async#4
Primetime
This is a stable release of the changes included in 1.3.0-beta.1 and -beta.2. Headline additions include support for building in projects using @embroider/compat and for defining styles when writing components in the component/template colocation layout.
Help Me Out
Added
- Support for Embroider's
staticHelpersflag. #188
Fixed
- Timing changes to when ECM calculates its configuration caused some addons that late-defined their options (e.g. in their
included()hook) not to be picked up correctly. This timing has been reverted to match that of ECM stable. #186 - ECM no longer emits a nonsense error message without actionable information when a bad import path is specified for a
@valueorcomposesdirective. #186
Come Together
Added
- Experimental support for apps built using
@embroider/compat. Note that, until embroider-build/embroider#309 is fixed, CSS changes will likely not show up on rebuilds (though corresponding JS changes will) - Experimental support for components in the Octane "colocation" layout (see the README for details.)
- A new
includeExtensionInModulePathoption that, when set totrue, will include.css(or whatever your configured extension is) in the import path for your modules. Note that the extension is always included in the module name for colocated styles in order not to conflict with the component definition itself.
Form Over Function
Fixed
- Support new template factory format coming in Ember 3.13. #146
What's Old is New Again
Added
- ember-css-modules now works in projects using either stage 1 or stage 2 of the decorators proposal, regardless of whether you're using
@ember-decorators/*,ember-decorators-polyfill, or built-in decorator support viaember-cli-babel>= 7.7 and Ember 3.10.
Parallelogram
Fixed
- ECM's template AST transform no longer prevents ember-cli-babel from performing parallel transpilation.
Stage Fright
Added
@localClassNamesand@localClassNamenow support projects using either stage 1 or stage 2 of the decorators proposal.
High Resolution
Fixed
- Resolving
@values and class names from addons no longer fails for addons that aren't dependencies of the root application. #125 - Projects using ember-css-modules with other preprocessors (like ember-cli-sass) should no longer see those preprocessors fully rebuild when unrelated files (like templates) change. #120