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

fix: require dependencies only in sourceFiles (avoid getting invalid .js.map files) #1008

Merged
merged 2 commits into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-dev-webpack",
"version": "1.0.2",
"version": "1.0.3",
"main": "index",
"description": "",
"homepage": "http://www.telerik.com",
Expand Down Expand Up @@ -91,4 +91,4 @@
"tns-core-modules": "next",
"typescript": "~3.4.0"
}
}
}
2 changes: 1 addition & 1 deletion plugins/GenerateNativeScriptEntryPointsPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".");

Expand Down