How can I enable this for one module only?
Closed this issue · 1 comments
josh08h commented
I don't want to include this for all modules as it bloats the bundle.
How can I specify I only add the getter/setter for a specified module?
I guess an inline loader would suffice but how can I use this via an inline loader? Something along the lines of import { __RewireAPI__ as ajaxApi } from 'babel-loader?plugins=babel-plugin-rewire!../../banco-ui/util/ajax';
josh08h commented
Figured it: import { __RewireAPI__ as ajaxApi } from 'babel-loader?plugins[]=rewire!../../banco-ui/util/ajax';