Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implicitly registeres node hook #89

Open
graingert opened this issue May 29, 2018 · 1 comment
Open

implicitly registeres node hook #89

graingert opened this issue May 29, 2018 · 1 comment

Comments

@graingert
Copy link

graingert commented May 29, 2018

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: css-modules/css-modules-require-hook#117

@graingert
Copy link
Author

graingert commented May 29, 2018

you can use it with:

import setupHook from 'css-modules-require-hook/setupHook';

const hooks = setupHook(params, ([hook, extension, isException]) => ({ hook, extension, isException }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant