diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index 895ce298..144bcdf7 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -195,6 +195,7 @@ module.exports = env => { // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({ "global.TNS_WEBPACK": "true", + "process": undefined, }), // Remove all files from the out dir. new CleanWebpackPlugin([ `${dist}/**/*` ]), diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index 37251794..2795ee65 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -170,6 +170,7 @@ module.exports = env => { // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({ "global.TNS_WEBPACK": "true", + "process": undefined, }), // Remove all files from the out dir. new CleanWebpackPlugin([ `${dist}/**/*` ]), diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index 79ee37a5..a4053bdb 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -180,6 +180,7 @@ module.exports = env => { // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({ "global.TNS_WEBPACK": "true", + "process": undefined, }), // Remove all files from the out dir. new CleanWebpackPlugin([ `${dist}/**/*` ]),