Open moimikey opened 7 years ago
Refer to the exclude
option.
https://github.com/gajus/babel-plugin-react-css-modules#configuration
@gajus because of require.context, exclude
is not working.
it's assuming config.js
is to be excluded, despite config.js
contains require.context
with many potential dynamic requires to-be-excluded. i would have assumed that babel-plugin-react-css-modules
would need a clause to recursively check through those require.context
requires, to which it then can successfully exclude.
Hi,
I'll try to open a PR if I get no where, but I'd like to exclude a file from being transformed, but that file is required via
require.context
. when debugging, here is the output ofstats
when it tries to go over the file (config.js) that usesrequire.context
:I would imagine this requires a PR to implement?
Thanks.