repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/issue-12562/webpack.config.js | test/configCases/entry/issue-12562/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
app: "./app.js",
home: {
import: "./home.js",
dependOn: "app"
}
},
output: {
pathinfo: "verbose",
filename: "[name].js"
},
optimization: {
runtimeChunk: "single"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/issue-12562/log.js | test/configCases/entry/issue-12562/log.js | export default function (msg) {
console.log.bind(console, msg);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/function-promise/b.js | test/configCases/entry/function-promise/b.js | it("should compile", (done) => {
done()
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/function-promise/test.config.js | test/configCases/entry/function-promise/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./a.js", "./b.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/function-promise/webpack.config.js | test/configCases/entry/function-promise/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry() {
return Promise.resolve({
a: "./a",
b: ["./b"]
});
},
output: {
filename: "[name].js"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/entry/function-promise/a.js | test/configCases/entry/function-promise/a.js | it("should compile", (done) => {
done()
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/issue-13022/index.js | test/configCases/concatenate-modules/issue-13022/index.js | import "./a";
setTimeout(() => {}, 0);
const doc = console;
export default 1;
it("should compile and run", () => {
expect(doc).toBe(console);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/issue-13022/webpack.config.js | test/configCases/concatenate-modules/issue-13022/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
entry: {
index: path.resolve(__dirname, "./index.js")
},
output: {
library: "[name]",
libraryExport: "default"
},
optimization: {
concatenateModules: true
}
},
{
entry: {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/issue-13022/a.js | test/configCases/concatenate-modules/issue-13022/a.js | const doc = console;
const setTimeout = 1;
export default 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/A.js | test/configCases/concatenate-modules/rename-10168/A.js | export class A {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/E.js | test/configCases/concatenate-modules/rename-10168/E.js | import { D as DD } from "./D";
export class E extends (function() {
var D = 0;
return DD;
})() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/D.js | test/configCases/concatenate-modules/rename-10168/D.js | export class D {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/index.js | test/configCases/concatenate-modules/rename-10168/index.js | import { A, B, CC, D, E } from "./all";
require("./all");
require("./D");
it("should not rename classes unnecessary", () => {
expect(A.name).toBe("A");
expect(B.name).toBe("B_B");
expect(CC.name).toBe("C");
expect(D.name).toBe("D");
expect(E.name).toBe("E");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/C.js | test/configCases/concatenate-modules/rename-10168/C.js | import { B as BB } from "./B";
const X = 0;
var Y = 0;
export class C extends (function() {
var A = 0;
var B = 0;
return BB;
})() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/B.js | test/configCases/concatenate-modules/rename-10168/B.js | export class B {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/webpack.config.js | test/configCases/concatenate-modules/rename-10168/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/rename-10168/all.js | test/configCases/concatenate-modules/rename-10168/all.js | import { A } from "./A";
export { A };
export { B } from "./B";
export { C as CC } from "./C";
export { D } from "./D";
export { E } from "./E";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/split-chunk-entry-module/index.js | test/configCases/concatenate-modules/split-chunk-entry-module/index.js | import './a';
it("should compile and evaluate fine", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/split-chunk-entry-module/b.js | test/configCases/concatenate-modules/split-chunk-entry-module/b.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js | test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["runtime.js", "common-index_js.js", "main.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js | test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
main: "./index"
},
target: "web",
output: {
filename: "[name].js"
},
optimization: {
concatenateModules: true,
chunkIds: "named",
runtimeChunk: "single",
splitChunks: {
minSize: 0,
cacheGroups: {
c... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/split-chunk-entry-module/a.js | test/configCases/concatenate-modules/split-chunk-entry-module/a.js | import './b';
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/index.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/index.js | import * as modA from "./module-a";
import config from "./config";
const {
deeply: {
nested: { thing = "defaultValue" }
}
} = config;
it("renames a nested destructured assignment with default value correctly", () => {
expect(modA.deeply).toBe("Ignore me please");
expect(modA.nested).toBe("Ignore me please");
e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/config.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/config.js | export default {
deeply: {
nested: {
thing: 'Correct value',
},
},
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/module-a.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/module-a.js | export const deeply = "Ignore me please";
export const nested = "Ignore me please";
export const thing = "Ignore me please";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/import-module/index.js | test/configCases/concatenate-modules/import-module/index.js | import url from "./loader!!";
import {url as url2} from "./module1";
it("should compile and run", () => {
expect(url).toBe("webpack:///a.txt");
expect(url2.toString()).toMatch(/^file:/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/import-module/loader.js | test/configCases/concatenate-modules/import-module/loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function () {
const callback = this.async();
this.importModule("./module1", { baseUri: "webpack://" }, (err, exports) => {
if (err) return callback(err);
callback(null, `module.exports = ${JSON.stringify(exports.url)}`);
});
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/import-module/module1.js | test/configCases/concatenate-modules/import-module/module1.js | const url = new URL("./a.txt", import.meta.url);
export { url }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/import-module/webpack.config.js | test/configCases/concatenate-modules/import-module/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
assetModuleFilename: "[name][ext]"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/entry1.js | test/configCases/concatenate-modules/load-chunk-function/entry1.js | import a from "./a";
import b from "./b";
it("should load fine", () => {
expect(b).toBe("b");
return a.then(a => expect(a).toEqual(nsObj({ default: "b" })));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/b.js | test/configCases/concatenate-modules/load-chunk-function/b.js | export default 'b';
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/test.config.js | test/configCases/concatenate-modules/load-chunk-function/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["entry1.js", "entry2.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/webpack.config.js | test/configCases/concatenate-modules/load-chunk-function/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
entry1: "./entry1",
entry2: "./entry2"
},
output: {
filename: "[name].js"
},
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/c.js | test/configCases/concatenate-modules/load-chunk-function/c.js | export default 'c';
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/entry2.js | test/configCases/concatenate-modules/load-chunk-function/entry2.js | import a from "./a";
it("should load fine", () => {
return a.then(a => expect(a).toEqual(nsObj({ default: "b" })));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/load-chunk-function/a.js | test/configCases/concatenate-modules/load-chunk-function/a.js | import "./c";
export default import("./b");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/index.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/index.js | import modA from "./module-a";
import config from "./config";
const { variableClash = "defaultValue" } = config;
it("renames a destructured assignment with default value correctly", () => {
expect(modA).toBe("valueFromSomeFile");
expect(variableClash).toBe("Correct value");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/config.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/config.js | export default {
variableClash: "Correct value"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/module-a.js | test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/module-a.js | const variableClash = "valueFromSomeFile";
export default variableClash;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/index.js | test/configCases/concatenate-modules/side-effects/index.js | import { b, a, c } from "dep";
c.cc();
b.bbb();
a.aa();
import { order } from "dep/order.js";
it("should import side-effect-free modules in deterministic order (usage order)", () => {
expect(order).toEqual(["c", "b", "a"]);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/webpack.config.js | test/configCases/concatenate-modules/side-effects/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/node_modules/dep/index.js | test/configCases/concatenate-modules/side-effects/node_modules/dep/index.js | import * as a from "./a.js";
import * as b from "./b.js";
import * as c from "./c.js";
export {
a,
b,
c
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/node_modules/dep/b.js | test/configCases/concatenate-modules/side-effects/node_modules/dep/b.js | import { track } from "./order.js";
track("b");
export function bb() {}
export function bbb() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/node_modules/dep/order.js | test/configCases/concatenate-modules/side-effects/node_modules/dep/order.js | export let order = [];
export function track(name) {
order.push(name);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/node_modules/dep/c.js | test/configCases/concatenate-modules/side-effects/node_modules/dep/c.js | import { track } from "./order.js";
track("c");
export function cc() {}
export function ccc() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/concatenate-modules/side-effects/node_modules/dep/a.js | test/configCases/concatenate-modules/side-effects/node_modules/dep/a.js | import { track } from "./order.js";
track("a");
export function aa() {}
export function aaa() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/test.config.js | test/configCases/chunk-graph/issue-15173/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["entryA.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/webpack.config.js | test/configCases/chunk-graph/issue-15173/webpack.config.js | "use strict";
module.exports = {
entry: {
entryA: "./entries/entryA.js",
entryB: "./entries/entryB.js"
},
output: {
filename: "[name].js"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/featureB/index.js | test/configCases/chunk-graph/issue-15173/featureB/index.js | import(/* webpackChunkName: 'commonAsync' */ "../commonAsync");
export function getFeatureB() {
return "featureB";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/commonAsync/index.js | test/configCases/chunk-graph/issue-15173/commonAsync/index.js | import { commonUtil } from "../commonSync";
export function getCommonAsync() {
return commonUtil();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/commonSync/index.js | test/configCases/chunk-graph/issue-15173/commonSync/index.js | var EmptyObj = {};
export function commonUtil() {
return EmptyObj;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/featureC/index.js | test/configCases/chunk-graph/issue-15173/featureC/index.js | import(/* webpackChunkName: 'commonAsync' */ "../commonAsync");
export function getFeatureC() {
return "featuraC";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/entries/entryA.js | test/configCases/chunk-graph/issue-15173/entries/entryA.js | import { commonUtil } from "../commonSync";
export default {
doSomethingInEntryA() {
return commonUtil("entryA");
},
getFeatureA() {
return import(/* webpackChunkName: 'featureA' */ "../featureA");
},
getFeatureB() {
return import(/* webpackChunkName: 'featureB' */ "../featureB");
}
};
it("common async sh... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/entries/entryB.js | test/configCases/chunk-graph/issue-15173/entries/entryB.js | import { commonUtil } from "../commonSync";
export default {
doSomethingInEntryB() {
return commonUtil("entryB");
},
getFeatureC() {
return import(/* webpackChunkName: 'featureC' */ "../featureC");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-15173/featureA/index.js | test/configCases/chunk-graph/issue-15173/featureA/index.js | import(/* webpackChunkName: 'commonAsync' */ "../commonAsync");
export function getFeatureA() {
return "featureA";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/util2.js | test/configCases/chunk-graph/issue-17989/util2.js | export const f = a => a * 2
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/util1.js | test/configCases/chunk-graph/issue-17989/util1.js | export const arg = 42
export { f } from "./util2"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/entry-a.js | test/configCases/chunk-graph/issue-17989/entry-a.js | import loadModule from "./shared"
it("should not have a.add from entry-a + entry-b", () => {
return loadModule().then(module => {
const { arg } = module;
expect(arg).toBe(42)
expect(typeof __webpack_modules__["./util2.js"]).toBe("function")
expect(require.cache["./util2.js"]).toBe(undefined); // not loaded on... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/test.config.js | test/configCases/chunk-graph/issue-17989/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["a.js", "b.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/entry-b.js | test/configCases/chunk-graph/issue-17989/entry-b.js | it("should have util2.js in util chunk", () => {
return import("./shared")
.then(({ default: loadModule }) => loadModule())
.then((module) => {
let arg = module.arg;
expect(arg).toBe(42)
expect(typeof __webpack_modules__["./util2.js"]).toBe("function")
expect(typeof require.cache["./ut... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/webpack.config.js | test/configCases/chunk-graph/issue-17989/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
a: "./entry-a",
b: "./entry-b"
},
optimization: {
sideEffects: true,
providedExports: true,
usedExports: true,
concatenateModules: false,
moduleIds: "named"
},
output: {
filename: "[name].js"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/util.js | test/configCases/chunk-graph/issue-17989/util.js | export { arg } from './util1'
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-17989/shared.js | test/configCases/chunk-graph/issue-17989/shared.js | export default () => import("./util")
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/entry-a.js | test/configCases/chunk-graph/issue-9634/entry-a.js | import leaf from "./leaf";
it("should include the leaf module", () => {
expect(leaf).toBe("ok");
});
it("should load the leaf module from a", () => {
return import(/* webpackChunkName: "shared" */ "./shared").then(shared => {
return shared.default.then(module => {
expect(module.default).toBe("ok");
});
});
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/test.config.js | test/configCases/chunk-graph/issue-9634/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["a.js", "b.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/leaf.js | test/configCases/chunk-graph/issue-9634/leaf.js | export default "ok";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/entry-b.js | test/configCases/chunk-graph/issue-9634/entry-b.js | it("should load the leaf module from b", () => {
return import(/* webpackChunkName: "async-b2" */ "./async-b2").then(asy => {
return asy.default.then(asy => {
return asy.default.then(shared => {
return shared.default.then(module => {
expect(module.default).toBe("ok");
});
});
});
});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/async-b2.js | test/configCases/chunk-graph/issue-9634/async-b2.js | export default import(/* webpackChunkName: "async-b" */ "./async-b");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/webpack.config.js | test/configCases/chunk-graph/issue-9634/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
b: "./entry-b",
a: "./entry-a"
},
output: {
filename: "[name].js"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/async-b.js | test/configCases/chunk-graph/issue-9634/async-b.js | export default import(/* webpackChunkName: "shared" */ "./shared");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/shared.js | test/configCases/chunk-graph/issue-9634/shared.js | export default import(/* webpackChunkName: "module" */ "./module");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/issue-9634/module.js | test/configCases/chunk-graph/issue-9634/module.js | import leaf from "./leaf";
export default leaf;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/module-c.js | test/configCases/chunk-graph/rewalk-chunk/module-c.js | export default 'module-c'
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/index.js | test/configCases/chunk-graph/rewalk-chunk/index.js | it('should load module c', async () => {
const m1 = await (await import('./module-b')).default
const m2 = await import(/*webpackChunkName: 'module'*/ './module-a')
expect(m1.default).toBe('module-c')
expect(m2.default).toBe('module-a')
})
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/module-b.js | test/configCases/chunk-graph/rewalk-chunk/module-b.js | export default import(/*webpackChunkName: 'module'*/ './module-c')
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/test.config.js | test/configCases/chunk-graph/rewalk-chunk/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["main.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/webpack.config.js | test/configCases/chunk-graph/rewalk-chunk/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
main: "./index.js"
},
output: {
filename: "[name].js"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/module-a.js | test/configCases/chunk-graph/rewalk-chunk/module-a.js | export default 'module-a'
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunk-graph/rewalk-chunk/shared.js | test/configCases/chunk-graph/rewalk-chunk/shared.js | export default import(/* webpackChunkName: "module" */ "./module-a");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264/index.js | test/configCases/api-plugin/issues-20264/index.js | module.exports = "index";
it("should get module id from __webpack_module__", () => {
expect(__webpack_module__.id).toBeDefined();
const module = "layout";
expect(module).toBe("layout");
expect(__webpack_module__.id).toBeDefined();
expect(typeof __webpack_module__).toBe("object");
}); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264/webpack.config.js | test/configCases/api-plugin/issues-20264/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20139/index.js | test/configCases/api-plugin/issues-20139/index.js | import * as foo from "./foo";
import { bar } from "./bar";
it("should load module with nested __webpack_require__", () => {
expect(foo).toBeDefined();
expect(bar).toBe("bar");
});
it("should provide __webpack_global__ when module uses __webpack_require__", () => {
expect(__webpack_require__.myCustomProperty).to... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20139/bar.js | test/configCases/api-plugin/issues-20139/bar.js | export const bar = "bar";
__webpack_global__.bar = "bar"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20139/foo.js | test/configCases/api-plugin/issues-20139/foo.js | __webpack_global__.myCustomProperty = "myCustomProperty";
"use strict";
var __webpack_require__ = {
test(__webpack_global__) {
__webpack_global__.test = 1;
}
};
(() => {
__webpack_require__.d = (exports1, definition) => {
for (var key in definition)
if (
__webpack_require__.o(definition, ke... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20139/webpack.config.js | test/configCases/api-plugin/issues-20139/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{},
{
optimization: {
concatenateModules: true
}
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264-top-level/index.js | test/configCases/api-plugin/issues-20264-top-level/index.js | import moduleFn from "./fn";
import moduleClass from "./class";
const module = "layout";
if (module === __webpack_module__) {
throw new Error("module is __webpack_module__, this should not happen");
}
it("should get module id from __webpack_module__", () => {
expect(__webpack_module__.id).toBeDefined();
const m... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264-top-level/webpack.config.js | test/configCases/api-plugin/issues-20264-top-level/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264-top-level/class.js | test/configCases/api-plugin/issues-20264-top-level/class.js | class module {
}
module.id = __webpack_module__.id;
export default module; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/api-plugin/issues-20264-top-level/fn.js | test/configCases/api-plugin/issues-20264-top-level/fn.js | function module() {
return __webpack_module__.id;
}
export default module; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/replacement-b/index.js | test/configCases/context-modules/replacement-b/index.js | it("should replace a context with a new regExp", function() {
function rqInContext(x) {
return require(x);
}
expect(rqInContext("./only-this")).toBe("ok");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/replacement-b/error.js | test/configCases/context-modules/replacement-b/error.js | This
should
result
in
an
error
}]) | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/replacement-b/webpack.config.js | test/configCases/context-modules/replacement-b/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [new webpack.ContextReplacementPlugin(/replacement.b$/, /^\.\/only/)]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/replacement-b/only-this.js | test/configCases/context-modules/replacement-b/only-this.js | module.exports = "ok"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/exclusion/index.js | test/configCases/context-modules/exclusion/index.js | function requireInContext(someVariable) {
return require(`./some-dir/${someVariable}`);
}
it("should not exclude paths not matching the exclusion pattern", function() {
expect(requireInContext("file")).toBe("thats good");
expect(requireInContext("check-here/file")).toBe("thats good");
expect(requireInContext("chec... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/exclusion/webpack.config.js | test/configCases/context-modules/exclusion/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [new webpack.ContextExclusionPlugin(/dont/)]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/exclusion/some-dir/dont.js | test/configCases/context-modules/exclusion/some-dir/dont.js | module.exports = "thats bad";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/exclusion/some-dir/file.js | test/configCases/context-modules/exclusion/some-dir/file.js | module.exports = "thats good";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/context-modules/exclusion/some-dir/dont-check-here/file.js | test/configCases/context-modules/exclusion/some-dir/dont-check-here/file.js | module.exports = "thats bad";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.