TestGlobBasicNoBundle
---------- /out.js ----------
const ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: require("./src/" + ab),
    import: import("./src/" + ab)
  },
  template: {
    require: require(`./src/${ab}`),
    import: import(`./src/${ab}`)
  }
});

================================================================================
TestGlobBasicNoSplitting
---------- /out.js ----------
// src/a.js
var require_a = __commonJS({
  "src/a.js"(exports, module) {
    module.exports = "a";
  }
});

// src/b.js
var require_b = __commonJS({
  "src/b.js"(exports, module) {
    module.exports = "b";
  }
});

// require("./src/**/*") in entry.js
var globRequire_src = __glob({
  "./src/a.js": () => require_a(),
  "./src/b.js": () => require_b()
});

// import("./src/**/*") in entry.js
var globImport_src = __glob({
  "./src/a.js": () => Promise.resolve().then(() => __toESM(require_a())),
  "./src/b.js": () => Promise.resolve().then(() => __toESM(require_b()))
});

// entry.js
var ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: globRequire_src("./src/" + ab),
    import: globImport_src("./src/" + ab)
  },
  template: {
    require: globRequire_src(`./src/${ab}`),
    import: globImport_src(`./src/${ab}`)
  }
});

================================================================================
TestGlobBasicSplitting
---------- /out/entry.js ----------
import {
  require_a
} from "./chunk-Z3PINQB2.js";
import {
  require_b
} from "./chunk-XAB6ATD2.js";
import {
  __glob
} from "./chunk-NI2FVOS3.js";

// require("./src/**/*") in entry.js
var globRequire_src = __glob({
  "./src/a.js": () => require_a(),
  "./src/b.js": () => require_b()
});

// import("./src/**/*") in entry.js
var globImport_src = __glob({
  "./src/a.js": () => import("./a-G7HQS5H7.js"),
  "./src/b.js": () => import("./b-DBW3WPXU.js")
});

// entry.js
var ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: globRequire_src("./src/" + ab),
    import: globImport_src("./src/" + ab)
  },
  template: {
    require: globRequire_src(`./src/${ab}`),
    import: globImport_src(`./src/${ab}`)
  }
});

---------- /out/a-G7HQS5H7.js ----------
import {
  require_a
} from "./chunk-Z3PINQB2.js";
import "./chunk-NI2FVOS3.js";
export default require_a();

---------- /out/chunk-Z3PINQB2.js ----------
import {
  __commonJS
} from "./chunk-NI2FVOS3.js";

// src/a.js
var require_a = __commonJS({
  "src/a.js"(exports, module) {
    module.exports = "a";
  }
});

export {
  require_a
};

---------- /out/b-DBW3WPXU.js ----------
import {
  require_b
} from "./chunk-XAB6ATD2.js";
import "./chunk-NI2FVOS3.js";
export default require_b();

---------- /out/chunk-XAB6ATD2.js ----------
import {
  __commonJS
} from "./chunk-NI2FVOS3.js";

// src/b.js
var require_b = __commonJS({
  "src/b.js"(exports, module) {
    module.exports = "b";
  }
});

export {
  require_b
};

---------- /out/chunk-NI2FVOS3.js ----------
export {
  __glob,
  __commonJS
};

================================================================================
TestGlobEntryPointAbsPath
---------- /out/entry.js ----------
// Users/user/project/src/entry.js
works = true;

================================================================================
TestGlobNoMatches
---------- /out/entry.js ----------
// require("./src/**/*.json") in entry.js
var globRequire_src_json = __glob({});

// import("./src/**/*.json") in entry.js
var globImport_src_json = __glob({});

// entry.js
var ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: globRequire_src_json("./src/" + ab + ".json"),
    import: globImport_src_json("./src/" + ab + ".json")
  },
  template: {
    require: globRequire_src_json(`./src/${ab}.json`),
    import: globImport_src_json(`./src/${ab}.json`)
  }
});

================================================================================
TestGlobWildcardNoSlash
---------- /out.js ----------
// src/file-a.js
var require_file_a = __commonJS({
  "src/file-a.js"(exports, module) {
    module.exports = "a";
  }
});

// src/file-b.js
var require_file_b = __commonJS({
  "src/file-b.js"(exports, module) {
    module.exports = "b";
  }
});

// require("./src/file-*.js") in entry.js
var globRequire_src_file_js = __glob({
  "./src/file-a.js": () => require_file_a(),
  "./src/file-b.js": () => require_file_b()
});

// import("./src/file-*.js") in entry.js
var globImport_src_file_js = __glob({
  "./src/file-a.js": () => Promise.resolve().then(() => __toESM(require_file_a())),
  "./src/file-b.js": () => Promise.resolve().then(() => __toESM(require_file_b()))
});

// entry.js
var ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: globRequire_src_file_js("./src/file-" + ab + ".js"),
    import: globImport_src_file_js("./src/file-" + ab + ".js")
  },
  template: {
    require: globRequire_src_file_js(`./src/file-${ab}.js`),
    import: globImport_src_file_js(`./src/file-${ab}.js`)
  }
});

