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/hotCases/import-attributes/esm/webpack.config.js
test/hotCases/import-attributes/esm/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", devtool: false };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/status/accept/index.js
test/hotCases/status/accept/index.js
var value = require("./file"); it("should wait until promises returned by status handlers are fulfilled", (done) => { var handler = jest.fn(status => { var test = jest.fn(() => { expect(module.hot.status()).toBe(status == "dispose" ? "apply" : status); }); var promise = Promise.resolve().then(test); promi...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/status/accept/file.js
test/hotCases/status/accept/file.js
module.exports = 1; --- module.exports = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/status/check/update.js
test/hotCases/status/check/update.js
module.exports = function (done) { return function (err, stats) { if (err) return done(err); module.hot .check(false) .then(updatedModules => { if (!updatedModules) return done(new Error("No update available")); expect(updatedModules).toContain("./file.js"); done(); }) .catch(err => { d...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/status/check/index.js
test/hotCases/status/check/index.js
import { value } from "./file"; it("call module.check api with false should return updatedModules correctly", function (done) { expect(value).toBe(1); NEXT(require("./update")(done)); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/status/check/file.js
test/hotCases/status/check/file.js
export var value = 1; --- export var value = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/sharing/share-plugin/index.js
test/hotCases/sharing/share-plugin/index.js
import value, { getValue } from "./module"; it("should accept a shared dependency", async () => { expect(value).toBe("module"); await expect(getValue()).resolves.toHaveProperty("default", "module"); module.hot.accept("./module"); await new Promise((resolve, reject) => NEXT(require("../../update")(reject, true, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/sharing/share-plugin/common.js
test/hotCases/sharing/share-plugin/common.js
export default 'common-lib'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/sharing/share-plugin/webpack.config.js
test/hotCases/sharing/share-plugin/webpack.config.js
"use strict"; const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", devtool: false, plugins: [ new SharePlugin({ shared: { common: { eager: true, import: "./common?1", requiredVersion: "1.1.1" ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/sharing/share-plugin/module.js
test/hotCases/sharing/share-plugin/module.js
export default "module" export const getValue = () => Promise.resolve({ default: "module" }); --- export { default } from "common" export const getValue = () => import("common2");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-syntax-error/errors1.js
test/hotCases/hashing/full-hash-syntax-error/errors1.js
module.exports = [ [/Module parse failed/] ]
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-syntax-error/thing.js
test/hotCases/hashing/full-hash-syntax-error/thing.js
export default 1; --- export default <<<<<<; --- export default 1; --- export default 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-syntax-error/index.js
test/hotCases/hashing/full-hash-syntax-error/index.js
import "./module"; const getFile = name => __non_webpack_require__("fs").readFileSync( __non_webpack_require__("path").join(__dirname, name), "utf-8" ); it("should generate the main file and change full hash on update", done => { const hash1 = __webpack_hash__; expect(getFile("bundle.js")).toContain(hash1); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-syntax-error/webpack.config.js
test/hotCases/hashing/full-hash-syntax-error/webpack.config.js
"use strict"; module.exports = { node: { __dirname: false }, optimization: { emitOnErrors: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-syntax-error/module.js
test/hotCases/hashing/full-hash-syntax-error/module.js
import("./thing");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-main/thing.js
test/hotCases/hashing/full-hash-main/thing.js
export default 1; --- export default 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-main/index.js
test/hotCases/hashing/full-hash-main/index.js
import "./module"; const getFile = name => __non_webpack_require__("fs").readFileSync( __non_webpack_require__("path").join(__dirname, name), "utf-8" ); it("should generate the main file and change full hash on update", done => { const hash1 = __webpack_hash__; expect(getFile("bundle.js")).toContain(hash1); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-main/webpack.config.js
test/hotCases/hashing/full-hash-main/webpack.config.js
"use strict"; module.exports = { node: { __dirname: false } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/full-hash-main/module.js
test/hotCases/hashing/full-hash-main/module.js
import("./thing");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/exports-info-influence/index.js
test/hotCases/hashing/exports-info-influence/index.js
const moduleValue = require("./module"); const external = require("external"); import referencer from "./referencer"; it("should keep the module hash when usage changes", done => { expect(moduleValue).toBe("module"); expect(external).toBe("external"); expect(referencer).toBe(42); module.hot.accept("./referencer", ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/exports-info-influence/referencer.js
test/hotCases/hashing/exports-info-influence/referencer.js
export default 42; --- import { test as value1 } from "./module"; import { test as value2 } from "external"; export default `${value1} ${value2}`;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/exports-info-influence/webpack.config.js
test/hotCases/hashing/exports-info-influence/webpack.config.js
"use strict"; module.exports = { externals: { external: "var 'external'" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/hashing/exports-info-influence/module.js
test/hotCases/hashing/exports-info-influence/module.js
module.exports = "module";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/during-idle/index.js
test/hotCases/invalidate/during-idle/index.js
import { a, b, c } from "./module"; it("should allow to invalidate and reload a file", () => { const oldA = a.value; const oldB = b.value; const oldC = c.value; expect(module.hot.status()).toBe("idle"); a.invalidate(); expect(module.hot.status()).toBe("ready"); b.invalidate(); expect(module.hot.status()).toBe(...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/during-idle/b.js
test/hotCases/invalidate/during-idle/b.js
export function invalidate() { module.hot.invalidate(); } export const value = {}; module.hot.accept();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/during-idle/c.js
test/hotCases/invalidate/during-idle/c.js
export function invalidate() { module.hot.invalidate(); } export const value = module.hot.data ? module.hot.data.value : {}; module.hot.dispose(data => { data.value = value; }); module.hot.accept();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/during-idle/module.js
test/hotCases/invalidate/during-idle/module.js
import * as a from "./a"; import * as b from "./b"; import * as c from "./c"; export { a, b, c }; module.hot.accept(["./a", "./b", "./c"]);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/during-idle/a.js
test/hotCases/invalidate/during-idle/a.js
export function invalidate() { module.hot.invalidate(); } export const value = {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/conditional-accept/index.js
test/hotCases/invalidate/conditional-accept/index.js
import "./data.json"; import mod1 from "./module1"; import mod2 from "./module2"; import { value1, value2 } from "./store"; it("should invalidate a self-accepted module", function(done) { expect(mod1).toBe(1); expect(mod2).toBe(1); expect(value1).toBe(1); expect(value2).toBe(1); let step = 0; module.hot.accept("...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/conditional-accept/module1.js
test/hotCases/invalidate/conditional-accept/module1.js
import data from "./data.json"; import { setValue1 } from "./store"; setValue1(data.a); export default data.b; if (module.hot.data && module.hot.data.ok && module.hot.data.b !== data.b) { module.hot.invalidate(); } else { module.hot.dispose(d => { d.ok = true; d.b = data.b; }); module.hot.accept(); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/conditional-accept/store.js
test/hotCases/invalidate/conditional-accept/store.js
export let value1 = 0; export function setValue1(v) { value1 = v; } export let value2 = 0; export function setValue2(v) { value2 = v; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotCases/invalidate/conditional-accept/module2.js
test/hotCases/invalidate/conditional-accept/module2.js
import data from "./data.json"; import { setValue2 } from "./store"; setValue2(data.a); export default data.b; const b = data.b; module.hot.accept(["./data.json"], () => { if (data.b !== b) { module.hot.invalidate(); return; } setValue2(data.a); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/complex.js
test/fixtures/complex.js
var complex1 = require("./lib/complex1"); require.ensure(["./lib/complex1", "complexm/step2"], function(require) { require("./lib/complex1"); var a = function() {} require.ensure(["complexm/step1"], function(require) { require("./lib/complex1"); var s1 = require("complexm/step1"); var s2 = require("complexm/st...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/abc.js
test/fixtures/abc.js
exports.a = require("./a"); exports.b = require("./b"); exports.c = require("./c");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/main4.js
test/fixtures/main4.js
var six = 6; require("bundle!./items/item (" + six + ")");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/main3.js
test/fixtures/main3.js
var a = require("./a"); require.ensure([], function(require) { require("./c.js"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/main2.js
test/fixtures/main2.js
var a = require("./a"); with(x) { switch(a) { case 1: require("./b"); default: require.ensure(["m1/a"], function() { var a = require("m1/a"), b = require("m1/b"); }); } }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/b.js
test/fixtures/b.js
module.exports = function b() { return "This is b"; }; // Test CJS top-level return return;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/missing-file.js
test/fixtures/missing-file.js
module.exports = function b() { /* eslint-disable node/no-missing-require */ require("./nonexistentfile"); return "This is a missing file"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/main1.js
test/fixtures/main1.js
var a = require("./a"); if(x) { for(var i = 0; i < 100; i++) { while(true) require("./b"); do { i++; } while(require("m1/a")()); } }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/count-loader.js
test/fixtures/count-loader.js
let counter = 0; /** @type {import("../../../../").LoaderDefinition} */ module.exports = function () { return `module.exports = ${counter++};`; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/c.js
test/fixtures/c.js
module.exports = function b() { require("./a"); return "This is c"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/chunks.js
test/fixtures/chunks.js
require.ensure(["./a"], function(require) { require("./b"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/chunk-b.js
test/fixtures/chunk-b.js
module.exports = () => { return import(/* webpackChunkName: "chunkB" */ "./b"); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/empty-svg-loader.js
test/fixtures/empty-svg-loader.js
module.exports = () => "<svg></svg>";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/uses-asset.js
test/fixtures/uses-asset.js
import SVG from './file.svg';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/delay-loader.js
test/fixtures/delay-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { var cb = this.async(); setTimeout(function () { cb(null, source); }, 500); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/a.js
test/fixtures/a.js
module.exports = function a() { return "This is a"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/asmjs.js
test/fixtures/asmjs.js
module.exports = function a() { function b() { "use asm"; if (0 == 0) { return 1 == 1 ? 101 : 102; } else { return 0 == 1 ? 103 : 104; } } function c() { if (0 == 0) { return 1 == 1 ? 105 : 106; } else { return 0 == 1 ? 107 : 108; } } var d = (function() { "use asm"; return 1 == 1 ? 1...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/ignoreWarnings/index.js
test/fixtures/ignoreWarnings/index.js
module.exports = function ignoreWarnings() { return "This is ignoreWarnings"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/ignoreWarnings/loader.js
test/fixtures/ignoreWarnings/loader.js
module.exports = function wraningLoader(content) { this.emitWarning('__mocked__warning__'); return content; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/m1/b.js
test/fixtures/node_modules/m1/b.js
module.exports = function a() { return "This is m1/b"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/m1/a.js
test/fixtures/node_modules/m1/a.js
module.exports = function a() { return "This is m1/a"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/m2/b.js
test/fixtures/node_modules/m2/b.js
module.exports = "This is m2/b";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/m2-loader/b.js
test/fixtures/node_modules/m2-loader/b.js
module.exports = function() { "module.exports = 'This is m2-loader/b';"; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/complexm/step2.js
test/fixtures/node_modules/complexm/step2.js
module.exports = "Step2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/complexm/step1.js
test/fixtures/node_modules/complexm/step1.js
module.exports = require("m1/a") + require("m1");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/complexm/web_modules/m1/index.js
test/fixtures/node_modules/complexm/web_modules/m1/index.js
module.exports = " :) " + require("m2/b.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/node_modules/complexm/web_modules/m1/a.js
test/fixtures/node_modules/complexm/web_modules/m1/a.js
module.exports = "the correct a.js";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/no-errors-deprecate.js
test/fixtures/errors/no-errors-deprecate.js
require('./file');
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/module.parent.require.js
test/fixtures/errors/module.parent.require.js
module.parent.require('./file');
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/throw-error-loader.js
test/fixtures/errors/throw-error-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { throw new Error("this is a thrown error"); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/throw-error-plugin.js
test/fixtures/errors/throw-error-plugin.js
module.exports = { apply(compiler) { compiler.hooks.compilation.tap("Errors.test-unhandled-throws", compilation => { throw new Error('foo'); }); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/not-a-json.js
test/fixtures/errors/not-a-json.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/no-return-loader.js
test/fixtures/errors/no-return-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function () {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/entry-point.js
test/fixtures/errors/entry-point.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/case-sensitive.js
test/fixtures/errors/case-sensitive.js
require("./file"); require("./FILE");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/missingFile.js
test/fixtures/errors/missingFile.js
// on line 4 require("./missing"); // on line 12 char 10 require("./dir/missing2");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/emit-error-loader.js
test/fixtures/errors/emit-error-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { this.emitWarning(new Error("this is a warning")); this.emitError(new Error("this is an error")); return source; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/false-iife-umd.js
test/fixtures/errors/false-iife-umd.js
export const answer = 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/return-undefined-loader.js
test/fixtures/errors/return-undefined-loader.js
module.exports = () => {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/has-syntax-error.js
test/fixtures/errors/has-syntax-error.js
window.foo = { bar: true,; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/module-level-throw-error-loader.js
test/fixtures/errors/module-level-throw-error-loader.js
throw new Error("this is a thrown error from module level");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/require.extensions.js
test/fixtures/errors/require.extensions.js
require.extensions[".js"] = function() {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/file.js
test/fixtures/errors/file.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/add-comment-loader.js
test/fixtures/errors/add-comment-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { return source + "// some comment"; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/module-exports-object-loader.js
test/fixtures/errors/module-exports-object-loader.js
module.exports = {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/async-error-loader.js
test/fixtures/errors/async-error-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { const callback = this.async(); const error = new Error("this is a callback error"); callback(error, source); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/entry-point-error-loader-required.js
test/fixtures/errors/entry-point-error-loader-required.js
require("./emit-error-loader.js!./file");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/irregular-error-loader.js
test/fixtures/errors/irregular-error-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { const empty = null; const emptyError = new Error(); this.emitWarning(empty); this.emitWarning(emptyError); this.emitError(empty); this.emitError(emptyError); throw "a string error"; return source; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/require.main.require.js
test/fixtures/errors/require.main.require.js
require.main.require('./file');
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/identity-loader.js
test/fixtures/errors/identity-loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function (source) { return source; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/errors/module-exports-string-loader.js
test/fixtures/errors/module-exports-string-loader.js
module.exports = "";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/index.js
test/fixtures/buildDependencies/index.js
/* global VALUE */ require("dep#with#hash/#.js"); module.exports = { loader: require("./loader!"), config: VALUE, esmConfig: VALUE2, esmAsyncConfig: VALUE3, uncached: require("./module"), definedValue: require("./definedValue") };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/loader.js
test/fixtures/buildDependencies/loader.js
// eslint-disable-next-line n/no-missing-require const value = require("../../js/buildDepsInput/loader-dependency"); module.exports = () => { return `module.exports = ${value};`; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/esm-cjs-dep.js
test/fixtures/buildDependencies/esm-cjs-dep.js
module.exports = require("../../js/buildDepsInput/esm-dependency");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/definedValue.js
test/fixtures/buildDependencies/definedValue.js
module.exports = DEFINED_VALUE;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/run.js
test/fixtures/buildDependencies/run.js
const path = require("path"); const webpack = require("../../.."); // eslint-disable-next-line n/no-missing-require const value = require("../../js/buildDepsInput/config-dependency"); require("dep#with#hash/#.js"); process.exitCode = 1; const options = JSON.parse(process.argv[3]); const esm = +process.versions.modu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/module.js
test/fixtures/buildDependencies/module.js
module.exports = VALUE_UNCACHEABLE;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dep-without-package.json/sub-entry.js
test/fixtures/buildDependencies/node_modules/dep-without-package.json/sub-entry.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dep-without-package.json/main-entry.js
test/fixtures/buildDependencies/node_modules/dep-without-package.json/main-entry.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dep#with#hash/#.js
test/fixtures/buildDependencies/node_modules/dep#with#hash/#.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/require-dependency-with-exports/index.js
test/fixtures/buildDependencies/node_modules/require-dependency-with-exports/index.js
require("dependency-with-exports");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dep-with-exports/sub-entry.js
test/fixtures/buildDependencies/node_modules/dep-with-exports/sub-entry.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dep-with-exports/main-entry.js
test/fixtures/buildDependencies/node_modules/dep-with-exports/main-entry.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/buildDependencies/node_modules/dependency-with-exports/main.js
test/fixtures/buildDependencies/node_modules/dependency-with-exports/main.js
require("dep-with-exports"); require("dep-with-exports/sub"); require("dep-without-package.json/main-entry"); require("dep-without-package.json/sub-entry");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/items/item (5).js
test/fixtures/items/item (5).js
module.exports = 5;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/items/item (0).js
test/fixtures/items/item (0).js
module.exports = 0;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/items/item (2).js
test/fixtures/items/item (2).js
module.exports = 2;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/fixtures/items/item (4).js
test/fixtures/items/item (4).js
module.exports = 4;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false