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

Commit ff07d6c

Browse files
committed
fix: require dependencies only in sourceFiles (avoid getting invalid .js.map files)
1 parent 0ac0682 commit ff07d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)