Skip to content

Commit b3b1b60

Browse files
committed
build: concantenate js relative files as well
1 parent 81a970b commit b3b1b60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gulpfile.js/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ function inlineTextRequire(file, content, srcDir) {
562562
textContentMap[requirePath] = fileContent;
563563
textContent = fileContent;
564564
}
565-
if(requirePath.endsWith(".js") || excludeSuffixPathsInlining.some(ext => requirePath.endsWith(ext))) {
565+
if((requirePath.endsWith(".js") && !requirePath.includes("./")) // js files that are relative paths are ok
566+
|| excludeSuffixPathsInlining.some(ext => requirePath.endsWith(ext))) {
566567
console.warn("Not inlining JS/JSON file:", requirePath, filePath);
567568
} else {
568569
console.log("Inlining", requireStatement);

0 commit comments

Comments
 (0)