diff --git a/webpack.common.js.angular.template b/webpack.common.js.angular.template index 0d017ebd..f52e56d6 100644 --- a/webpack.common.js.angular.template +++ b/webpack.common.js.angular.template @@ -21,9 +21,15 @@ module.exports = function (platform, destinationApp) { var plugins = [ new ExtractTextPlugin("app.css"), - // Vendor libs go to the vendor.js chunk new webpack.optimize.CommonsChunkPlugin({ - name: ["vendor"] + name: [ + // Vendor libs go to the vendor.js chunk + "vendor", + + // Compatibility workaround with NativeScript 2.5 Android runtime + // https://github.com/NativeScript/NativeScript/issues/3947 + "tns-java-classes", + ], }), // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({ diff --git a/webpack.common.js.javascript.template b/webpack.common.js.javascript.template index 7f44fda8..dde25431 100644 --- a/webpack.common.js.javascript.template +++ b/webpack.common.js.javascript.template @@ -22,7 +22,14 @@ module.exports = function (platform, destinationApp) { new ExtractTextPlugin("app.css"), // Vendor libs go to the vendor.js chunk new webpack.optimize.CommonsChunkPlugin({ - name: ["vendor"] + name: [ + // Vendor libs go to the vendor.js chunk + "vendor", + + // Compatibility workaround with NativeScript 2.5 Android runtime + // https://github.com/NativeScript/NativeScript/issues/3947 + "tns-java-classes", + ], }), // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({ diff --git a/webpack.common.js.typescript.template b/webpack.common.js.typescript.template index 8427c542..471ce9d4 100644 --- a/webpack.common.js.typescript.template +++ b/webpack.common.js.typescript.template @@ -22,7 +22,14 @@ module.exports = function (platform, destinationApp) { new ExtractTextPlugin("app.css"), // Vendor libs go to the vendor.js chunk new webpack.optimize.CommonsChunkPlugin({ - name: ["vendor"] + name: [ + // Vendor libs go to the vendor.js chunk + "vendor", + + // Compatibility workaround with NativeScript 2.5 Android runtime + // https://github.com/NativeScript/NativeScript/issues/3947 + "tns-java-classes", + ], }), // Define useful constants like TNS_WEBPACK new webpack.DefinePlugin({