From 4bb61242077311384a950c0eae4bb60d41909ece Mon Sep 17 00:00:00 2001 From: DimitarTachev Date: Wed, 10 Jul 2019 16:00:27 +0300 Subject: [PATCH 1/2] fix: do not require `.js.map` files in the entry points when someone is using devtool: "source-map" --- plugins/GenerateNativeScriptEntryPointsPlugin.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; })(); From 24aff45f1d3fad91ce382cb5cc7dce25e9a98410 Mon Sep 17 00:00:00 2001 From: fatme Date: Wed, 17 Jul 2019 23:33:52 +0300 Subject: [PATCH 2/2] chore: bump version to 1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",