Skip to content

v2.0.0

Compare
Choose a tag to compare
@dferber90 dferber90 released this 24 Sep 10:03
· 36 commits to master since this release
65edbc1

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.