Closed anilanar closed 5 years ago
When using node: false option in webpack.config, the following error occurs:
node: false
utils.js:243 Uncaught ReferenceError: process is not defined at Object../node_modules/ttag/dist/utils.js (utils.js:243)
The line:
var isDebug = !(process && process.env.NODE_ENV === 'production');
When node is false, process doesn't exist but webpack can still replace process.env.NODE_ENV with true/false via webpack.DefinePlugin.
node
process
process.env.NODE_ENV
true/false
webpack.DefinePlugin
@anilanar Thanks for the report! Seems like it's a bug.
You can try ttag@1.7.9. This issue should be fixed. Please, let me know if that works for you.
ttag@1.7.9
When using
node: false
option in webpack.config, the following error occurs:The line:
When
node
is false,process
doesn't exist but webpack can still replaceprocess.env.NODE_ENV
withtrue/false
viawebpack.DefinePlugin
.