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/library/1-use-library/node_modules/external-named.js
test/configCases/library/1-use-library/node_modules/external-named.js
module.exports['externalA'] = ["external-a"];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm-used-exports-false/system-external-esm.js
test/configCases/library/1-systemjs-external-esm-used-exports-false/system-external-esm.js
import MyClass, {a, b} from "library-esm"; it("should get exports from systemjs library (" + NAME + ")", function() { expect(new MyClass().getValue()).toBe("my-class") expect(a).toBe(10); expect(b).toBe(20); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm-used-exports-false/test.config.js
test/configCases/library/1-systemjs-external-esm-used-exports-false/test.config.js
"use strict"; const System = require("../../../helpers/fakeSystem"); module.exports = { beforeExecute: () => { System.init(); }, moduleScope(scope) { scope.System = System; scope.System.setRequire(scope.require); }, afterExecute() { delete global.webpackChunk; System.execute("(anonym)"); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm-used-exports-false/webpack.config.js
test/configCases/library/1-systemjs-external-esm-used-exports-false/webpack.config.js
"use strict"; const path = require("path"); const webpack = require("../../../../"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */ module.exports = (env, { testPath }) => [ { entry: "./system-external-esm.js", output: { library: { type: "system" } }, exte...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/invalid-name/index.js
test/configCases/library/invalid-name/index.js
it("should error", function () { throw new Error("should not be executed"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/invalid-name/webpack.config.js
test/configCases/library/invalid-name/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { library: ["123-hello world", "hello world"] } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/invalid-name/errors.js
test/configCases/library/invalid-name/errors.js
"use strict"; module.exports = [ [ /Library name base \(123-hello world\) must be a valid identifier/, /use a valid identifier \(e\. g\. _123_hello_world\)/ ] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/cjs-static/index.js
test/configCases/library/cjs-static/index.js
const fs = require("fs") export const foo1 = () => {} export const foo2 = () => {} const bar = "bar"; export default bar it("should success compile and work",()=>{ const output = fs.readFileSync(__filename).toString(); expect(output.match(/exports(\[|\.)/g).length).toBe(4) })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/cjs-static/webpack.config.js
test/configCases/library/cjs-static/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", output: { library: { type: "commonjs-static" } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/umd-array/index.js
test/configCases/library/umd-array/index.js
it("should run", function() { });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/umd-array/webpack.config.js
test/configCases/library/umd-array/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { libraryTarget: "umd", library: { root: ["test", "library"], amd: "test-library", commonjs: "test-library" } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-array-request/index.js
test/configCases/library/module-external-array-request/index.js
import { foo, bar } from "external"; it("should have the correct export for array-style external request (e.g. external: ['./external.mjs', 'inner'])", function () { expect(foo).toBe("foo"); expect(bar).toBe("bar"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-array-request/webpack.config.js
test/configCases/library/module-external-array-request/webpack.config.js
"use strict"; const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); /** @type {webpack.Configuration} */ module.exports = { mode: "production", entry: "./index.js", output: { module: true, library: { type: "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/library/b/index.js
test/configCases/library/b/index.js
it("should run", function() { }); it("should have exported", function(done) { setTimeout(function() { expect(exported.object).toBe(module.exports.object); expect(exported.second).toBe(module.exports.second); done(); }, 1); }); module.exports = { object: {ok: 1}, second: {ok: 2} }; var exported = {}; proc...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/b/webpack.config.js
test/configCases/library/b/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { libraryTarget: "global" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/array-window/index.js
test/configCases/library/array-window/index.js
it("should define property in 'window' object", function() { expect(window["a"]["b"]).toBeDefined(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/array-window/webpack.config.js
test/configCases/library/array-window/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", output: { library: ["a", "b"], libraryTarget: "window" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/assign-properties/index.js
test/configCases/library/assign-properties/index.js
it("should define global object with property", function() { expect(process.env["assign_properties_env"]).toEqual("1"); expect(Object.keys(process.env).length).toBeGreaterThan(1); }); module.exports = { assign_properties_env: "1" }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/assign-properties/webpack.config.js
test/configCases/library/assign-properties/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { library: ["process", "env"], libraryTarget: "assign-properties" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/other.module2.js
test/configCases/library/module-terminal-binding/other.module2.js
export { FluentProvider } from 'my-pkg';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/index.js
test/configCases/library/module-terminal-binding/index.js
import { FluentProvider } from './module.js'; export { FluentProvider, myFunction, } from './module.js'; export async function component() { const { value } = await import(/* webpackChunkName: "async-module" */ './async-module.js'); return value; } const qT = "qT"; it("should work", async function() { co...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/webpack.config.js
test/configCases/library/module-terminal-binding/webpack.config.js
"use strict"; module.exports = { mode: "production", target: "web", optimization: { minimize: false }, experiments: { outputModule: true }, output: { library: { type: "module" }, module: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/async-module.js
test/configCases/library/module-terminal-binding/async-module.js
import { FluentProvider } from './module.js'; function test(value) { return value; } test(FluentProvider); export const value = "value"; export { FluentProvider };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/module.js
test/configCases/library/module-terminal-binding/module.js
export { FluentProvider } from './other.module2.js'; export const myFunction = function () {};
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/node_modules/my-pkg/index.js
test/configCases/library/module-terminal-binding/node_modules/my-pkg/index.js
export { FluentProvider } from './components/FluentProvider/index.js';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-terminal-binding/node_modules/my-pkg/components/FluentProvider/index.js
test/configCases/library/module-terminal-binding/node_modules/my-pkg/components/FluentProvider/index.js
export const FluentProvider = function FluentProvider() { return "FluentProvider" }; FluentProvider.displayName = 'FluentProvider';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/async-library/0-create-library/test.config.js
test/configCases/async-library/0-create-library/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/async-library/0-create-library/webpack.config.js
test/configCases/async-library/0-create-library/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { entry: "./a.js", output: { filename: "lib.js", library: { type: "module" } }, target: "node14", optimization: { minimize: true }, experiments: { outputModule: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/async-library/0-create-library/a.js
test/configCases/async-library/0-create-library/a.js
export const a = await Promise.resolve(42);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/async-library/1-use-library/index.js
test/configCases/async-library/1-use-library/index.js
it("should get valid export from library", () => { return import("library").then(({ a }) => { expect(a).toBe(42); }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/async-library/1-use-library/webpack.config.js
test/configCases/async-library/1-use-library/webpack.config.js
"use strict"; const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../types").Configuration} */ module.exports = (env, { testPath }) => ({ target: "node14", output: { chunkLoading: "import" }, resolve: { alias: { library: path.resolve(testPath, "../0-create-library/...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/index.js
test/configCases/rebuild/finishModules/index.js
import { doThings, foo, valueFromA } from "./a"; it("should compile", function (done) { expect(doThings("ok")).toBe("ok"); // Should be replaced by the code in the config. expect(foo.foo).toBe("bar"); expect(valueFromA).toBe("A"); done(); }); it("should not reference the chunk", () => { expect(__STATS__.chunks...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/other-file.js
test/configCases/rebuild/finishModules/other-file.js
import foo from "./module"; export function doThings(stuff) { return import("./chunk"); } export const foo = { foo };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/loader.js
test/configCases/rebuild/finishModules/loader.js
/** @typedef {import("../../../../").Module} Module */ /** @type {import("../../../../").LoaderDefinition<{}, { shouldReplace: boolean }>} */ module.exports = function (source) { if (this.shouldReplace) { /** @type {NonNullable<Module["buildInfo"]>} */ ( /** @type {Module} */ (this._module).buildInfo )._i...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/chunk.js
test/configCases/rebuild/finishModules/chunk.js
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/webpack.config.js
test/configCases/rebuild/finishModules/webpack.config.js
"use strict"; const { join, resolve } = require("path"); const { NormalModule } = require("../../../../"); /** * @typedef {import("../../../../").Module} Module */ /** * @param {import("../../../../").Compiler} compiler the compiler */ const testPlugin = (compiler) => { compiler.hooks.compilation.tap("TestPlugi...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/module.js
test/configCases/rebuild/finishModules/module.js
export default "foo";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/finishModules/a.js
test/configCases/rebuild/finishModules/a.js
import { doThings, foo } from "./other-file"; export { doThings, foo }; export const valueFromA = "A";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/rebuildWithNewDependencies/index.js
test/configCases/rebuild/rebuildWithNewDependencies/index.js
import A from "./a"; it("should compile", function (done) { expect(A).toBe("other-file.js"); done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/rebuildWithNewDependencies/other-file.js
test/configCases/rebuild/rebuildWithNewDependencies/other-file.js
export default "other-file.js";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/rebuildWithNewDependencies/loader.js
test/configCases/rebuild/rebuildWithNewDependencies/loader.js
/** @typedef {import("../../../../").Module} Module */ /** @type {import("../../../../").LoaderDefinition<{}, { shouldReplace: boolean }>} */ module.exports = function (source) { if (this.shouldReplace) { /** @type {NonNullable<Module["buildInfo"]>} */ ( /** @type {Module} */ (this._module).buildInfo )._i...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js
test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js
"use strict"; const { join, resolve } = require("path"); const { NormalModule } = require("../../../../"); /** @typedef {import("../../../../").Module} Module */ /** * @param {import("../../../../").Compiler} compiler the compiler */ const testPlugin = (compiler) => { compiler.hooks.compilation.tap("TestPlugin", ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/rebuild/rebuildWithNewDependencies/a.js
test/configCases/rebuild/rebuildWithNewDependencies/a.js
export default "a.js";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/multiple-with-externals/ignored-module2.js
test/configCases/ignore/multiple-with-externals/ignored-module2.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/multiple-with-externals/test.js
test/configCases/ignore/multiple-with-externals/test.js
/* globals it */ "use strict"; it("should ignore ignored resources 1", function() { expect(function() { require("./ignored-module1"); }).toThrow(); }); it("should ignore ignored resources 2", function() { expect(function() { require("./ignored-module2"); }).toThrow(); }); it("should not ignore resources that d...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/multiple-with-externals/webpack.config.js
test/configCases/ignore/multiple-with-externals/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", externals: { "./normal-module": "{}" }, plugins: [ new IgnorePlugin({ resourceRegExp: /ignored-module1/ }), new IgnorePlugin({ resourceR...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/multiple-with-externals/normal-module.js
test/configCases/ignore/multiple-with-externals/normal-module.js
module.exports = "normal";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/multiple-with-externals/ignored-module1.js
test/configCases/ignore/multiple-with-externals/ignored-module1.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource-context/test.js
test/configCases/ignore/only-resource-context/test.js
/* globals it */ "use strict"; it("should ignore ignored resources", function() { const folderBContext = function(mod) { require("./src/" + mod); }; expect(function() { folderBContext("ignored-module"); }).toThrow(); }); it("should not ignore resources that do not match", function() { const folderBContext = ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource-context/webpack.config.js
test/configCases/ignore/only-resource-context/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ resourceRegExp: /ignored-module/ }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource-context/src/ignored-module.js
test/configCases/ignore/only-resource-context/src/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource-context/src/normal-module.js
test/configCases/ignore/only-resource-context/src/normal-module.js
module.exports = "normal";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/test.js
test/configCases/ignore/checkContext/test.js
/* globals it */ "use strict"; it("should ignore resources that match resource regex and context", function() { expect(function() { require("./folder-b/normal-module"); }).toThrow(); }); it("should not ignore resources that match resource but not context", function() { expect(function() { require("./folder-a/n...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/webpack.config.js
test/configCases/ignore/checkContext/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ checkResource(resource, context) { return /ignored-module/.test(resource) && /folder-b/.test(context); } }) ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-a/ignored-module.js
test/configCases/ignore/checkContext/folder-a/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-a/normal-module.js
test/configCases/ignore/checkContext/folder-a/normal-module.js
module.exports = require("./normal-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-b/ignored-module.js
test/configCases/ignore/checkContext/folder-b/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-b/only-context-match-require.js
test/configCases/ignore/checkContext/folder-b/only-context-match-require.js
module.exports = "should be fine";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-b/only-context-match.js
test/configCases/ignore/checkContext/folder-b/only-context-match.js
module.exports = require("./only-context-match-require");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkContext/folder-b/normal-module.js
test/configCases/ignore/checkContext/folder-b/normal-module.js
module.exports = require("./ignored-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/false-alias/ignored-module.js
test/configCases/ignore/false-alias/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/false-alias/test.js
test/configCases/ignore/false-alias/test.js
/* globals it */ "use strict"; it("should ignore ignored resources", function() { expect(require("./ignored-module")).toEqual({}); }); it("should ignore ignored resources", function() { expect(require("ignored-module")).toEqual({}); }); it("should not ignore resources that do not match", function() { expect(requi...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/false-alias/webpack.config.js
test/configCases/ignore/false-alias/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", resolve: { alias: { "ignored-module": false, "./ignored-module": false } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/false-alias/normal-module.js
test/configCases/ignore/false-alias/normal-module.js
module.exports = "normal";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource/ignored-module.js
test/configCases/ignore/only-resource/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource/test.js
test/configCases/ignore/only-resource/test.js
/* globals it */ "use strict"; it("should ignore ignored resources", function() { expect(function() { require("./ignored-module"); }).toThrow(); }); it("should not ignore resources that do not match", function() { expect(function() { require("./normal-module"); }).not.toThrow(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource/webpack.config.js
test/configCases/ignore/only-resource/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ resourceRegExp: /ignored-module/ }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/only-resource/normal-module.js
test/configCases/ignore/only-resource/normal-module.js
module.exports = "normal";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/test.js
test/configCases/ignore/resource-and-context-contextmodule/test.js
/* globals it */ "use strict"; it("should ignore context modules that match resource regex and context", function() { const folderBContext = function(mod) { require("./folder-b/" + mod); }; expect(function() { folderBContext("normal-module"); }).toThrow(); }); it("should not ignore context modules that do no...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/webpack.config.js
test/configCases/ignore/resource-and-context-contextmodule/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ resourceRegExp: /ignored-module/, contextRegExp: /folder-b/ }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-a/ignored-module.js
test/configCases/ignore/resource-and-context-contextmodule/folder-a/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-a/normal-module.js
test/configCases/ignore/resource-and-context-contextmodule/folder-a/normal-module.js
module.exports = require("./normal-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-b/ignored-module.js
test/configCases/ignore/resource-and-context-contextmodule/folder-b/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-b/only-context-match-require.js
test/configCases/ignore/resource-and-context-contextmodule/folder-b/only-context-match-require.js
module.exports = "should be fine";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-b/only-context-match.js
test/configCases/ignore/resource-and-context-contextmodule/folder-b/only-context-match.js
module.exports = require("./only-context-match-require");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context-contextmodule/folder-b/normal-module.js
test/configCases/ignore/resource-and-context-contextmodule/folder-b/normal-module.js
module.exports = require("./ignored-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/test.js
test/configCases/ignore/resource-and-context/test.js
/* globals it */ "use strict"; it("should ignore resources that match resource regex and context", function() { expect(function() { require("./folder-b/normal-module"); }).toThrow(); }); it("should not ignore resources that match resource but not context", function() { expect(function() { require("./folder-a/n...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/webpack.config.js
test/configCases/ignore/resource-and-context/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ resourceRegExp: /ignored-module/, contextRegExp: /folder-b/ }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-a/ignored-module.js
test/configCases/ignore/resource-and-context/folder-a/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-a/normal-module.js
test/configCases/ignore/resource-and-context/folder-a/normal-module.js
module.exports = require("./normal-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-b/ignored-module.js
test/configCases/ignore/resource-and-context/folder-b/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-b/only-context-match-require.js
test/configCases/ignore/resource-and-context/folder-b/only-context-match-require.js
module.exports = "should be fine";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-b/only-context-match.js
test/configCases/ignore/resource-and-context/folder-b/only-context-match.js
module.exports = require("./only-context-match-require");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/resource-and-context/folder-b/normal-module.js
test/configCases/ignore/resource-and-context/folder-b/normal-module.js
module.exports = require("./ignored-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/side-effects/ignored-module.js
test/configCases/ignore/side-effects/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/side-effects/test.js
test/configCases/ignore/side-effects/test.js
"use strict"; import "ignored-module"; import "./ignored-module"; it("should remove all ignored modules", async function() { // Current module + module with runtime code to load context modules expect(Object.keys(__webpack_modules__)).toHaveLength(2); const x = "a"; const locale = (await import("./locales/" + x)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/side-effects/webpack.config.js
test/configCases/ignore/side-effects/webpack.config.js
"use strict"; const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", resolve: { alias: { "ignored-module": false, "./ignored-module": false } }, plugins: [new webpack.IgnorePlugin({ resourceRegExp: /(b\.js|b)$/ })], optimizati...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/side-effects/locales/b.js
test/configCases/ignore/side-effects/locales/b.js
export default "b";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/side-effects/locales/a.js
test/configCases/ignore/side-effects/locales/a.js
export default "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-one-argument/ignored-module.js
test/configCases/ignore/checkResource-one-argument/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-one-argument/test.js
test/configCases/ignore/checkResource-one-argument/test.js
/* globals it */ "use strict"; it("should ignore ignored resources", function() { expect(function() { require("./ignored-module"); }).toThrow(); }); it("should not ignore resources that do not match", function() { expect(function() { require("./normal-module"); }).not.toThrow(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-one-argument/webpack.config.js
test/configCases/ignore/checkResource-one-argument/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ checkResource(resource) { return /ignored-module/.test(resource); } }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-one-argument/normal-module.js
test/configCases/ignore/checkResource-one-argument/normal-module.js
module.exports = "normal";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/test.js
test/configCases/ignore/checkResource-two-arguments/test.js
/* globals it */ "use strict"; it("should ignore resources that match resource regex and context", function() { expect(function() { require("./folder-b/normal-module"); }).toThrow(); }); it("should not ignore resources that match resource but not context", function() { expect(function() { require("./folder-a/n...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/webpack.config.js
test/configCases/ignore/checkResource-two-arguments/webpack.config.js
"use strict"; const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./test.js", plugins: [ new IgnorePlugin({ checkResource(resource, context) { return /ignored-module/.test(resource) && /folder-b/.test(context); } }) ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/folder-a/ignored-module.js
test/configCases/ignore/checkResource-two-arguments/folder-a/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/folder-a/normal-module.js
test/configCases/ignore/checkResource-two-arguments/folder-a/normal-module.js
module.exports = require("./normal-module");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/folder-b/ignored-module.js
test/configCases/ignore/checkResource-two-arguments/folder-b/ignored-module.js
module.exports = "ignored";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/folder-b/only-context-match-require.js
test/configCases/ignore/checkResource-two-arguments/folder-b/only-context-match-require.js
module.exports = "should be fine";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ignore/checkResource-two-arguments/folder-b/only-context-match.js
test/configCases/ignore/checkResource-two-arguments/folder-b/only-context-match.js
module.exports = require("./only-context-match-require");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false