================================================================================
TestGlobWildcardSlash
---------- /out.js ----------
// src/file-a.js
var require_file_a = __commonJS({
  "src/file-a.js"(exports, module) {
    module.exports = "a";
  }
});

// src/file-b.js
var require_file_b = __commonJS({
  "src/file-b.js"(exports, module) {
    module.exports = "b";
  }
});

// src/nested/dir/file-a.js
var require_file_a2 = __commonJS({
  "src/nested/dir/file-a.js"(exports, module) {
    module.exports = "a";
  }
});

// src/nested/dir/file-b.js
var require_file_b2 = __commonJS({
  "src/nested/dir/file-b.js"(exports, module) {
    module.exports = "b";
  }
});

// require("./src/**/*.js") in entry.js
var globRequire_src_js = __glob({
  "./src/file-a.js": () => require_file_a(),
  "./src/file-b.js": () => require_file_b(),
  "./src/nested/dir/file-a.js": () => require_file_a2(),
  "./src/nested/dir/file-b.js": () => require_file_b2()
});

// import("./src/**/*.js") in entry.js
var globImport_src_js = __glob({
  "./src/file-a.js": () => Promise.resolve().then(() => __toESM(require_file_a())),
  "./src/file-b.js": () => Promise.resolve().then(() => __toESM(require_file_b())),
  "./src/nested/dir/file-a.js": () => Promise.resolve().then(() => __toESM(require_file_a2())),
  "./src/nested/dir/file-b.js": () => Promise.resolve().then(() => __toESM(require_file_b2()))
});

// entry.js
var ab = Math.random() < 0.5 ? "a.js" : "b.js";
console.log({
  concat: {
    require: globRequire_src_js("./src/" + ab + ".js"),
    import: globImport_src_js("./src/" + ab + ".js")
  },
  template: {
    require: globRequire_src_js(`./src/${ab}.js`),
    import: globImport_src_js(`./src/${ab}.js`)
  }
});

================================================================================
TestTSGlobBasicNoSplitting
---------- /out.js ----------
// src/a.ts
var require_a = __commonJS({
  "src/a.ts"(exports, module) {
    module.exports = "a";
  }
});

// src/b.ts
var require_b = __commonJS({
  "src/b.ts"(exports, module) {
    module.exports = "b";
  }
});

// require("./src/**/*") in entry.ts
var globRequire_src = __glob({
  "./src/a.ts": () => require_a(),
  "./src/b.ts": () => require_b()
});

// import("./src/**/*") in entry.ts
var globImport_src = __glob({
  "./src/a.ts": () => Promise.resolve().then(() => __toESM(require_a())),
  "./src/b.ts": () => Promise.resolve().then(() => __toESM(require_b()))
});

// entry.ts
var ab = Math.random() < 0.5 ? "a.ts" : "b.ts";
console.log({
  concat: {
    require: globRequire_src("./src/" + ab),
    import: globImport_src("./src/" + ab)
  },
  template: {
    require: globRequire_src(`./src/${ab}`),
    import: globImport_src(`./src/${ab}`)
  }
});

================================================================================
TestTSGlobBasicSplitting
---------- /out/entry.js ----------
import {
  require_a
} from "./chunk-NW3BCH2J.js";
import {
  require_b
} from "./chunk-LX6LSYGO.js";
import {
  __glob
} from "./chunk-NI2FVOS3.js";

// require("./src/**/*") in entry.ts
var globRequire_src = __glob({
  "./src/a.ts": () => require_a(),
  "./src/b.ts": () => require_b()
});

// import("./src/**/*") in entry.ts
var globImport_src = __glob({
  "./src/a.ts": () => import("./a-CIKLEGQA.js"),
  "./src/b.ts": () => import("./b-UWTMLRMB.js")
});

// entry.ts
var ab = Math.random() < 0.5 ? "a.ts" : "b.ts";
console.log({
  concat: {
    require: globRequire_src("./src/" + ab),
    import: globImport_src("./src/" + ab)
  },
  template: {
    require: globRequire_src(`./src/${ab}`),
    import: globImport_src(`./src/${ab}`)
  }
});

---------- /out/a-CIKLEGQA.js ----------
import {
  require_a
} from "./chunk-NW3BCH2J.js";
import "./chunk-NI2FVOS3.js";
export default require_a();

---------- /out/chunk-NW3BCH2J.js ----------
import {
  __commonJS
} from "./chunk-NI2FVOS3.js";

// src/a.ts
var require_a = __commonJS({
  "src/a.ts"(exports, module) {
    module.exports = "a";
  }
});

export {
  require_a
};

---------- /out/b-UWTMLRMB.js ----------
import {
  require_b
} from "./chunk-LX6LSYGO.js";
import "./chunk-NI2FVOS3.js";
export default require_b();

---------- /out/chunk-LX6LSYGO.js ----------
import {
  __commonJS
} from "./chunk-NI2FVOS3.js";

// src/b.ts
var require_b = __commonJS({
  "src/b.ts"(exports, module) {
    module.exports = "b";
  }
});

export {
  require_b
};

---------- /out/chunk-NI2FVOS3.js ----------
export {
  __glob,
  __commonJS
};
