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/side-effects/side-effects-override/node_modules/pmodule/index.js
test/configCases/side-effects/side-effects-override/node_modules/pmodule/index.js
export * from "./a"; export { x, y, z } from "./b"; import { track } from "./tracker"; track("index.js"); export default "def";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/pmodule/b.js
test/configCases/side-effects/side-effects-override/node_modules/pmodule/b.js
var x = "x"; var y = "y"; export { x, y }; export { z } from "./c"; import { track } from "./tracker"; track("b.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/pmodule/tracker.js
test/configCases/side-effects/side-effects-override/node_modules/pmodule/tracker.js
export function track(file) { log.push(file); log.sort(); } export var log = []; export function reset() { log.length = 0; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/pmodule/c.js
test/configCases/side-effects/side-effects-override/node_modules/pmodule/c.js
var z = "z"; export { z }; import { track } from "./tracker"; track("c.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/pmodule/a.js
test/configCases/side-effects/side-effects-override/node_modules/pmodule/a.js
var a = "a"; var b = "b"; var c = "c"; export { a, b, c }; import { track } from "./tracker"; track("a.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/nmodule/index.js
test/configCases/side-effects/side-effects-override/node_modules/nmodule/index.js
export * from "./a"; export { x, y, z } from "./b"; import { track } from "./tracker"; track("index.js"); export default "def";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/nmodule/b.js
test/configCases/side-effects/side-effects-override/node_modules/nmodule/b.js
var x = "x"; var y = "y"; export { x, y }; export { z } from "./c"; import { track } from "./tracker"; track("b.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/nmodule/tracker.js
test/configCases/side-effects/side-effects-override/node_modules/nmodule/tracker.js
export function track(file) { log.push(file); log.sort(); } export var log = []; export function reset() { log.length = 0; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/nmodule/c.js
test/configCases/side-effects/side-effects-override/node_modules/nmodule/c.js
var z = "z"; export { z }; import { track } from "./tracker"; track("c.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/side-effects/side-effects-override/node_modules/nmodule/a.js
test/configCases/side-effects/side-effects-override/node_modules/nmodule/a.js
var a = "a"; var b = "b"; var c = "c"; export { a, b, c }; import { track } from "./tracker"; track("a.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/module-filename-template/index.js
test/configCases/filename-template/module-filename-template/index.js
it("should include test.js in SourceMap", function() { var fs = require("fs"); var source = fs.readFileSync(__filename + ".map", "utf-8"); var map = JSON.parse(source); expect(map.sources).toContain("dummy:///./test.js"); }); if (Math.random() < 0) require("./test.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/module-filename-template/test.js
test/configCases/filename-template/module-filename-template/test.js
// empty
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/module-filename-template/webpack.config.js
test/configCases/filename-template/module-filename-template/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", output: { devtoolModuleFilenameTemplate(info) { return `dummy:///${info.resourcePath}`; } }, node: { __dirname: false, __filename: false }, devtool: "cheap-source-map" };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/split-chunks-filename/index.js
test/configCases/filename-template/split-chunks-filename/index.js
it("should create a vendor file", function() { var fs = require("fs"); var path = require("path"); if(!fs.existsSync(path.join(__dirname, "vendor.js"))) throw new Error("vendor.js file was not created"); }); it("should be able to load the vendor module", function() { require("test"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/split-chunks-filename/webpack.config.js
test/configCases/filename-template/split-chunks-filename/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", node: { __dirname: false, __filename: false }, output: { libraryTarget: "commonjs2" }, optimization: { splitChunks: { cacheGroups: { vendor: { test: /node_modules/, chunks: "initial"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/split-chunks-filename/node_modules/test.js
test/configCases/filename-template/split-chunks-filename/node_modules/test.js
// empty
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/filename-function/chunk1.js
test/configCases/filename-template/filename-function/chunk1.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/filename-template/filename-function/b.js
test/configCases/filename-template/filename-function/b.js
it("should be able to load a chunk", async () => { await expect( import(/* webpackChunkName: "2" */ "./chunk2") ).resolves.toMatchObject({ default: 2 }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/filename-function/test.config.js
test/configCases/filename-template/filename-function/test.config.js
"use strict"; module.exports = { findBundle() { return ["11.js", "22.js", "aa.js", "bbb.js"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/filename-function/chunk2.js
test/configCases/filename-template/filename-function/chunk2.js
export default 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/filename-function/webpack.config.js
test/configCases/filename-template/filename-function/webpack.config.js
"use strict"; /** @typedef {import("../../../../").Chunk & { name: string }} Chunk */ /** @typedef {import("../../../../").PathData & { chunk: Chunk }} PathData */ /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", entry: { a: "./a", b: { import: "./b", /** * @...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/filename-function/a.js
test/configCases/filename-template/filename-function/a.js
it("should be able to load a chunk", async () => { await expect( import(/* webpackChunkName: "1" */ "./chunk1") ).resolves.toMatchObject({ default: 1 }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/script-src-filename/index.js
test/configCases/filename-template/script-src-filename/index.js
it("should allow to access __webpack_get_script_filename__ ", done => { const oldFn = __webpack_get_script_filename__; __webpack_get_script_filename__ = chunk => { const filename = oldFn(chunk); return filename + ".changed"; }; import("./test.js").then( () => { done.fail("Loading chunk should fail"); }, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/script-src-filename/test.js
test/configCases/filename-template/script-src-filename/test.js
// empty
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/filename-template/script-src-filename/webpack.config.js
test/configCases/filename-template/script-src-filename/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development" };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/string/test.config.js
test/configCases/output/string/test.config.js
"use strict"; module.exports = { findBundle() { return ["./a.js"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/string/webpack.config.js
test/configCases/output/string/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { entry() { return { a: "./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/output/string/a.js
test/configCases/output/string/a.js
it("should output correctly with a string for output.filename", (done) => { done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/charset/chunk1.js
test/configCases/output/charset/chunk1.js
export default function () {}
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/charset/index.js
test/configCases/output/charset/index.js
__webpack_public_path__ = "https://test.cases/path/"; const doJsImport = () => import(/* webpackChunkName: "chunk1" */ "./chunk1.js"); const doCssImport = () => import( /* webpackChunkName: "chunk1" */ "./chunk1.css" ); it("should not add charset attribute", async () => { const promise = doJsImport(); expect(docume...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/charset/test.config.js
test/configCases/output/charset/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "chunk1.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/charset/webpack.config.js
test/configCases/output/charset/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { target: "web", output: { chunkFilename: "[name].js", charset: false }, performance: { hints: false }, experiments: { css: true }, optimization: { chunkIds: "named", minimize: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/test.config.js
test/configCases/output/inner-dirs-entries/test.config.js
"use strict"; module.exports = { findBundle() { return ["./a.js", "./inner-dir/b.js", "./inner-dir/deep/deep/c.js"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/webpack.config.js
test/configCases/output/inner-dirs-entries/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", entry: { a: "./a?1", "inner-dir/b": "./inner-dir/b", "inner-dir/deep/deep/c": "./a?2" }, target: "node", output: { libraryTarget: "commonjs2", pathinfo: true, filename: "[name].js", chunkFilename: "[na...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/a.js
test/configCases/output/inner-dirs-entries/a.js
import dummy from "dummy_module"; it("should load", () => { expect(dummy()).toBe("this is just a dummy function"); return import("./inner-dir/b").then(importedModule => { expect(importedModule.dummy()).toBe("this is just a dummy function"); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/node_modules/dummy_module/index.js
test/configCases/output/inner-dirs-entries/node_modules/dummy_module/index.js
export default function someDummyFunction() { return "this is just a dummy function"; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/inner-dir/some-module.js
test/configCases/output/inner-dirs-entries/inner-dir/some-module.js
import dummy from "dummy_module"; export { dummy };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/inner-dirs-entries/inner-dir/b.js
test/configCases/output/inner-dirs-entries/inner-dir/b.js
import dummy from "dummy_module"; it("should load", () => { expect(dummy()).toBe("this is just a dummy function"); return import("./some-module").then(importedModule => { expect(importedModule.dummy()).toBe("this is just a dummy function"); }); }); export { dummy };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/hash-function/index.js
test/configCases/output/hash-function/index.js
import mod from "./module.js"; it("should work", () => { expect(mod(1, 2)).toBe(3); expect(__STATS__.hash).toHaveLength(25); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/hash-function/webpack.config.js
test/configCases/output/hash-function/webpack.config.js
"use strict"; const { createHash } = require("crypto"); /** @typedef {import("crypto").Encoding} Encoding */ /** @typedef {import("crypto").BinaryToTextEncoding} BinaryToTextEncoding */ class SHA256Hash { constructor() { this._hash = createHash("sha256"); } /** * Update hash {@link https://nodejs.org/api/cry...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/hash-function/module.js
test/configCases/output/hash-function/module.js
export default function sum(a, b) { return a + b; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/import-meta-name/index.js
test/configCases/output/import-meta-name/index.js
import { url } from "./a"; it("should evaluate import.meta to pseudoImport.meta", () => { expect(url).toBe("http://test.co/path/index.js"); }); it("should evaluate import.meta in runtime", () => { expect(url).toBe(import.meta.url); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/import-meta-name/test.config.js
test/configCases/output/import-meta-name/test.config.js
"use strict"; module.exports = { moduleScope(scope) { scope.pseudoImport = { meta: { url: "http://test.co/path/index.js" } }; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/import-meta-name/webpack.config.js
test/configCases/output/import-meta-name/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { importMetaName: "pseudoImport.meta" }, module: { parser: { javascript: { importMeta: false } } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/import-meta-name/a.js
test/configCases/output/import-meta-name/a.js
export const url = import.meta.url;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/chunk-format-with-runtimeChunk/index.js
test/configCases/output/chunk-format-with-runtimeChunk/index.js
it("should compile and run", () => { 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/output/chunk-format-with-runtimeChunk/test.config.js
test/configCases/output/chunk-format-with-runtimeChunk/test.config.js
"use strict"; module.exports = { findBundle() { return ["runtime.mjs", "main.mjs"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js
test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js
"use strict"; module.exports = { mode: "production", entry: { main: "./index.js" }, optimization: { runtimeChunk: "single" }, output: { filename: "[name].mjs", module: true, chunkFormat: "module" }, experiments: { outputModule: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-scriptType-module/index.js
test/configCases/output/publicPath-scriptType-module/index.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("http://test.co/path/asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-scriptType-module/test.config.js
test/configCases/output/publicPath-scriptType-module/test.config.js
"use strict"; module.exports = { findBundle() { return ["./index.mjs"]; }, moduleScope(scope) { scope.pseudoImport = { meta: { url: "http://test.co/path/index.js" } }; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-scriptType-module/webpack.config.js
test/configCases/output/publicPath-scriptType-module/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", target: "electron-renderer", output: { assetModuleFilename: "[name][ext]", importMetaName: "pseudoImport.meta", scriptType: "module", filename: "index.mjs" }, module: { rules: [ { test: /\.jpg$/, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-node/index.js
test/configCases/output/publicPath-node/index.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-node/webpack.config.js
test/configCases/output/publicPath-node/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", target: "node", output: { assetModuleFilename: "[name][ext]" }, 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/output/function/b.js
test/configCases/output/function/b.js
it("should output correctly with a function for output.filename", (done) => { done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/function/test.config.js
test/configCases/output/function/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/output/function/webpack.config.js
test/configCases/output/function/webpack.config.js
"use strict"; /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ module.exports = { entry() { return { a: "./a", b: "./b" }; }, output: { filename: (data) => /** @type {Chunk} */ (data.chunk).name === "a" ? `${/** @type {Chunk} */ (data.ch...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/function/a.js
test/configCases/output/function/a.js
it("should output correctly with a function for output.filename", (done) => { done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/worker-public-path/test.filter.js
test/configCases/output/worker-public-path/test.filter.js
"use strict"; const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/worker-public-path/index.js
test/configCases/output/worker-public-path/index.js
import { Worker } from "worker_threads"; it("should define public path", async () => { const worker = new Worker(new URL("./worker.js", import.meta.url), { type: "module" }); worker.postMessage("ok"); var fs = require("fs"), path = require("path"); var source = fs.readFileSync(path.join(__dirname, "main.js")...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/worker-public-path/test.config.js
test/configCases/output/worker-public-path/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/output/worker-public-path/worker.js
test/configCases/output/worker-public-path/worker.js
function upper(str) { return str.toUpperCase(); } onmessage = async event => { postMessage(`data: ${upper(event.data)}, thanks`); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/worker-public-path/webpack.config.js
test/configCases/output/worker-public-path/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", target: "node", node: { __dirname: false, __filename: false }, output: { filename: "[name].js", workerPublicPath: "/workerPublicPath2/" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-web/b.js
test/configCases/output/publicPath-web/b.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("https://test.cases/path/asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-web/test.config.js
test/configCases/output/publicPath-web/test.config.js
"use strict"; module.exports = { findBundle() { return ["./inner1/inner2/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/output/publicPath-web/d.js
test/configCases/output/publicPath-web/d.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("/other/asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-web/webpack.config.js
test/configCases/output/publicPath-web/webpack.config.js
"use strict"; /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", target: "web", entry() { return { a: "./a", b: "./b", c: { import: "./c", publicPath: "/other/" }, d: { import: "./d", publicPath:...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-web/c.js
test/configCases/output/publicPath-web/c.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("/other/inner1/inner2/../../asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/output/publicPath-web/a.js
test/configCases/output/publicPath-web/a.js
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("https://test.cases/path/inner1/inner2/../../asset.jpg"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/webpack.config.js
test/watchCases/scope-hoisting/caching-inner-source/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/watchCases/scope-hoisting/caching-inner-source/1/inner1.js
test/watchCases/scope-hoisting/caching-inner-source/1/inner1.js
export var x = "1";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/0/inner.js
test/watchCases/scope-hoisting/caching-inner-source/0/inner.js
export { x } from "./inner1";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/0/index.js
test/watchCases/scope-hoisting/caching-inner-source/0/index.js
it("should not crash when scope-hoisted modules change", function() { expect(require("./module").default).toBe(WATCH_STEP); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/0/inner1.js
test/watchCases/scope-hoisting/caching-inner-source/0/inner1.js
export { x } from "./inner2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/0/inner2.js
test/watchCases/scope-hoisting/caching-inner-source/0/inner2.js
export var x = "0";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/scope-hoisting/caching-inner-source/0/module.js
test/watchCases/scope-hoisting/caching-inner-source/0/module.js
import { x } from "./inner"; export default x;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/webpack.config.js
test/watchCases/cache/reexport-mangle/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", cache: { type: "memory" }, output: { pathinfo: true }, optimization: { minimize: false, concatenateModules: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/2/other-user.js
test/watchCases/cache/reexport-mangle/2/other-user.js
export default 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/1/other-user.js
test/watchCases/cache/reexport-mangle/1/other-user.js
if (Math.random() < 0) { import("./foo"); import("./foo?cjs"); import("./foo?reexport"); import("./foo?reexport-cjs"); } export default 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/module-cjs.js
test/watchCases/cache/reexport-mangle/0/module-cjs.js
var foo = require("./foo?cjs").default; exports.foo = foo; var bar = require("./bar?cjs").bar; exports.bar = bar; exports.baz = "baz"; console.log.bind(console);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/index.js
test/watchCases/cache/reexport-mangle/0/index.js
import { foo, bar } from "./module"; import value from "./other-user"; it("should invalidate when mangled name change", () => { expect(foo).toBe("foo"); expect(bar).toBe("bar"); expect(value).toBe(42); }); it("should invalidate when mangled name change (cjs)", () => { expect(require("./module-cjs").foo).toBe("foo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/module-reexport-cjs.js
test/watchCases/cache/reexport-mangle/0/module-reexport-cjs.js
exports.foo = require("./foo?reexport-cjs").default; exports.bar = require("./bar?reexport-cjs").bar; exports.baz = "baz"; console.log.bind(console);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/bar.js
test/watchCases/cache/reexport-mangle/0/bar.js
export const bar = "bar"; export const bar2 = "bar2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/foo.js
test/watchCases/cache/reexport-mangle/0/foo.js
export default "foo"; export const unused = "foo2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/other-user.js
test/watchCases/cache/reexport-mangle/0/other-user.js
if (Math.random() < 0) { import("./foo"); import("./foo?cjs"); import("./bar"); import("./bar?cjs"); import("./foo?reexport"); import("./foo?reexport-cjs"); import("./bar?reexport"); import("./bar?reexport-cjs"); } export default 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/module.js
test/watchCases/cache/reexport-mangle/0/module.js
const ident = x => x; import { default as fooImp } from "./foo"; export const foo = ident(fooImp); import { bar as barImp } from "./bar"; export const bar = ident(barImp); export const baz = "baz"; console.log.bind(console);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/reexport-mangle/0/module-reexport.js
test/watchCases/cache/reexport-mangle/0/module-reexport.js
export { default as foo } from "./foo?reexport"; export { bar } from "./bar?reexport"; export const baz = "baz"; console.log.bind(console);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/webpack.config.js
test/watchCases/cache/loader-import-module-progress/webpack.config.js
"use strict"; const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { cache: { type: "filesystem" }, module: { rules: [ { test: /\.generate-json\.js$/, use: "./loader", type: "json" } ] }, plugins: [ new webpack.ProgressPlugin(() =...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/1/unrelated.js
test/watchCases/cache/loader-import-module-progress/1/unrelated.js
export const value = 24;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/index.js
test/watchCases/cache/loader-import-module-progress/0/index.js
import a from "./a.generate-json.js"; import { value as unrelated } from "./unrelated"; it("should have to correct values and validate on change", () => { const step = +WATCH_STEP; expect(a.value).toBe(42); expect(a.a).toBe("a"); expect(a.nested.value).toBe(42); expect(a.nested.a).toBe("a"); expect(a.b).toBe("b"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/loader.js
test/watchCases/cache/loader-import-module-progress/0/loader.js
/** @type {import("../../../../../").PitchLoaderDefinitionFunction} */ exports.pitch = async function (remaining) { const result = await this.importModule( `${this.resourcePath}.webpack[javascript/auto]!=!${remaining}` ); return JSON.stringify(result, null, 2); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/a.generate-json.js
test/watchCases/cache/loader-import-module-progress/0/a.generate-json.js
export const value = 42; export * from "./imported.js"; export { default as nested } from "./b.generate-json.js"; export const random = Math.random();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/b.generate-json.js
test/watchCases/cache/loader-import-module-progress/0/b.generate-json.js
export const value = 42; export * from "./imported.js";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/imported.js
test/watchCases/cache/loader-import-module-progress/0/imported.js
export const a = "a"; export const b = "b";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module-progress/0/unrelated.js
test/watchCases/cache/loader-import-module-progress/0/unrelated.js
export const value = 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/webpack.config.js
test/watchCases/cache/loader-import-module/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { module: { rules: [ { test: /\.generate-json\.js$/, use: "./loader", type: "json" } ] } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/2/unrelated.js
test/watchCases/cache/loader-import-module/2/unrelated.js
export const value = 24;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/1/imported.js
test/watchCases/cache/loader-import-module/1/imported.js
export const a = "a"; export const c = "c";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/0/index.js
test/watchCases/cache/loader-import-module/0/index.js
import a from "./a.generate-json.js"; import { value as unrelated } from "./unrelated"; it("should have to correct values and validate on change", () => { const step = +WATCH_STEP; expect(a.value).toBe(42); expect(a.a).toBe("a"); expect(a.nested.value).toBe(step < 3 ? 42 : 24); expect(a.nested.a).toBe(step < 3 ? ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/0/loader.js
test/watchCases/cache/loader-import-module/0/loader.js
/** @type {import("../../../../../").PitchLoaderDefinitionFunction} */ exports.pitch = async function (remaining) { const result = await this.importModule( `${this.resourcePath}.webpack[javascript/auto]!=!${remaining}` ); return JSON.stringify(result, null, 2); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/watchCases/cache/loader-import-module/0/a.generate-json.js
test/watchCases/cache/loader-import-module/0/a.generate-json.js
export const value = 42; export * from "./imported.js"; export { default as nested } from "./b.generate-json.js"; export const random = Math.random();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false