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-KO426RN2.js";
import {
  require_b
} from "./chunk-SGVK3D4Q.js";
import {
  __glob
} from "./chunk-WCFE7E2E.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-7QA47R6Z.js"),
  "./src/b.js": () => import("./b-KY4MVCQS.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-7QA47R6Z.js ----------
import {
  require_a
} from "./chunk-KO426RN2.js";
import "./chunk-WCFE7E2E.js";
export default require_a();

---------- /out/chunk-KO426RN2.js ----------
import {
  __commonJS
} from "./chunk-WCFE7E2E.js";

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

export {
  require_a
};

---------- /out/b-KY4MVCQS.js ----------
import {
  require_b
} from "./chunk-SGVK3D4Q.js";
import "./chunk-WCFE7E2E.js";
export default require_b();

---------- /out/chunk-SGVK3D4Q.js ----------
import {
  __commonJS
} from "./chunk-WCFE7E2E.js";

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

export {
  require_b
};

---------- /out/chunk-WCFE7E2E.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-YMCIDKCT.js";
import {
  require_b
} from "./chunk-2BST4PYI.js";
import {
  __glob
} from "./chunk-WCFE7E2E.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-YXM4MR7E.js"),
  "./src/b.ts": () => import("./b-IPMBSSGN.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-YXM4MR7E.js ----------
import {
  require_a
} from "./chunk-YMCIDKCT.js";
import "./chunk-WCFE7E2E.js";
export default require_a();

---------- /out/chunk-YMCIDKCT.js ----------
import {
  __commonJS
} from "./chunk-WCFE7E2E.js";

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

export {
  require_a
};

---------- /out/b-IPMBSSGN.js ----------
import {
  require_b
} from "./chunk-2BST4PYI.js";
import "./chunk-WCFE7E2E.js";
export default require_b();

---------- /out/chunk-2BST4PYI.js ----------
import {
  __commonJS
} from "./chunk-WCFE7E2E.js";

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

export {
  require_b
};

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