babel-plugin-css-modules-transform
babel-plugin-css-modules-transform copied to clipboard
implicitly registeres node hook
currently babel-plugin-css-modules-transform implicitly registers a css hook, this can cause stange interactions when using babel-register.
I've got a PR to enable using the require-hook machinery on its own: https://github.com/css-modules/css-modules-require-hook/pull/117
you can use it with:
import setupHook from 'css-modules-require-hook/setupHook';
const hooks = setupHook(params, ([hook, extension, isException]) => ({ hook, extension, isException }));