Releases: dferber90/jest-transform-css
Releases · dferber90/jest-transform-css
v6.0.1
v6.0.0
- Upgraded
postcss-load-config
to latest version in #23, thanks @Yankovsky
BREAKING CHANGE
Your .postcssrc
file might need to be adapted as postcss-load-config
dropped support for the sync API and for Node.js 12 & 10.
v5.0.0
BREAKING CHANGE
- dropped support for
jesttransformcss.config.js
in favor of transformer config
You no longer need a jesttransformcss.config.js
file. Instead, configure your transform directly.
See #22 for more information.
massive thanks to @Yankovsky for coming up with & implementing this improvement
v4.0.1
v4.0.0
- upgraded to postcss v8, thanks @WestCornfield
v3.0.0
- Remove support for Node 4 and 6. Requires Node 8+ (transitively through comsiconfig and cross-spawn)
- add support for Jest 27, thanks @iddan #14
v2.1.0
v2.0.0
Fixed
- d35fe66 remove
rootDir
from cache key
Breaking
- fea1e8d default to regular CSS (CSS Modules are now opt-in)
Upgrade Guide
So far CSS Modules were enabled by default. They are now opt-in. Add a configuration file called jesttransformcss.config.js
at your project root to and add the following content to activate them:
// jesttransformcss.config.js
module.exports = {
modules: true
};
Notice that you can also pass a function to modules
to determine the mode depending on the file. See the README for more information.