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/resolve/unsafe-cache-proxy/webpack.config.js
test/configCases/resolve/unsafe-cache-proxy/webpack.config.js
"use strict"; const path = require("path"); let getCounter = 0; let setConter = 0; const unsafeCache = new Proxy( {}, { get(target, key, receiver) { getCounter += 1; return Reflect.get(target, key, receiver); }, set(target, key, value, receiver) { setConter += 1; return Reflect.set(target, key,...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/unsafe-cache-proxy/a/1.js
test/configCases/resolve/unsafe-cache-proxy/a/1.js
module.exports = 1;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/unsafe-cache-proxy/b/2.js
test/configCases/resolve/unsafe-cache-proxy/b/2.js
module.exports = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/function-plugins/index.js
test/configCases/resolve/function-plugins/index.js
it("should compile", async () => { expect(1).toBe(1); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/function-plugins/foo.js
test/configCases/resolve/function-plugins/foo.js
export default 1;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/function-plugins/webpack.config.js
test/configCases/resolve/function-plugins/webpack.config.js
"use strict"; let pluginExecutionCounter = 0; /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ { apply(compiler) { compiler.hooks.done.tap("TestPlugin", () => { expect(pluginExecutionCounter).toBeGreaterThan(0); }); } } ], resolve: { plugins: [ { app...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/multi-alias/index.js
test/configCases/resolve/multi-alias/index.js
it("should resolve both alternatives", () => { const one = require("_/1"); const two = require("_/2"); expect(one).toBe(1); expect(two).toBe(2); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/multi-alias/webpack.config.js
test/configCases/resolve/multi-alias/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration} */ module.exports = { resolve: { alias: { _: [path.resolve(__dirname, "a"), path.resolve(__dirname, "b")] } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/multi-alias/a/1.js
test/configCases/resolve/multi-alias/a/1.js
module.exports = 1;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/multi-alias/b/2.js
test/configCases/resolve/multi-alias/b/2.js
module.exports = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/context-resolve-with-ignore/index.js
test/configCases/resolve/context-resolve-with-ignore/index.js
const a = String.fromCharCode("a".charCodeAt(0)); const b = String.fromCharCode("b".charCodeAt(0)); it("should compile correctly", async () => { expect((await /* webpackMode: "lazy" */ import(`foo/${a}`)).default).toEqual({}); expect((await /* webpackMode: "lazy" */ import(`foo/${b}`)).default).toBe("b"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/context-resolve-with-ignore/webpack.config.js
test/configCases/resolve/context-resolve-with-ignore/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration} */ module.exports = { resolve: { modules: [path.resolve(__dirname, "a"), path.resolve(__dirname, "b")], alias: { [path.resolve(__dirname, "a", "foo")]: false } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/context-resolve-with-ignore/a/foo/a.js
test/configCases/resolve/context-resolve-with-ignore/a/foo/a.js
export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/context-resolve-with-ignore/b/foo/b.js
test/configCases/resolve/context-resolve-with-ignore/b/foo/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/code-generation/use-strict/index.js
test/configCases/code-generation/use-strict/index.js
"use strict"; it("should include only one use strict per module", function() { require("./harmony-with-strict"); require("./harmony-without-strict"); require("./harmony-with-strict2"); var fs = require("fs"); var source = fs.readFileSync(__filename, "utf-8"); var regExp = /\"use strict\";?\s*(.*)/g; var match ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/harmony-without-strict.js
test/configCases/code-generation/use-strict/harmony-without-strict.js
export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/harmony-without-strict2.js
test/configCases/code-generation/use-strict/harmony-without-strict2.js
export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/webpack.config.js
test/configCases/code-generation/use-strict/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, optimization: { concatenateModules: false, minimize: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/harmony-with-strict3.js
test/configCases/code-generation/use-strict/harmony-with-strict3.js
"use strict"; export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/harmony-with-strict2.js
test/configCases/code-generation/use-strict/harmony-with-strict2.js
"use strict"; import * as a from "./harmony-without-strict2"; export default a; import "./harmony-with-strict3"
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/use-strict/harmony-with-strict.js
test/configCases/code-generation/use-strict/harmony-with-strict.js
"use strict"; export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/harmony-module.js
test/configCases/code-generation/import-export-format/harmony-module.js
export const bar = 42; const def = -12; export default def;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/cjs-module.js
test/configCases/code-generation/import-export-format/cjs-module.js
const foo = 42; module.exports = { foo };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/index.js
test/configCases/code-generation/import-export-format/index.js
import { foo as cjsexport_harmonyimport } from "./cjs-module"; import theDefault, { bar as harmonyexport_harmonyimport } from "./harmony-module"; const { harmonyexport_cjsimport } = require("./harmony-module").bar; import { baz as harmonyexport_harmonyimport_2 } from "./harmony-module-2"; import * as mod3 from "./harm...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/webpack.config.js
test/configCases/code-generation/import-export-format/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, optimization: { concatenateModules: true, usedExports: true, providedExports: true, minimize: false, mangleExports: "size" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/harmony-module-2.js
test/configCases/code-generation/import-export-format/harmony-module-2.js
export const baz = 11; import { mod3 } from "./index"; function test(value) { return value; } test(mod3.apple);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format/harmony-module-3.js
test/configCases/code-generation/import-export-format/harmony-module-3.js
export var apple = 45;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/module3.js
test/configCases/code-generation/re-export-namespace/module3.js
import * as m2 from './module2'; export { m2 as m_2 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/test.filter.js
test/configCases/code-generation/re-export-namespace/test.filter.js
"use strict"; const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/index.js
test/configCases/code-generation/re-export-namespace/index.js
import { obj1 } from './module1'; import * as m_1 from './module1'; import * as m_2 from './module2'; import * as m_3 from './module3'; import data from "./data"; const { expectSourceToContain } = require("../../../helpers/expectSource"); // It's important to preserve the same accessor syntax (quotes vs. dot notatat...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/module1.js
test/configCases/code-generation/re-export-namespace/module1.js
export const obj1 = {}; export default { obj2: {} };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/webpack.config.js
test/configCases/code-generation/re-export-namespace/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, optimization: { concatenateModules: false, usedExports: true, providedExports: true, minimize: false, mangleExports: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace/module2.js
test/configCases/code-generation/re-export-namespace/module2.js
import * as m1 from './module1'; export { m1 as m_1 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/require-context-id/warnings.js
test/configCases/code-generation/require-context-id/warnings.js
"use strict"; module.exports = [[/hashed/, /deprecated/]];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/require-context-id/index.js
test/configCases/code-generation/require-context-id/index.js
it("should escape require.context id correctly", function() { var context = require.context("./folder"); expect(context("./a")).toBe("a"); expect(context.id).toBeTypeOf("string"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/require-context-id/webpack.config.js
test/configCases/code-generation/require-context-id/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { moduleIds: "hashed" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/require-context-id/folder/b.js
test/configCases/code-generation/require-context-id/folder/b.js
module.exports = "b";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/require-context-id/folder/a.js
test/configCases/code-generation/require-context-id/folder/a.js
module.exports = "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/module3.js
test/configCases/code-generation/re-export-namespace-concat/module3.js
import * as m2 from './module2'; export { m2 as m_2 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/test.filter.js
test/configCases/code-generation/re-export-namespace-concat/test.filter.js
"use strict"; const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/index.js
test/configCases/code-generation/re-export-namespace-concat/index.js
import { obj1 } from './module1'; import * as m_1 from './module1'; import * as m_2 from './module2'; import * as m_3 from './module3'; import data from "./data"; const { expectSourceToContain } = require("../../../helpers/expectSource"); // It's important to preserve the same accessor syntax (quotes vs. dot notatat...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/module1.js
test/configCases/code-generation/re-export-namespace-concat/module1.js
export const obj1 = {}; export default { obj2: {} };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/webpack.config.js
test/configCases/code-generation/re-export-namespace-concat/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, mode: "production", optimization: { mangleExports: "size" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/re-export-namespace-concat/module2.js
test/configCases/code-generation/re-export-namespace-concat/module2.js
import * as m1 from './module1'; export { m1 as m_1 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/module3.js
test/configCases/code-generation/harmony-pure-default/module3.js
let value = 42; const inc = () => { value++; }; export default /*#__PURE__*/(inc()); export { value };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/index.js
test/configCases/code-generation/harmony-pure-default/index.js
import { value as v1 } from "./module1"; import { value as v2 } from "./module2"; import { value as v3 } from "./module3"; import { value as v4 } from "./module4"; it("should not execute exports when annotated with pure comment", () => { expect(v1).toBe(42); expect(v2).toBe(42); expect(v3).toBe(42); expect(v4).toB...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/module1.js
test/configCases/code-generation/harmony-pure-default/module1.js
let value = 42; const inc = () => { value++; }; export default /*#__PURE__*/inc(); export { value };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/webpack.config.js
test/configCases/code-generation/harmony-pure-default/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", optimization: { minimize: true, concatenateModules: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/module2.js
test/configCases/code-generation/harmony-pure-default/module2.js
let value = 42; const inc = () => { value++; }; export default (/*#__PURE__*/inc()); export { value };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/harmony-pure-default/module4.js
test/configCases/code-generation/harmony-pure-default/module4.js
let value = 42; const inc = () => { value++; }; export // hello default // world /*#__PURE__*/ inc() ; export { value };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/harmony-module.js
test/configCases/code-generation/import-export-format-2/harmony-module.js
export const bar = 42; const def = -12; export default def;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/export-default-expression.js
test/configCases/code-generation/import-export-format-2/export-default-expression.js
const ___CSS_LOADER_EXPORT___ = {}; ___CSS_LOADER_EXPORT___.locals = {}; export default ___CSS_LOADER_EXPORT___;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/cjs-module.js
test/configCases/code-generation/import-export-format-2/cjs-module.js
const foo = 42; module.exports = { foo };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/index.js
test/configCases/code-generation/import-export-format-2/index.js
import { foo as cjsexport_harmonyimport } from "./cjs-module"; import theDefault, { bar as harmonyexport_harmonyimport } from "./harmony-module"; import theDefaultExpression from "./export-default-expression"; const { harmonyexport_cjsimport } = require("./harmony-module").bar; const harmonyexport_cjsimportdefault = re...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/webpack.config.js
test/configCases/code-generation/import-export-format-2/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { environment: { arrowFunction: true, bigIntLiteral: false, const: false, destructuring: false, forOf: false, dynamicImport: true, module: false } }, node: { __dirname: false, __filename: false ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/harmony-module-2.js
test/configCases/code-generation/import-export-format-2/harmony-module-2.js
export const baz = 11; import { mod3 } from "./index"; function test(value) { return value; } test(mod3.apple);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/code-generation/import-export-format-2/harmony-module-3.js
test/configCases/code-generation/import-export-format-2/harmony-module-3.js
export var apple = 45;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/prefer-absolute/index.js
test/configCases/resolving/prefer-absolute/index.js
it("should be possible to import an absolute path", () => { require(__filename); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/prefer-absolute/webpack.config.js
test/configCases/resolving/prefer-absolute/webpack.config.js
"use strict"; /** @typedef {import("enhanced-resolve").Resolver} Resolver */ /** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */ /** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */ /** * @template T, R * @typedef {import("tapable").SyncBailHook<T, R>} SyncBailHook */ ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/prefer-root/index.js
test/configCases/resolving/prefer-root/index.js
it("should be possible to import an root path", () => { require("/index.js"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/prefer-root/webpack.config.js
test/configCases/resolving/prefer-root/webpack.config.js
"use strict"; /** @typedef {import("enhanced-resolve").Resolver} Resolver */ /** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */ /** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */ /** * @template T, R * @typedef {import("tapable").SyncBailHook<T, R>} SyncBailHook */ ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/extensions-order/index.js
test/configCases/resolving/extensions-order/index.js
it("should resolve respecting resolve.extensions order when enforceExtension: true", () => { expect(require("./a")).toBe("2"); expect(require("./b")).toBe("1"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/extensions-order/webpack.config.js
test/configCases/resolving/extensions-order/webpack.config.js
"use strict"; module.exports = { resolve: { extensions: [".js", "", ".json"] } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolving/extensions-order/a.js
test/configCases/resolving/extensions-order/a.js
module.exports = "2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/dependency.js
test/configCases/chunks-order/cjs/dependency.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/test.config.js
test/configCases/chunks-order/cjs/test.config.js
"use strict"; module.exports = { findBundle() { return [ "runtime~nested-shared.js", "nested-shared.js", "shared.js", "commons-dependency_js.js", "foo.js" ]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/foo.js
test/configCases/chunks-order/cjs/foo.js
import fs from "fs"; import "./style.css"; import "./dependency.js"; it("The dependOn chunk must be loaded before the common chunk.", () => { const source = fs.readFileSync(__filename, "utf-8"); expect(source).toMatchSnapshot(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/webpack.config.js
test/configCases/chunks-order/cjs/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration[]} */ module.exports = [ { target: "node", entry: { "nested-shared": { import: "./nested-shared.js" }, shared: { dependOn: "nested-shared", import: "./shared.js?foo=bar" }, foo: { dependOn: "shared", import: "./f...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/shared.js
test/configCases/chunks-order/cjs/shared.js
import "./shared.css"; function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/cjs/nested-shared.js
test/configCases/chunks-order/cjs/nested-shared.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/dependency.js
test/configCases/chunks-order/module/dependency.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/test.config.js
test/configCases/chunks-order/module/test.config.js
"use strict"; module.exports = { findBundle() { return [ "runtime~nested-shared.mjs", "nested-shared.mjs", "shared.mjs", "commons-dependency_js.mjs", "foo.mjs" ]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/foo.js
test/configCases/chunks-order/module/foo.js
import "./style.css"; import "./dependency.js"; it("The dependOn chunk must be loaded before the common chunk.", async () => { const fs = await eval(`import("fs")`) const source = fs.readFileSync(__filename, "utf-8"); expect(source).toMatchSnapshot(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/webpack.config.js
test/configCases/chunks-order/module/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration[]} */ module.exports = [ { target: "node", entry: { "nested-shared": { import: "./nested-shared.js" }, shared: { dependOn: "nested-shared", import: "./shared.js?foo=bar" }, foo: { dependOn: "shared", import: "./f...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/shared.js
test/configCases/chunks-order/module/shared.js
import "./shared.css"; function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/chunks-order/module/nested-shared.js
test/configCases/chunks-order/module/nested-shared.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/css-generator-options/index.js
test/configCases/contenthash/css-generator-options/index.js
it("should compile", async () => { await import("./style.module.css"); // The real test is in test.config.js afterExecute expect(true).toBe(true); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/css-generator-options/test.config.js
test/configCases/contenthash/css-generator-options/test.config.js
"use strict"; const findOutputFiles = require("../../../helpers/findOutputFiles"); const allCss = new Set(); const allBundles = new Set(); module.exports = { findBundle(i, options) { const bundle = findOutputFiles(options, new RegExp(`^bundle${i}`))[0]; const async = findOutputFiles(options, /\.js/, `css${i}`);...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/css-generator-options/webpack.config.js
test/configCases/contenthash/css-generator-options/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ const common = { target: "web", optimization: { realContentHash: false }, experiments: { css: true } }; /** @typedef {import("../../../../").GeneratorOptionsByModuleTypeKnown} GeneratorOptionsByModuleTypeKnown */ /** @type {import("../../../....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/index.js
test/configCases/contenthash/module-ids-size/index.js
import img from "./1.jpg"; import file from "./file.js"; it("should compile", () => { expect(typeof img).toBe("string"); expect(typeof file).toBe("function"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/test.config.js
test/configCases/contenthash/module-ids-size/test.config.js
"use strict"; const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); const allBundles = new Set(); module.exports = { findBundle(i, options) { const bundle = findOutputFiles(options, new RegExp(`^bundle${i}`))[0]; allBundles.add(/\.([^.]+)\./.exec(bundle)[1]); let ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/async.js
test/configCases/contenthash/module-ids-size/async.js
export default function test() { const a = 1; const b = 2; const c = 3; const d = 4; const f = 5; const e = 6; return a + b + c + d + f + e; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/webpack.config.js
test/configCases/contenthash/module-ids-size/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = [ { output: { filename: "bundle0.[contenthash].a.js", assetModuleFilename: "img/[name].a.[contenthash][ext]" }, optimization: { moduleIds: "size" }, module: { rules: [ { test: /\.jpg$/, type: "asset/...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/file-1.js
test/configCases/contenthash/module-ids-size/file-1.js
async function test() { const a = 1; const b = 2; const c = 3; const d = 4; const f = 5; const e = 6; await import("./async.js"); return a + b + c + d + f + e; } test(); export { test } export default test; test();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/file.js
test/configCases/contenthash/module-ids-size/file.js
import file from "./file-1.js"; import file2 from "./file-2.js"; async function test() { const a = 1; const b = 2; const c = 3; const d = 4; const f = 5; const e = 6; await import(/* webpackMode: "eager" */"./async.js"); await import(/* webpackMode: "eager" */"./file-3.js"); return a + b + c + d + f + e; } ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/file-3.js
test/configCases/contenthash/module-ids-size/file-3.js
function test() { return "test"; } test(); module.exports = "test";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/module-ids-size/file-2.js
test/configCases/contenthash/module-ids-size/file-2.js
import { test } from "./file-1.js"; export default function foobar() { return "test" + test(); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/salt/index.js
test/configCases/contenthash/salt/index.js
import img from "./img.jpg"; it("should compile", () => { expect(typeof img).toBe("string"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/salt/test.config.js
test/configCases/contenthash/salt/test.config.js
"use strict"; const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); const allBundles = new Set(); module.exports = { findBundle(i, options) { const bundle = findOutputFiles(options, new RegExp(`^bundle${i}`))[0]; allBundles.add(/\.([^.]+)\./.exec(bundle)[1]); const...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/salt/webpack.config.js
test/configCases/contenthash/salt/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration[]} */ module.exports = [ { output: { filename: "bundle0.[contenthash].js", assetModuleFilename: "[name].[contenthash][ext]", hashSalt: "1" }, module: { rules: [ { test: /\.jpg$/, type: "asset/resource" } ] } }, { ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/assets/index.js
test/configCases/contenthash/assets/index.js
import img from "./1.jpg"; it("should compile", () => { expect(typeof img).toBe("string"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/assets/test.config.js
test/configCases/contenthash/assets/test.config.js
"use strict"; const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); const allBundles = new Set(); module.exports = { findBundle(i, options) { const bundle = findOutputFiles(options, new RegExp(`^bundle${i}`))[0]; allBundles.add(/\.([^.]+)\./.exec(bundle)[1]); let a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/assets/webpack.config.js
test/configCases/contenthash/assets/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration[]} */ module.exports = [ { output: { filename: "bundle0.[contenthash].js", assetModuleFilename: "img/[name].[contenthash][ext]" }, module: { rules: [ { test: /\.jpg$/, type: "asset/resource" } ] } }, { output: { ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/include-chunk-id/index.js
test/configCases/contenthash/include-chunk-id/index.js
it("should compile and run the test", function () {}); if(Math.random() < -1) { import(/* webpackChunkName: "chunk" */ "./chunk"); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/include-chunk-id/chunk.js
test/configCases/contenthash/include-chunk-id/chunk.js
module.exports = "chunk";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/include-chunk-id/test.config.js
test/configCases/contenthash/include-chunk-id/test.config.js
"use strict"; const findOutputFiles = require("../../../helpers/findOutputFiles"); const allFilenameHashes = new Set(); const allChunkHashes = new Set(); module.exports = { findBundle(i, options) { const filename = findOutputFiles(options, new RegExp(`^bundle${i}`))[0]; const filenameHash = /\.([a-f0-9]+)\.js$/...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/contenthash/include-chunk-id/webpack.config.js
test/configCases/contenthash/include-chunk-id/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration[]} */ module.exports = [ { mode: "production", name: "normal-ids", output: { filename: "bundle0.[contenthash:6].js", chunkFilename: "chunk0.[contenthash:6].js" }, optimization: { chunkIds: "size", moduleIds: "named" } }, { mode:...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/ignore-rx/index.js
test/configCases/clean/ignore-rx/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/ignore-rx/webpack.config.js
test/configCases/clean/ignore-rx/webpack.config.js
"use strict"; const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); const readDir = require("../enabled/readdir"); /** @type {import("../../../../").Configuration} */ module.exports = { output: { clean: { keep: /[/\\]ignored[/\\]dir[/\\]/ } }, plugins: [ ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/ignore-fn/index.js
test/configCases/clean/ignore-fn/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false