using with react-app-rewired
ajayep opened this issue · comments
Hi,
I am trying out ifdef-loader with react-app-rewired.
Below are the contents of my config-overrides.js file
`
module.exports = function override(config, env) {
console.log('override!');
const opts = {
PRODUCTION:false,
DEBUG: true,
"ifdef-verbose": true
};
let loaders = config.module.rules[2].oneOf;
loaders.splice(loaders.length - 1, 0, {
test: /\.js$/,
use: [
{ loader: "echo-loader?msg=dump" },
{ loader: "ifdef-loader", options: opts }
]
});
return config;
};`
When I dump the files being processed by echo-loader I see my files are not getting processed
Any clues on how I can get it working with react-app-rewired ?
Cheers
Ajay
in dump.txt
I don't see any // #ifdef
directives that have to be processed with ifdef-loader