Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2b1bbf4

Browse files
author
Dimitar Tachev
authored
Merge pull request #1008 from NativeScript/tachev/fix-source-map-files
fix: require dependencies only in sourceFiles (avoid getting invalid `.js.map` files)
2 parents fe2096f + ff07d6c commit 2b1bbf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-dev-webpack",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"main": "index",
55
"description": "",
66
"homepage": "http://www.telerik.com",
@@ -91,4 +91,4 @@
9191
"tns-core-modules": "next",
9292
"typescript": "~3.4.0"
9393
}
94-
}
94+
}

Diff for: plugins/GenerateNativeScriptEntryPointsPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () {
7272
throw new Error(`${GenerationFailedError} File "${filePath}" not found for entry "${entryPointName}".`);
7373
}
7474

75-
if (!this.isHMRFile(filePath)) {
75+
if (!this.isHMRFile(filePath) && this.isSourceFile(filePath)) {
7676
const currFileDirRelativePath = path.dirname(filePath);
7777
const pathToRootFromCurrFile = path.relative(currFileDirRelativePath, ".");
7878

0 commit comments

Comments
 (0)