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

Commit 4bb6124

Browse files
DimitarTachevFatme
authored andcommitted
fix: do not require .js.map files in the entry points when someone is using devtool: "source-map"
1 parent d2bf15b commit 4bb6124

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: plugins/GenerateNativeScriptEntryPointsPlugin.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () {
5555
entryChunk = chunk;
5656
} else {
5757
chunk.files.forEach(fileName => {
58-
if (!this.isHMRFile(fileName)) {
58+
if (!this.isHMRFile(fileName) && this.isSourceFile(fileName)) {
5959
requiredFiles.push(fileName);
6060
}
6161
});
@@ -96,5 +96,9 @@ exports.GenerateNativeScriptEntryPointsPlugin = (function () {
9696
return fileName.indexOf("hot-update") > -1;
9797
}
9898

99+
GenerateNativeScriptEntryPointsPlugin.prototype.isSourceFile = function (fileName) {
100+
return fileName.endsWith(".js");
101+
}
102+
99103
return GenerateNativeScriptEntryPointsPlugin;
100104
})();

0 commit comments

Comments
 (0)