Skip to content

Commit 87c0d42

Browse files
committed
build: fix windows build failure
1 parent 6daaae0 commit 87c0d42

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
@@ -420,7 +420,8 @@ function makeBracketsConcatJS() {
420420
for(let mergePath of pathsToMerge){
421421
let files = listAllJsFilesRecursively(`${srcDir}${mergePath}`);
422422
for(let file of files){
423-
const requirePath = file.replace(srcDir, "").replace(".js", "");
423+
let requirePath = file.replace(srcDir, "").replace(".js", "");
424+
requirePath = requirePath.replaceAll("\\", "/"); // windows style paths to webby paths
424425
let content = fs.readFileSync(file, "utf8");
425426
const count = content.split("define(").length - 1;
426427
if(count === 0 || DO_NOT_CONCATENATE.includes(file)) {

0 commit comments

Comments
 (0)