Description
Some webpack plugin are not used at all when using this plugin. For instance, definePlugin and uglifyJsPlugin don't seem to affect files.
My use case: together, they can perform some dead code elimination on if (DEBUG) statement, allowing me to have a bundle without debug stuff. However, I'm also transpiling each file individually, and those still have the if (__DEBUG__) statements in them.
Reproducing steps
Expected results
The last command yields no result
Actual results
The last command still shows some __DEBUG__ instance in my transpiled code.
Description
Some webpack plugin are not used at all when using this plugin. For instance,
definePluginanduglifyJsPlugindon't seem to affect files.My use case: together, they can perform some dead code elimination on
if (DEBUG)statement, allowing me to have a bundle without debug stuff. However, I'm also transpiling each file individually, and those still have theif (__DEBUG__)statements in them.Reproducing steps
npm i && npm run transpilegrep "__DEBUG__" lib/ -rExpected results
The last command yields no result
Actual results
The last command still shows some
__DEBUG__instance in my transpiled code.