diff --git a/package.json b/package.json index 0cfa3ef0..aad09b9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-dev-webpack", - "version": "1.0.1", + "version": "1.0.2", "main": "index", "description": "", "homepage": "http://www.telerik.com", diff --git a/plugins/GenerateNativeScriptEntryPointsPlugin.js b/plugins/GenerateNativeScriptEntryPointsPlugin.js index 2d640e89..99edef26 100644 --- a/plugins/GenerateNativeScriptEntryPointsPlugin.js +++ b/plugins/GenerateNativeScriptEntryPointsPlugin.js @@ -55,7 +55,7 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () { entryChunk = chunk; } else { chunk.files.forEach(fileName => { - if (!this.isHMRFile(fileName)) { + if (!this.isHMRFile(fileName) && this.isSourceFile(fileName)) { requiredFiles.push(fileName); } }); @@ -96,5 +96,9 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () { return fileName.indexOf("hot-update") > -1; } + GenerateNativeScriptEntryPointsPlugin.prototype.isSourceFile = function (fileName) { + return fileName.endsWith(".js"); + } + return GenerateNativeScriptEntryPointsPlugin; })();