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/plugins/import-meta-env/index.js
test/configCases/plugins/import-meta-env/index.js
it("should expose NODE_ENV from mode (WebpackOptionsApply)", () => { const env = import.meta.env; expect(env.NODE_ENV).toBe("production"); }); it("should expose variables from EnvironmentPlugin", () => { const env = import.meta.env; expect(env.ENV_VAR_FROM_ENV).toBe("from_environment_plugin"); }); it("should expo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/import-meta-env/webpack.config.js
test/configCases/plugins/import-meta-env/webpack.config.js
"use strict"; const { DefinePlugin, EnvironmentPlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { // Test 1: NODE_ENV from mode (WebpackOptionsApply) mode: "production", // Test 3: DotenvPlugin from .env.test file dotenv: { template: [".env.test"] }, plu...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/environment-plugin/index.js
test/configCases/plugins/environment-plugin/index.js
var never = false; it("should import a single process.env var", () => { if (process.env.AAA !== "aaa") if (never) require("aaa"); }); it("should import multiple process.env vars", () => { if (process.env.BBB !== "bbb") if (never) require("bbb"); if (process.env.CCC !== "ccc") if (never) require("ccc"); }); it("sh...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/environment-plugin/webpack.config.js
test/configCases/plugins/environment-plugin/webpack.config.js
"use strict"; const EnvironmentPlugin = require("../../../../").EnvironmentPlugin; process.env.AAA = "aaa"; process.env.BBB = "bbb"; process.env.CCC = "ccc"; process.env.EEE = "eee"; process.env.FFF = "fff"; process.env.GGG = "ggg"; process.env.III = ""; /** @type {import("../../../../").Configuration[]} */ module.e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/environment-plugin/errors.js
test/configCases/plugins/environment-plugin/errors.js
"use strict"; const variables = [ "aaa", "bbb", "ccc", "ddd", "eee", "fff", "ggg", "hhh", "iii" ]; const modules = [ { name: "aaa", variables: ["aaa"] }, { name: "bbbccc", variables: ["bbb", "ccc"] }, { name: "ddd", variables: [], allowedErrors: [ [{ compilerPath: /ddd/ }, /DDD environme...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/index-2.js
test/configCases/plugins/manifest-plugin/index-2.js
import "./style.css"; import "./dependency.js"; import url from "../../asset-modules/_images/file.png"; import(/* webpackChunkName: 'file' */ "./file.txt?foo"); new URL("./file.txt", import.meta.url); new URL("./public/other.txt", import.meta.url); function importEntrypoints(manifest, name) { const seen = new Set()...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/dependency.js
test/configCases/plugins/manifest-plugin/dependency.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/index-1.js
test/configCases/plugins/manifest-plugin/index-1.js
import fs from "fs"; import path from "path"; import url from "../../asset-modules/_images/file.png"; it("should emit manifest with expected entries and paths with string publicPath", async () => { await import(/* webpackChunkName: 'file' */ "./file.txt?foo"); await import("./module.js"); const manifest = JSON.par...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/test.config.js
test/configCases/plugins/manifest-plugin/test.config.js
"use strict"; module.exports = { findBundle(i) { if (i === 0) { return ["bundle0.js"]; } return [ "runtime~nested-shared.js", "nested-shared.js", "shared.js", "commons-dependency_js.js", "foo.js" ]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/infrastructure-log.js
test/configCases/plugins/manifest-plugin/infrastructure-log.js
"use strict"; module.exports = [ // each time returns different OriginalSource in webpack.config.js:33 // this prevents hit in inmemory cache /^Pack got invalid because of write to: RealContentHashPlugin|analyse|third.party.js$/, /^Pack got invalid because of write to: RealContentHashPlugin|analyse|third.party.js$...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/webpack.config.js
test/configCases/plugins/manifest-plugin/webpack.config.js
"use strict"; const { RawSource } = require("webpack-sources"); const webpack = require("../../../../"); /** @typedef {import("../../../../lib/Compiler")} Compiler */ class CopyPlugin { /** * Apply the plugin * @param {Compiler} compiler the compiler instance * @returns {void} */ apply(compiler) { const ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/shared.js
test/configCases/plugins/manifest-plugin/shared.js
import "./shared.css"; function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/module.js
test/configCases/plugins/manifest-plugin/module.js
export default "dyn";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/nested-shared.js
test/configCases/plugins/manifest-plugin/nested-shared.js
function doSomething() {} doSomething();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/manifest-plugin/nested/module.js
test/configCases/plugins/manifest-plugin/nested/module.js
function doNothing() {} doNothing();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/basic.js
test/configCases/plugins/dotenv-plugin/basic.js
"use strict"; it("should expose only WEBPACK_ prefixed env vars", () => { expect(process.env.WEBPACK_API_URL).toBe("https://api.example.com"); expect(process.env.WEBPACK_MODE).toBe("test"); // Non-prefixed vars should not be exposed expect(typeof process.env.SECRET_KEY).toBe("undefined"); expect(typeof process....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/custom-prefixes.js
test/configCases/plugins/dotenv-plugin/custom-prefixes.js
"use strict"; it("should expose only APP_ and CONFIG_ prefixed vars and built-in properties", () => { expect(process.env.APP_NAME).toBe("MyApp"); expect(process.env.CONFIG_TIMEOUT).toBe("5000"); // WEBPACK_ prefixed should not be exposed expect(typeof process.env.WEBPACK_API_URL).toBe("undefined"); // Non-prefi...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/mode-specific.js
test/configCases/plugins/dotenv-plugin/mode-specific.js
"use strict"; it("should load .env.production and override .env values", () => { // Value from .env.production should override .env expect(process.env.WEBPACK_API_URL).toBe("https://prod-api.example.com"); expect(process.env.WEBPACK_ENV).toBe("production"); // Value only in .env expect(process.env.WEBPACK_MODE)...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/custom-template.js
test/configCases/plugins/dotenv-plugin/custom-template.js
"use strict"; it("should load env files based on custom template", () => { // Should load from .env.myLocal (custom template) expect(process.env.WEBPACK_CUSTOM_VAR).toBe("from-myLocal"); // Should load from .env.production.myLocal (custom mode-specific template) expect(process.env.WEBPACK_PROD_CUSTOM).toBe("from...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/webpack.config.js
test/configCases/plugins/dotenv-plugin/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration[]} */ module.exports = [ // Test 1: Basic - default behavior with WEBPACK_ prefix { name: "basic", mode: "development", entry: "./basic.js", dotenv: true }, // Test 2: Expand - variables are always expanded { na...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/disabled-dir.js
test/configCases/plugins/dotenv-plugin/disabled-dir.js
"use strict"; it("should not load any .env files when dir is false", () => { // When dir: false, no .env files should be loaded // Only environment variables that were already set in process.env should be available // and only those with WEBPACK_ prefix should be exposed // These should be undefined since no .en...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/expand.js
test/configCases/plugins/dotenv-plugin/expand.js
"use strict"; it("should expand variables by default", () => { expect(process.env.WEBPACK_BASE).toBe("example.com"); expect(process.env.WEBPACK_API_URL).toBe("https://api.example.com"); expect(process.env.WEBPACK_FULL_URL).toBe("https://api.example.com/v1"); // Test default value operator expect(process.env.WEB...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/dotenv-plugin/custom-envdir.js
test/configCases/plugins/dotenv-plugin/custom-envdir.js
"use strict"; it("should load from custom dir", () => { expect(process.env.WEBPACK_FROM_ENVS).toBe("loaded-from-envs-dir"); expect(process.env.WEBPACK_API_URL).toBe("https://custom.example.com"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/loader-options-plugin/index.js
test/configCases/plugins/loader-options-plugin/index.js
it("should set correct options on js files", function() { expect(require("./loader!./index.js")).toEqual({ minimize: true, jsfile: true }); }); it("should set correct options on other files", function() { expect(require("./loader!./txt.txt")).toEqual({ minimize: true }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/loader-options-plugin/loader.js
test/configCases/plugins/loader-options-plugin/loader.js
/** @type {import("../../../../").LoaderDefinition<{}, { minimize: boolean, jsfile: boolean }>} */ module.exports = function () { return ( "module.exports = " + JSON.stringify({ minimize: this.minimize, jsfile: this.jsfile }) ); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/loader-options-plugin/webpack.config.js
test/configCases/plugins/loader-options-plugin/webpack.config.js
"use strict"; const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ new webpack.LoaderOptionsPlugin({ minimize: true }), new webpack.LoaderOptionsPlugin({ test: /\.js$/, jsfile: true }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/harmony2.js
test/configCases/plugins/provide-plugin/harmony2.js
export const a = 1; export const aUsed = __webpack_exports_info__.a.used;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/env.js
test/configCases/plugins/provide-plugin/env.js
module.exports = "development";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/index.js
test/configCases/plugins/provide-plugin/index.js
it("should provide a module for a simple free var", function() { expect(aaa).toBe("aaa"); }); it("should provide a module for a nested var", function() { expect((bbb.ccc)).toBe("bbbccc"); var x = bbb.ccc; expect(x).toBe("bbbccc"); }); it("should provide a module for a nested var within a IIFE's argument", functio...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/bbbccc.js
test/configCases/plugins/provide-plugin/bbbccc.js
module.exports = "bbbccc";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/esm.js
test/configCases/plugins/provide-plugin/esm.js
module.exports = "esm";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/b.js
test/configCases/plugins/provide-plugin/b.js
export function square(x) { return x * x; } export function cube(x) { return x * x * x; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/aaa.js
test/configCases/plugins/provide-plugin/aaa.js
module.exports = "aaa";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/webpack.config.js
test/configCases/plugins/provide-plugin/webpack.config.js
"use strict"; const ProvidePlugin = require("../../../../").ProvidePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ new ProvidePlugin({ aaa: "./aaa", "bbb.ccc": "./bbbccc", dddeeefff: ["./ddd", "eee", "3-f"], aa1: ["./a", "c", "cube"], es2015_aUsed: ["./harmo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/ddd.js
test/configCases/plugins/provide-plugin/ddd.js
var ddd = { eee: { "3-f": "fff" } }; module.exports = ddd;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/harmony.js
test/configCases/plugins/provide-plugin/harmony.js
export default "ECMAScript 2015"; export const alias = "ECMAScript Harmony"; export const year = 2015;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/provide-plugin/a.js
test/configCases/plugins/provide-plugin/a.js
export * as c from "./b"; export * as c2 from "./harmony2";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin/index.js
test/configCases/plugins/source-map-dev-tool-plugin/index.js
it("should contain publicPath prefix in [url] and resolve relatively to fileContext", function() { var fs = require("fs"), path = require("path"); var source = fs.readFileSync(path.join(__dirname, "public/test.js"), "utf-8"); expect(source).toMatch("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin/test.js
test/configCases/plugins/source-map-dev-tool-plugin/test.js
var testObject = { a: 1 }; module.exports = testObject;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js
test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js
"use strict"; const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, entry: { bundle0: ["./index.js"], "public/test": ["./test.js"] }, output: { ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/define-plugin-sub-key/index.js
test/configCases/plugins/define-plugin-sub-key/index.js
import foo from './foo.js'; function works1() { return foo.bar; } function works2() { const v = foo.bar; return v; } function works3() { const v = foo.bar.baz; return v; } it("should compile and run", () => { expect(works1()).toBe("test"); expect(works2()).toBe("test"); expect(works3()).toBe("test"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/define-plugin-sub-key/foo.js
test/configCases/plugins/define-plugin-sub-key/foo.js
export default { bar: "test" }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/define-plugin-sub-key/webpack.config.js
test/configCases/plugins/define-plugin-sub-key/webpack.config.js
"use strict"; const DefinePlugin = require("../../../../").DefinePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ new DefinePlugin({ "foo.bar.baz": '"test"' }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/index.js
test/configCases/plugins/limit-chunk-count-plugin/index.js
it("should merge chunks", async () => { const { value } = await import("./a"); expect(value).toBe("fine") });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/b.js
test/configCases/plugins/limit-chunk-count-plugin/b.js
const value = (await import("./c")).default; export default value;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/test.js
test/configCases/plugins/limit-chunk-count-plugin/test.js
var foo = {}; module.exports = foo;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/test.config.js
test/configCases/plugins/limit-chunk-count-plugin/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/plugins/limit-chunk-count-plugin/webpack.config.js
test/configCases/plugins/limit-chunk-count-plugin/webpack.config.js
"use strict"; const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, entry: "./index.js", output: { filename: "[name].js" }, plugins: [new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 })] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/vendors.js
test/configCases/plugins/limit-chunk-count-plugin/vendors.js
var bar = {}; module.exports = bar;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/c.js
test/configCases/plugins/limit-chunk-count-plugin/c.js
export default "fine";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/limit-chunk-count-plugin/a.js
test/configCases/plugins/limit-chunk-count-plugin/a.js
const value = (await import("./b")).default; export { value };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/lib-manifest-plugin/index.js
test/configCases/plugins/lib-manifest-plugin/index.js
var fs = require("fs"); var path = require("path"); it("should complete", function(done) { require.ensure(["./a"], function(require) { expect(require("./a")).toBe("a"); done(); }); }); it("should write the correct manifest", function() { var manifest = JSON.parse(fs.readFileSync(path.join(__dirname, 'bundle0-m...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/lib-manifest-plugin/webpack.config.js
test/configCases/plugins/lib-manifest-plugin/webpack.config.js
"use strict"; const path = require("path"); const LibManifestPlugin = require("../../../../").LibManifestPlugin; /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ module.exports = (env, { testPath }) => ({ entry: { bundle0: ["./"] }, plugins: [ new LibManifestPlugin({ p...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/lib-manifest-plugin/a.js
test/configCases/plugins/lib-manifest-plugin/a.js
module.exports = "a";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin-append-function/index.js
test/configCases/plugins/source-map-dev-tool-plugin-append-function/index.js
it("should have [file] replaced with chunk filename in append", function() { const fs = require("fs"), path = require("path"); const source = fs.readFileSync(path.join(__dirname, "some-test.js"), "utf-8"); expect(source).toMatch("//# sourceMappingURL=http://localhost:50505/some-test.js.map"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin-append-function/test.js
test/configCases/plugins/source-map-dev-tool-plugin-append-function/test.js
const testObject = { a: 1 }; module.exports = testObject;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js
test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js
"use strict"; const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, entry: { bundle0: ["./index.js"], "some-test": ["./test.js"] }, output: ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/profiling-plugin/test.filter.js
test/configCases/plugins/profiling-plugin/test.filter.js
"use strict"; module.exports = () => !process.env.CI;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/profiling-plugin/index.js
test/configCases/plugins/profiling-plugin/index.js
import "./test.json"; it("should generate a events.json file", () => { var fs = require("fs"); var path = require("path"); expect(fs.existsSync(path.join(__dirname, "in/directory/events.json"))).toBe( true ); }); it("should have proper setup record inside of the json stream", () => { var fs = require("fs"); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/profiling-plugin/deprecations.js
test/configCases/plugins/profiling-plugin/deprecations.js
"use strict"; module.exports = [ { code: /DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK/ } ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/profiling-plugin/test.config.js
test/configCases/plugins/profiling-plugin/test.config.js
"use strict"; module.exports = { timeout: 60000 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/profiling-plugin/webpack.config.js
test/configCases/plugins/profiling-plugin/webpack.config.js
"use strict"; const rootPath = "../../../../"; const webpack = require(rootPath); const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ module.exports = (env, { testPath }) => ({ plugins: [ new webpack.debug.ProfilingPlugin({ outputPath: path.join...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/define-plugin-bigint/index.js
test/configCases/plugins/define-plugin-bigint/index.js
it("should define BIGINT", function() { expect(BIGINT).toBe(9007199254740993n); expect(typeof BIGINT).toBe("bigint"); if (BIGINT !== 9007199254740993n) require("fail"); if (typeof BIGINT !== "bigint") require("fail"); }); it("should define ZERO_BIGINT", function() { expect(ZERO_BIGINT).toBe(0n); expect(typeof ZER...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/define-plugin-bigint/webpack.config.js
test/configCases/plugins/define-plugin-bigint/webpack.config.js
"use strict"; const DefinePlugin = require("../../../../").DefinePlugin; /** @type {import("../../../../").Configuration} */ module.exports = { output: { environment: { bigIntLiteral: true } }, plugins: [ new DefinePlugin({ BIGINT: BigInt("9007199254740993"), ZERO_BIGINT: BigInt(0) }) ] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/compress.js
test/configCases/plugins/terser-plugin/compress.js
function f() { var a = 1, b = 2, c = 3; if (a) { b = c; } else { c = b; } console.log(a + b); console.log(b + c); console.log(a + c); console.log(a + b + c); } module.exports = f;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/extract.js
test/configCases/plugins/terser-plugin/extract.js
var foo = {}; // ⚠️ move the following comment back to the top // https://github.com/mishoo/UglifyJS2/issues/2500 /** @preserve comment should be extracted extract-test.1 */ // comment should be stripped extract-test.2 /*! * comment should be extracted extract-test.3 */ /** * comment should be stripped extract-t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/index.js
test/configCases/plugins/terser-plugin/index.js
it("should contain no comments in out chunk", () => { const fs = require("fs"); const source = fs.readFileSync(__filename, "utf-8"); expect(source).not.toMatch(/[^\"]comment should be stripped test\.1[^\"]/); expect(source).not.toMatch(/[^\"]comment should be stripped test\.2[^\"]/); expect(source).not.toMatch(/...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/ie8.js
test/configCases/plugins/terser-plugin/ie8.js
function t(e) { return function(error) { try { e() } catch(e) { error(e) } } } module.exports = t;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/test.js
test/configCases/plugins/terser-plugin/test.js
/** @preserve comment should be stripped test.1 */ var foo = {}; // comment should be stripped test.2 /** * comment should be stripped test.3 */ module.exports = foo;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/webpack.config.js
test/configCases/plugins/terser-plugin/webpack.config.js
"use strict"; const TerserPlugin = require("terser-webpack-plugin"); /** @type {import("../../../../").Configuration} */ module.exports = { node: { __dirname: false, __filename: false }, entry: { ie8: ["./ie8.js"], bundle0: ["./index.js"], vendors: ["./vendors.js"], extract: ["./extract.js"], compres...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/plugins/terser-plugin/vendors.js
test/configCases/plugins/terser-plugin/vendors.js
/** @preserve comment should not be stripped vendors.1 */ var bar = {}; // comment should not be stripped vendors.2 /** * comment should not be stripped vendors.3 */ module.exports = bar;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/custom/index.js
test/configCases/ecmaVersion/custom/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/custom/webpack.config.js
test/configCases/ecmaVersion/custom/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { environment: { arrowFunction: true, bigIntLiteral: false, const: false, destructuring: false, forOf: false, dynamicImport: true, module: false } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-extends/index.js
test/configCases/ecmaVersion/browserslist-config-extends/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-extends/test.config.js
test/configCases/ecmaVersion/browserslist-config-extends/test.config.js
"use strict"; const fs = require("fs"); const path = require("path"); const rootPath = path.resolve(__dirname, "../../../../"); const rootNodeModules = path.resolve(rootPath, "./node_modules"); const browserslistPackage = path.resolve( rootNodeModules, "browserslist-config-mycompany1" ); const content = ` module.ex...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-extends/webpack.config.js
test/configCases/ecmaVersion/browserslist-config-extends/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration} */ module.exports = { target: `browserslist:${path.join(__dirname, ".browserslistrc")}`, plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-env/index.js
test/configCases/ecmaVersion/browserslist-env/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-env/webpack.config.js
test/configCases/ecmaVersion/browserslist-env/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "browserslist:production", plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environment).toMatchInlineSnapshot(` Object { "arrowFunction":...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-extends/index.js
test/configCases/ecmaVersion/browserslist-extends/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-extends/test.config.js
test/configCases/ecmaVersion/browserslist-extends/test.config.js
"use strict"; const fs = require("fs"); const path = require("path"); const rootPath = path.resolve(__dirname, "../../../../"); const rootNodeModules = path.resolve(rootPath, "./node_modules"); const browserslistPackage = path.resolve( rootNodeModules, "browserslist-config-mycompany2" ); const content = ` module.ex...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-extends/webpack.config.js
test/configCases/ecmaVersion/browserslist-extends/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "browserslist", plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environment).toMatchInlineSnapshot(` Object { "arrowFunction": false, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/loader-context/index.js
test/configCases/ecmaVersion/loader-context/index.js
import mod from "./loader.js!./module"; it("should compile and export target and environment", function() { expect(mod.target).toBe("node"); expect(mod.environment.globalThis).toBe(false); expect(mod.environment.optionalChaining).toBe(true); expect(mod.environment.templateLiteral).toBe(true); expect(mod.environme...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/loader-context/loader.js
test/configCases/ecmaVersion/loader-context/loader.js
/** @type {import("../../../../types").LoaderDefinition<{}>} */ module.exports = function loader(content) { const target = this.target; const environment = this.environment; return `export default ${JSON.stringify({ target, environment})}`; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/loader-context/webpack.config.js
test/configCases/ecmaVersion/loader-context/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es2020"], output: { environment: { // Our target supports `globalThis`, but for test purposes we set it to `false` globalThis: false } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/loader-context/module.js
test/configCases/ecmaVersion/loader-context/module.js
export default "test";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/5/index.js
test/configCases/ecmaVersion/5/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/5/webpack.config.js
test/configCases/ecmaVersion/5/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es5"] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-env/index.js
test/configCases/ecmaVersion/browserslist-config-env/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js
test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration} */ module.exports = { target: `browserslist:${path.join(__dirname, ".browserslistrc")}:modern`, plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-query/index.js
test/configCases/ecmaVersion/browserslist-query/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-query/webpack.config.js
test/configCases/ecmaVersion/browserslist-query/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "browserslist: ie 9", plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environment).toMatchInlineSnapshot(` Object { "arrowFunction": fals...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist/index.js
test/configCases/ecmaVersion/browserslist/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist/webpack.config.js
test/configCases/ecmaVersion/browserslist/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: ["browserslist"], plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environment).toMatchInlineSnapshot(` Object { "arrowFunction": true, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-query-with-config-file/index.js
test/configCases/ecmaVersion/browserslist-query-with-config-file/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-query-with-config-file/webpack.config.js
test/configCases/ecmaVersion/browserslist-query-with-config-file/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "browserslist:maintained node versions", plugins: [ (compiler) => { compiler.hooks.compilation.tap("Test", (compilation) => { expect(compilation.outputOptions.environment).toMatchInlineSnapshot(` Object { "a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-missing/test.filter.js
test/configCases/ecmaVersion/browserslist-missing/test.filter.js
"use strict"; module.exports = (config) => !config.cache;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-missing/index.js
test/configCases/ecmaVersion/browserslist-missing/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-missing/webpack.config.js
test/configCases/ecmaVersion/browserslist-missing/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: ["browserslist"] };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-missing/errors.js
test/configCases/ecmaVersion/browserslist-missing/errors.js
"use strict"; module.exports = [[/No browserslist config found/]];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/ecmaVersion/browserslist-config-env-extends/index.js
test/configCases/ecmaVersion/browserslist-config-env-extends/index.js
it("should compile and run the test", function() {});
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false