From 0ac0682597fbd42ce04898f1370c5bc6944c886d Mon Sep 17 00:00:00 2001 From: DimitarTachev Date: Mon, 29 Jul 2019 13:59:08 +0300 Subject: [PATCH 1/2] chore: bump version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aad09b9c..06b4cdb3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-dev-webpack", - "version": "1.0.2", + "version": "1.0.3", "main": "index", "description": "", "homepage": "http://www.telerik.com", @@ -91,4 +91,4 @@ "tns-core-modules": "next", "typescript": "~3.4.0" } -} +} \ No newline at end of file From ff07d6c0576836587c68e38bba93c20ff82f7db2 Mon Sep 17 00:00:00 2001 From: DimitarTachev Date: Mon, 29 Jul 2019 13:59:37 +0300 Subject: [PATCH 2/2] fix: require dependencies only in sourceFiles (avoid getting invalid `.js.map` files) --- plugins/GenerateNativeScriptEntryPointsPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GenerateNativeScriptEntryPointsPlugin.js b/plugins/GenerateNativeScriptEntryPointsPlugin.js index 1f9cd772..9417be22 100644 --- a/plugins/GenerateNativeScriptEntryPointsPlugin.js +++ b/plugins/GenerateNativeScriptEntryPointsPlugin.js @@ -72,7 +72,7 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () { throw new Error(`${GenerationFailedError} File "${filePath}" not found for entry "${entryPointName}".`); } - if (!this.isHMRFile(filePath)) { + if (!this.isHMRFile(filePath) && this.isSourceFile(filePath)) { const currFileDirRelativePath = path.dirname(filePath); const pathToRootFromCurrFile = path.relative(currFileDirRelativePath, ".");