Have an Embroider app that depends on ember-css-modules
? In a few steps, you can replace it with embroider-css-modules
so that you can enable stricter Embroider settings.
Note
If you get lost, you can check ember-container-query
for reference.
Run the provided codemod to get started.
# From the project root
npx ember-codemod-remove-ember-css-modules --type app
You may also want to refactor code.
Please follow steps 1 and 2 for Embroider apps:
In ember-cli-build.js
, you may now be able to apply stricter settings for Embroider.
For simplicity, only the options for @embroider/compat
are shown. (The rest of the file remains the same.)
const options = {
packagerOptions: { /* ... */ },
skipBabel: { /* ... */ },
staticAddonTestSupportTrees: true,
staticAddonTrees: true, // <-- new
staticEmberSource: true,
staticInvokables: true, // <-- new
};