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/inner-graph/localReference/module.js | test/configCases/inner-graph/localReference/module.js | import { deepEqual, equal } from "./assert";
function fun1() {
deepEqual(1, 1);
}
function fun2() {
fun1();
}
function fun3() {
fun2();
}
function notExport() {
fun3();
}
notExport();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/inner-graph/defaultClass/webpack.config.js | test/configCases/inner-graph/defaultClass/webpack.config.js | "use strict";
const createTestCases = require("../_helpers/createTestCases");
module.exports = createTestCases({
nothing: {
usedExports: [],
expect: {
"lodash-es": []
}
},
all: {
usedExports: ["default"],
expect: {
"lodash-es": ["uniq"]
}
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/inner-graph/defaultClass/module.js | test/configCases/inner-graph/defaultClass/module.js | import { uniq } from "lodash-es";
export default class SomeClass {
message(...args) {
console.log(...args);
}
unusedUniq(array) {
uniq(array);
}
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/index.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/index.js | import "./loader!package";
it("should compile and run the test in config", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/loader.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/loader.js | const path = require("path");
/** @type {import("../../../../").LoaderDefinition} */
module.exports = function (source) {
this.addDependency(path.resolve(__dirname, "node_modules/package/extra.js"));
this.addDependency(path.resolve(__dirname, "extra.js"));
return source;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/extra.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/extra.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
snapshot: {
managedPaths: [path.resolve(__dirname, "node_modules")]
},
plugins: [
(compiler) => {
compiler.hooks.done.tap("Test", ({ compilation }) => {
const fileDeps = [...compilation.fil... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/index.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/extra.js | test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/extra.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/index.js | test/configCases/cache-dependencies/managed-items/index.js | import "./loader!package";
it("should compile and run the test in config", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/loader.js | test/configCases/cache-dependencies/managed-items/loader.js | const path = require("path");
/** @type {import("../../../../").LoaderDefinition} */
module.exports = function (source) {
this.addDependency(path.resolve(__dirname, "node_modules/package/extra.js"));
this.addDependency(path.resolve(__dirname, "extra.js"));
return source;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/extra.js | test/configCases/cache-dependencies/managed-items/extra.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/webpack.config.js | test/configCases/cache-dependencies/managed-items/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
snapshot: {
managedPaths: [path.resolve(__dirname, "node_modules")]
},
plugins: [
(compiler) => {
compiler.hooks.done.tap("Test", ({ compilation }) => {
const fileDeps = [...compilation.fil... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/node_modules/package/index.js | test/configCases/cache-dependencies/managed-items/node_modules/package/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-dependencies/managed-items/node_modules/package/extra.js | test/configCases/cache-dependencies/managed-items/node_modules/package/extra.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/dll-plugin/index.js | test/configCases/scope-hoisting/dll-plugin/index.js | import value from "dll/module";
it("should not scope hoist delegated modules", function() {
expect(value).toBe("ok");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/dll-plugin/webpack.config.js | test/configCases/scope-hoisting/dll-plugin/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new webpack.DllReferencePlugin({
name: "function(id) { return {default: 'ok'}; }",
scope: "dll",
content: {
"./module": {
id: 1,
buildMeta: {
exports... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/export-global/index.js | test/configCases/scope-hoisting/export-global/index.js | import { process as p } from "./module";
import { process as p2 } from "./module2";
it("should export globals correctly", () => {
expect(p).toBe(42);
expect(p2).toBe(process);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/export-global/webpack.config.js | test/configCases/scope-hoisting/export-global/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/scope-hoisting/export-global/module2.js | test/configCases/scope-hoisting/export-global/module2.js | const p = process;
export { p as process };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/export-global/module.js | test/configCases/scope-hoisting/export-global/module.js | const process = 42;
export { process };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/esModule/index.js | test/configCases/scope-hoisting/esModule/index.js | it("should have the __esModule flag", () => {
return import("./module").then(mod => {
expect(mod.__esModule).toBe(true);
expect(mod.default).toBe(84);
})
})
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/esModule/other.js | test/configCases/scope-hoisting/esModule/other.js | export default 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/esModule/webpack.config.js | test/configCases/scope-hoisting/esModule/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
devtool: false,
optimization: {
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/esModule/module.js | test/configCases/scope-hoisting/esModule/module.js | import other from "./other";
export default other * 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/class-naming/index.js | test/configCases/scope-hoisting/class-naming/index.js | import { Hello as t } from "./module2";
it("should rename classes correctly", () => {
new t();
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/class-naming/webpack.config.js | test/configCases/scope-hoisting/class-naming/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/scope-hoisting/class-naming/module2.js | test/configCases/scope-hoisting/class-naming/module2.js | import * as MODULE from "./module";
let Hello = class Hello extends MODULE.Hello {}
export { Hello }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/class-naming/module.js | test/configCases/scope-hoisting/class-naming/module.js | export class Hello {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/module3.js | test/configCases/scope-hoisting/issue-11897/module3.js | // comment
/d+/
export let value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/index.js | test/configCases/scope-hoisting/issue-11897/index.js | import obj from "./cjs";
// prettier-ignore
obj.flag = true
import { value } from "./module";
import { value as value2 } from "./iife";
import { value as value3 } from "./module?2";
import { value as value4 } from "./module2";
import { value as value5 } from "./module3";
import { value as value6 } from "./module4";
imp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/cjs.js | test/configCases/scope-hoisting/issue-11897/cjs.js | module.exports = { flag: true };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/iife.js | test/configCases/scope-hoisting/issue-11897/iife.js | (function () {})();
// prettier-ignore
export const value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/webpack.config.js | test/configCases/scope-hoisting/issue-11897/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/scope-hoisting/issue-11897/module2.js | test/configCases/scope-hoisting/issue-11897/module2.js | [].forEach(()=> {})
export let value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/module5.js | test/configCases/scope-hoisting/issue-11897/module5.js | /** comment */--x;
var x = 1;
export let value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/module4.js | test/configCases/scope-hoisting/issue-11897/module4.js | /** comment */ ++x;
var x = 1;
export let value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/issue-11897/module.js | test/configCases/scope-hoisting/issue-11897/module.js | obj.flag++;
import obj from "./cjs";
// prettier-ignore
export const value = true
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/strictThisContextOnImports/index.js | test/configCases/scope-hoisting/strictThisContextOnImports/index.js | import value, { identity } from "./module";
import * as m from "./module";
it("should parse and translate identifiers correctly", function() {
expect(identity(value)).toBe(1234);
expect(m.identity(value)).toBe(1234);
expect(m.identity(identity)).toBe(identity);
expect(m.identity(m.identity)).toBe(m.identity);
exp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js | test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
module: {
strictThisContextOnImports: true
},
plugins: [new webpack.optimize.ModuleConcatenationPlugin()]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/strictThisContextOnImports/module.js | test/configCases/scope-hoisting/strictThisContextOnImports/module.js | export function identity(a) { return a; }
export default 1234;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/named-modules/index.js | test/configCases/scope-hoisting/named-modules/index.js | import value from "./module";
it("should generate valid code", function() {
expect(value).toBe("ok");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/named-modules/webpack.config.js | test/configCases/scope-hoisting/named-modules/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
moduleIds: "named",
usedExports: true,
providedExports: true,
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/named-modules/module2.js | test/configCases/scope-hoisting/named-modules/module2.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/scope-hoisting/named-modules/module.js | test/configCases/scope-hoisting/named-modules/module.js | import module2 from "./module2";
export default module2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/harmony-pure-default/module3.js | test/configCases/scope-hoisting/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/scope-hoisting/harmony-pure-default/index.js | test/configCases/scope-hoisting/harmony-pure-default/index.js | import x1, { value as v1 } from "./module1";
import x2, { value as v2 } from "./module2";
import { value as v3 } from "./module3";
import x4, { 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);
ex... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/harmony-pure-default/module1.js | test/configCases/scope-hoisting/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/scope-hoisting/harmony-pure-default/webpack.config.js | test/configCases/scope-hoisting/harmony-pure-default/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "production",
optimization: {
minimize: true,
concatenateModules: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/harmony-pure-default/module2.js | test/configCases/scope-hoisting/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/scope-hoisting/harmony-pure-default/module4.js | test/configCases/scope-hoisting/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/scope-hoisting/create-dll-plugin/index.js | test/configCases/scope-hoisting/create-dll-plugin/index.js | import "./module";
export default 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/create-dll-plugin/test.config.js | test/configCases/scope-hoisting/create-dll-plugin/test.config.js | "use strict";
module.exports.noTests = true;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js | test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js | "use strict";
const path = require("path");
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: ["./index.js"],
plugins: [
new webpack.DllPlugin({
path: path.resolve(
__dirname,
"../../../js/config/scope-hoisting/create-dll-plugin/manif... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/scope-hoisting/create-dll-plugin/module.js | test/configCases/scope-hoisting/create-dll-plugin/module.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/loader-import-module/css/stylesheet.js | test/configCases/loader-import-module/css/stylesheet.js | import { red } from "./colors.js";
export default `body { background: url("${
new URL("./file.png" + __resourceQuery, import.meta.url).href
}"); color: ${red}; }`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loader-import-module/css/colors.js | test/configCases/loader-import-module/css/colors.js | export const red = "#f00";
export const green = "#0f0";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loader-import-module/css/index.js | test/configCases/loader-import-module/css/index.js | import stylesheet from "./stylesheet";
import stylesheet1 from "./stylesheet?1";
import otherStylesheet from "./other-stylesheet";
it("should be able to use build-time code", () => {
expect(stylesheet).toBe(
'body { background: url("/public/assets/file.png"); color: #f00; }'
);
expect(stylesheet1).toBe(
'body {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loader-import-module/css/loader.js | test/configCases/loader-import-module/css/loader.js | /** @type {import("../../../../").PitchLoaderDefinitionFunction} */
exports.pitch = async function (remaining) {
const result = await this.importModule(
this.resourcePath + ".webpack[javascript/auto]" + "!=!" + remaining,
this.getOptions()
);
return result.default || result;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loader-import-module/css/webpack.config.js | test/configCases/loader-import-module/css/webpack.config.js | "use strict";
/** @typedef {import("../../../../").Chunk} Chunk */
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
publicPath: "/public/"
},
module: {
parser: {
javascript: {
url: "relative"
}
},
rules: [
{
dependency: "url",
issuer: /stylesheet\.js$/,
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loader-import-module/css/other-stylesheet.js | test/configCases/loader-import-module/css/other-stylesheet.js | import { green } from "./colors.js";
import file from "./file.jpg";
export default `body { background: url("${file}"); color: ${green}; }`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js | test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js | "use strict";
module.exports = [/Please set unique "cache\.name" option/];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-4/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-4/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-4/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-4/webpack.config.js | "use strict";
// with explicit cache names
/** @typedef {import("../../../../").Configuration} Configuration */
/** @typedef {import("../../../../").Compiler} Compiler */
/** @typedef {import("../../../../").FileCacheOptions} FileCacheOptions */
/** @type {Configuration} */
module.exports = [
{
mode: "production"... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-2/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-2/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-2/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-2/webpack.config.js | "use strict";
// no cache names
/** @type {import("../../../../").Configuration} */
module.exports = [
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem"
}
},
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem"
}
},
{
name: "3rd compiler",
mode: "product... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-1/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-1/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-1/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-1/webpack.config.js | "use strict";
// default settings. should just work
/** @type {import("../../../../").Configuration} */
module.exports = [
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem",
name: "name2"
}
},
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem",
name: "na... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-6/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-6/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-6/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-6/webpack.config.js | "use strict";
// no cache names
/** @type {import("../../../../").Configuration} */
module.exports = [
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem"
}
},
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem",
name: "default"
}
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-5/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-5/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-5/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-5/webpack.config.js | "use strict";
// no cache names
/** @type {import("../../../../").Configuration} */
module.exports = [
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem",
name: "default"
}
},
{
mode: "production",
entry: "./index",
cache: {
type: "filesystem"
}
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js | test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js | "use strict";
module.exports = [
/Please set unique "cache\.name" option/,
/Compiler with name "3rd compiler" doesn't use unique cache name/
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-3/index.js | test/configCases/cache-filesystem/multicompiler-mode-cache-3/index.js | it("should build", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/cache-filesystem/multicompiler-mode-cache-3/webpack.config.js | test/configCases/cache-filesystem/multicompiler-mode-cache-3/webpack.config.js | "use strict";
/** @typedef {import("../../../../").Compiler} Compiler */
/** @typedef {import("../../../../").FileCacheOptions} FileCacheOptions */
// with explicit cache names
/** @type {import("../../../../").Configuration} */
module.exports = [
{
mode: "production",
entry: "./index",
cache: {
name: "fil... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/entry-options/test.filter.js | test/configCases/worker/entry-options/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/worker/entry-options/index.js | test/configCases/worker/entry-options/index.js | import { Worker } from "worker_threads";
import * as fs from "fs";
import * as path from "path";
it("should respect entry options", async () => {
const worker = new Worker(
/* webpackEntryOptions: { filename: "my-[name].js", name: "custom-worker", asyncChunks: false } */
new URL("./worker.js", import.meta.url)
)... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/entry-options/test.config.js | test/configCases/worker/entry-options/test.config.js | "use strict";
const fs = require("fs");
module.exports = {
afterExecute(options) {
const outputPath = options.output.path;
const files = fs.readdirSync(outputPath);
const expected = ["bundle0.js", "my-custom-worker.js"];
const intersection = expected.filter((value) => files.includes(value));
if (intersec... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/entry-options/worker.js | test/configCases/worker/entry-options/worker.js | import { parentPort } from "worker_threads";
parentPort.on("message", async data => {
const { upper } = await import("./module");
parentPort.postMessage(`data: ${upper(data)}, thanks`);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/entry-options/webpack.config.js | test/configCases/worker/entry-options/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
chunkFilename: "chunk-[name].js"
},
optimization: {
chunkIds: "named"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/entry-options/module.js | test/configCases/worker/entry-options/module.js | export function upper(str) {
return str.toUpperCase();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/worker-contenthash/test.filter.js | test/configCases/worker/worker-contenthash/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/worker/worker-contenthash/index.js | test/configCases/worker/worker-contenthash/index.js | import { Worker } from "worker_threads";
it("should allow to create a WebWorker", async () => {
const worker = new Worker(new URL("./worker.js", import.meta.url));
worker.postMessage("ok");
const result = await new Promise(resolve => {
worker.on("message", data => {
resolve(data);
});
});
expect(result).to... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/worker-contenthash/test.config.js | test/configCases/worker/worker-contenthash/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/worker/worker-contenthash/worker.js | test/configCases/worker/worker-contenthash/worker.js | import { parentPort } from "worker_threads";
parentPort.on("message", async data => {
const { upper } = await import("./module");
parentPort.postMessage(`data: ${upper(data)}, thanks`);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/worker-contenthash/webpack.config.js | test/configCases/worker/worker-contenthash/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
main: {
import: "./index.js",
filename: "[name].js"
}
},
output: {
filename: "[name]-[contenthash].js",
environment: {
nodePrefixForCoreModules: false
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/worker-contenthash/module.js | test/configCases/worker/worker-contenthash/module.js | export function upper(str) {
return str.toUpperCase();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/node-worker/test.filter.js | test/configCases/worker/node-worker/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/worker/node-worker/index.js | test/configCases/worker/node-worker/index.js | import { Worker } from "worker_threads";
it("should allow to create a WebWorker", async () => {
const worker = new Worker(
new URL("./worker.js" + __resourceQuery, import.meta.url)
);
worker.postMessage("ok");
const result = await new Promise(resolve => {
worker.on("message", data => {
resolve(data);
});
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/node-worker/test.config.js | test/configCases/worker/node-worker/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["a.js", "b.js", "c.js", "d.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/node-worker/worker.js | test/configCases/worker/node-worker/worker.js | import { parentPort } from "worker_threads";
parentPort.on("message", async data => {
const { upper } = await import("./module");
parentPort.postMessage(`data: ${upper(data)}, thanks`);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/node-worker/webpack.config.js | test/configCases/worker/node-worker/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
a: { import: "./index.js?a", filename: "[name].js" },
b: { import: "./index.js?b", filename: "[name].js" },
c: { import: "./index.js?c", filename: "[name].js" },
d: { import: "./index.js?d", filename: "[name].js" }
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/node-worker/module.js | test/configCases/worker/node-worker/module.js | export function upper(str) {
return str.toUpperCase();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/test.filter.js | test/configCases/worker/blob/test.filter.js | "use strict";
const supportsBlob = require("../../../helpers/supportsBlob");
const supportsWorker = require("../../../helpers/supportsWorker");
module.exports = () => supportsWorker() && supportsBlob();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/index.js | test/configCases/worker/blob/index.js | import { default as Worker } from './worker-wrapper';
it("should allow to load chunk in blob", async () => {
const worker = new Worker(new URL('./worker.js', import.meta.url)).getWorker();
worker.postMessage("ok");
const result = await new Promise(resolve => {
worker.worker.on("message", data => {
resolve(data... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/worker.js | test/configCases/worker/blob/worker.js | onmessage = async event => {
const { sum } = await import("./module");
const protocol = self.location.protocol;
parentPort.postMessage(`data: ${sum(1, 2)}, protocol: ${protocol}, thanks`);
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/webpack.config.js | test/configCases/worker/blob/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/worker-wrapper.js | test/configCases/worker/blob/worker-wrapper.js | export default class MyWorker {
_worker;
constructor(url) {
const objectURL = URL.createObjectURL(
new Blob([`importScripts(${JSON.stringify(url.toString())});`], {
type: 'application/javascript'
})
);
this._worker = new Worker(objectURL, { originalURL: url });
URL.revokeObjectURL(objectURL);
}
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/worker/blob/module.js | test/configCases/worker/blob/module.js | export 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/worker/self-import/test.filter.js | test/configCases/worker/self-import/test.filter.js | "use strict";
const supportsWorker = require("../../../helpers/supportsWorker");
module.exports = () => supportsWorker();
| 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.