The new API
Features:
— Added ignore
option, so you can ignore particular files from processing. Supports globs, regexp and functions.
— Hook is not attached automatically now, so you need to make a function call first to make it work.
— Added possibility to use particular files as presets. In that case hook will be attached automatically and all options should be described in the cmrh.conf.js
file. To use it, you should run: require('css-modules-require-hook/preset')
. I hope it will solve the babel issue.
— Some internal updates.