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/asset-modules/bytes/test.config.js | test/configCases/asset-modules/bytes/test.config.js | "use strict";
let run = 0;
module.exports = {
moduleScope(scope, options) {
if (!scope.window) {
return;
}
const link = scope.window.document.createElement("link");
link.rel = "stylesheet";
link.href = `bundle${run === 0 ? "0" : "2"}.css`;
scope.window.document.head.appendChild(link);
run++;
},
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/bytes/webpack.config.js | test/configCases/asset-modules/bytes/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
name: "web",
mode: "development",
target: "web",
experiments: {
css: true
},
module: {
rules: [
{
test: /\.svg$/,
type: "asset/bytes"
}
]
}
},
{
name: "node",
mode: "development",
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/build-http/index.js | test/configCases/asset-modules/build-http/index.js | const urlSvg = new URL(
"https://raw.githubusercontent.com/webpack/webpack/refs/heads/main/test/configCases/asset-modules/_images/file.svg",
import.meta.url
);
it("should work", () => {
expect(/[\da-f]{20}\.svg$/.test(urlSvg)).toBe(true);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/build-http/webpack.config.js | test/configCases/asset-modules/build-http/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
experiments: {
buildHttp: {
allowedUris: [() => true],
lockfileLocation: path.resolve(__dirname, "./lock-files/lock.json"),
cacheLocation: path.resolve(__dirname, "./loc... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/real-content-hash/index.js | test/configCases/asset-modules/real-content-hash/index.js | import a from "../_images/file.png";
import b from "../_images/file_copy.png";
it("should use a real content hash for assets", () => {
expect(a).toBe(b);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/real-content-hash/webpack.config.js | test/configCases/asset-modules/real-content-hash/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
publicPath: "assets/",
assetModuleFilename: "file[ext]"
},
module: {
rules: [
{
test: /\.png$/,
type: "asset/resource"
}
]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/different-query/index.js | test/configCases/asset-modules/different-query/index.js | it("should handle different querystrings for assets correctly", () => {
const a = new URL("../_images/file.png?foo=bar", import.meta.url);
const b = new URL("../_images/file.png?bar=foo", import.meta.url);
const c = new URL("../_images/file.png", import.meta.url);
const d = new URL("../_images/file.png", import.met... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/different-query/webpack.config.js | test/configCases/asset-modules/different-query/webpack.config.js | "use strict";
module.exports = {
mode: "development",
target: "web"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/input-data-url-encoding/index.js | test/configCases/asset-modules/input-data-url-encoding/index.js | it("should keep original encoding", () => {
const url = new URL(
"data:image/svg+xml;p=1;q=2,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke=\"%23343a40\" stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e",
import.meta.url
);
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/input-data-url-encoding/webpack.config.js | test/configCases/asset-modules/input-data-url-encoding/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
devtool: false,
module: {
rules: [
{
dependency: "url",
type: "asset",
generator: {
dataUrl: {
encoding: false
}
}
}
]
},
target: "web"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/opus/index.js | test/configCases/asset-modules/opus/index.js | it("should throw an error for unknown mimetype", () => {
if (Math.random() < 0) require("./file.opuuus");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/opus/webpack.config.js | test/configCases/asset-modules/opus/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
module: {
rules: [
{
test: /\.opuuus$/,
type: "asset"
}
]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/opus/errors.js | test/configCases/asset-modules/opus/errors.js | "use strict";
module.exports = [[/DataUrl can't be generated automatically/]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/path/index.js | test/configCases/asset-modules/path/index.js | import url from "../_images/file.png";
it("should output asset with path", () => {
expect(url).toEqual("images/file.png");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/path/webpack.config.js | test/configCases/asset-modules/path/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
assetModuleFilename: "images/file[ext]"
},
module: {
rules: [
{
test: /\.png$/,
type: "asset"
}
]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/only-entry/test.js | test/configCases/asset-modules/only-entry/test.js | it("should work", () => {
const stats = __STATS__.children[__STATS_I__];
const test = stats.assets.find(
a => a.name === "test.js"
);
expect(Boolean(test)).toBe(true);
const assetEntry = stats.assets.find(
a => a.info.sourceFilename === "../_images/file.png"
);
expect(Boolean(assetEntry)).toBe(true);
swi... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/only-entry/test.config.js | test/configCases/asset-modules/only-entry/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["test.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/only-entry/entry.js | test/configCases/asset-modules/only-entry/entry.js | function test() {
run();
}
test();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/only-entry/webpack.config.js | test/configCases/asset-modules/only-entry/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const webpack = require("../../../../");
/** @typedef {import("../../../../").Configuration} Configuration */
/** @type {(i: number, options: Partial<Configuration>) => Configuration} */
const common = (i, options) => ({
target: "web",
output: ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/rule-generator-publicPath/index.js | test/configCases/asset-modules/rule-generator-publicPath/index.js | import url from "../_images/file.png";
it("should import asset with rule.generator.publicPath", () => {
expect(url).toEqual("assets/file.png");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js | test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
assetModuleFilename: "file[ext]"
},
module: {
rules: [
{
test: /\.png$/,
type: "asset",
generator: {
publicPath: () => "assets/"
}
}
]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/index.js | test/configCases/asset-modules/http-url/index.js | import cssContent from "http://localhost:9990/index.css?query#fragment";
import noCacheCssContent from "http://localhost:9990/index.css?no-cache";
import cachedCssContent from "http://localhost:9990/index.css?cache";
import { value, value2 } from "http://localhost:9990/resolve.js";
import { fallback } from "http://loca... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/test.config.js | test/configCases/asset-modules/http-url/test.config.js | "use strict";
const fs = require("fs");
const path = require("path");
module.exports = {
beforeExecute() {
try {
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));
} catch (_err) {
// Empty
}
},
afterExecute() {
try {
fs.unlinkSync(path.join(__dirname, "dev-defaults.webpack.lock"));... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/index.security.js | test/configCases/asset-modules/http-url/index.security.js | "use strict";
it("should reject URLs with userinfo that bypass allowedUris", () => {
expect(() => require("http://localhost:9990@127.0.0.1:9100/secret.js")).toThrow();
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/webpack.config.js | test/configCases/asset-modules/http-url/webpack.config.js | "use strict";
const {
experiments: {
schemes: { HttpUriPlugin }
}
} = require("../../../../");
const ServerPlugin = require("./server");
const serverPlugin = new ServerPlugin(9990);
/** @type {import("../../../../").Configuration} */
const base = {
mode: "development",
module: {
rules: [
{
test: /\.css... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/index.errors.js | test/configCases/asset-modules/http-url/index.errors.js | it("error when lockfile is outdated/invalid", () => {
expect(() => {
require("http://localhost:9990/index.css?cache");
}).toThrow();
expect(() => {
require("http://localhost:9990/index.css?no-cache");
}).toThrow();
expect(() => {
require("http://localhost:9990/index.css");
}).toThrow();
expect(() => {
re... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/errors.js | test/configCases/asset-modules/http-url/errors.js | "use strict";
module.exports = [
[
/http:\/\/localhost:9990\/index\.css\?cache used to have no-cache lockfile entry and has content now, but lockfile is frozen/
],
[
/http:\/\/localhost:9990\/index\.css\?no-cache has a lockfile entry and is no-cache now, but lockfile is frozen/
],
[
/http:\/\/localhost:9990... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | export * from "./folder/dependency.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | export const value = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | export default { ok: true }; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | export const value2 = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | export default new URL("asset.txt?query", import.meta.url); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | export * from "fallback-package"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | test/configCases/asset-modules/http-url/dev-defaults.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | export * from "./sub-dependency.js";
export * from "/folder/sub-dependency2.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/node_modules/fallback-package.js | test/configCases/asset-modules/http-url/node_modules/fallback-package.js | export const fallback = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | export * from "./folder/dependency.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | export const value = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | export default { ok: true }; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | export const value2 = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | export default new URL("asset.txt?query", import.meta.url); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | export * from "fallback-package"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | test/configCases/asset-modules/http-url/prod-defaults.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | export * from "./sub-dependency.js";
export * from "/folder/sub-dependency2.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | export * from "./folder/dependency.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | export default { ok: true }; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | test/configCases/asset-modules/http-url/errors.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | export * from "fallback-package"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/resolve_69c3f44e55195d0c14cf.js | export * from "./folder/dependency.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_sub-dependency_a662b3b186898f776088.js | export const value = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/redirect_d3dcf71bcf15dc29654c.js | export default { ok: true }; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_sub-dependency2_f750536150de4f4db445.js | export const value2 = 42; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/url_cc93d527a81c32b07ab8.js | export default new URL("asset.txt?query", import.meta.url); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/fallback_4972219bd28762fbfd18.js | export * from "fallback-package"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | test/configCases/asset-modules/http-url/frozen-verify.webpack.lock.data/http_localhost_9990/folder_dependency_3263dc642c8ad1171873.js | export * from "./sub-dependency.js";
export * from "/folder/sub-dependency2.js"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/index.js | test/configCases/asset-modules/http-url/server/index.js | const http = require("http");
const fs = require("fs");
const path = require("path");
/** @typedef {import("../../../../../").Compiler} Compiler */
/**
* @returns {import("http").Server} server instance
*/
function createServer() {
const server = http.createServer((req, res) => {
let file;
const pathname = "."... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/redirect.js | test/configCases/asset-modules/http-url/server/redirect.js | export default { ok: true };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/fallback.js | test/configCases/asset-modules/http-url/server/fallback.js | export * from "fallback-package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/resolve.js | test/configCases/asset-modules/http-url/server/resolve.js | export * from "./folder/dependency.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/url.js | test/configCases/asset-modules/http-url/server/url.js | export default new URL("asset.txt?query", import.meta.url);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/folder/dependency.js | test/configCases/asset-modules/http-url/server/folder/dependency.js | export * from "./sub-dependency.js";
export * from "/folder/sub-dependency2.js";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/folder/sub-dependency.js | test/configCases/asset-modules/http-url/server/folder/sub-dependency.js | export const value = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/server/folder/sub-dependency2.js | test/configCases/asset-modules/http-url/server/folder/sub-dependency2.js | export const value2 = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/loaders/css-loader.js | test/configCases/asset-modules/http-url/loaders/css-loader.js | /** @type {import("../../../../../").LoaderDefinition} */
module.exports = content => `export default ${JSON.stringify(content + ".webpack{}")}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/http-url/loaders/md-loader.js | test/configCases/asset-modules/http-url/loaders/md-loader.js | /** @type {import("../../../../../").LoaderDefinition} */
module.exports = content => `export default ${JSON.stringify(content)}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/assetModuleFilename/index.js | test/configCases/asset-modules/assetModuleFilename/index.js | import png from "../_images/file.png";
import svg from "../_images/file.svg";
import svg2 from "../_images/file.svg?custom2";
it("should change filenames", () => {
expect(png).toEqual("images/[ext]/success-png.png");
expect(svg).toEqual("images/success-svg.svg");
expect(svg2).toEqual("custom-images/success.svg");
}... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/assetModuleFilename/webpack.config.js | test/configCases/asset-modules/assetModuleFilename/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
assetModuleFilename: ({ filename: _filename }) => {
const filename = /** @type {string} */ (_filename);
if (/.png$/.test(filename)) {
return "images/[\\ext\\]/success-png[ext]";
}
if ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/file-url/index.js | test/configCases/asset-modules/file-url/index.js | import {val1, val2} from "./temp/index.js";
import expected from "./src with spaces/module";
it("file url request should be supported", () => {
expect(val1).toBe(expected);
expect(val2).toBe(expected);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/file-url/webpack.config.js | test/configCases/asset-modules/file-url/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const { pathToFileURL } = require("url");
const dir = path.resolve(__dirname, "temp");
const file = path.resolve(dir, "index.js");
fs.mkdirSync(dir, {
recursive: true
});
fs.writeFileSync(
file,
`import v1 from ${JSON.stringify(
pathToFileURL... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/file-url/src with spaces/module.js | test/configCases/asset-modules/file-url/src with spaces/module.js | export default "default"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/global-options/index.js | test/configCases/asset-modules/global-options/index.js | import png from "../_images/file.png";
import svg from "../_images/file.svg?inline";
import jpg from "../_images/file.jpg";
it("should output various asset types", () => {
expect(png).toMatch(/^[\da-f]{20}\.png$/);
expect(svg).toMatch(/^data:image\/svg\+xml,/);
expect(jpg).toMatch(/^DATA:image\/jpeg;base64,[0-9a-zA... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/asset-modules/global-options/webpack.config.js | test/configCases/asset-modules/global-options/webpack.config.js | "use strict";
const mimeTypes = require("mime-types");
const svgToMiniDataURI = require("mini-svg-data-uri");
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
module: {
parser: {
asset: {
dataUrlCondition: (source, { filename }) => filename.includes("?inline")
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/b.js | test/configCases/module-name/different-issuers-for-same-module/b.js | module.exports = require("./c");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/test.js | test/configCases/module-name/different-issuers-for-same-module/test.js | it("should assign different names to the same module with different issuers ", function() {
var regex = "\\./c\\.js\\?\\w{4}";
expect(require("./c")).toMatch(new RegExp(regex));
expect(require("./a")).toMatch(new RegExp("loader-a" + regex));
expect(require("./b")).toMatch(new RegExp("loader-b" + regex));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/webpack.config.js | test/configCases/module-name/different-issuers-for-same-module/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
entry: ["./a", "./b", "./test"],
module: {
rules: [
{
test: /c\.js/,
issuer: /a\.js/,
loader: "./loader-a"
},
{
test: /c\.js/,
issuer: /b\.js/,
loader: "./loader-b"
}
]
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/c.js | test/configCases/module-name/different-issuers-for-same-module/c.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/loader-a.js | test/configCases/module-name/different-issuers-for-same-module/loader-a.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function (src) {
return `module.exports = "loader-a" + module.id`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/loader-b.js | test/configCases/module-name/different-issuers-for-same-module/loader-b.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function (src) {
return `module.exports = "loader-b" + module.id`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module-name/different-issuers-for-same-module/a.js | test/configCases/module-name/different-issuers-for-same-module/a.js | module.exports = require("./c");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/managedPaths/futureDefaults/index.js | test/configCases/managedPaths/futureDefaults/index.js | import value from "package";
it("should work", () => {
expect(value).toBe(42);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/managedPaths/futureDefaults/webpack.config.js | test/configCases/managedPaths/futureDefaults/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
experiments: {
futureDefaults: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/managedPaths/futureDefaults/node_modules/package/index.js | test/configCases/managedPaths/futureDefaults/node_modules/package/index.js | export default 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/empty-context-module/index.js | test/configCases/resolve/empty-context-module/index.js | const id = () => Math.random();
it("should compile", async () => {
await expect(/* webpackMode: "lazy" */ import(`foo/${id()}`)).rejects.toBeTruthy();
await expect(/* webpackMode: "lazy" */ import(`foo/${id()}`)).rejects.toBeTruthy();
await expect(/* webpackMode: "lazy" */ import(`foo/${id()}`)).rejects.toBeTruthy(... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/empty-context-module/webpack.config.js | test/configCases/resolve/empty-context-module/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
cache: true,
resolve: {
alias: {
foo: false
},
unsafeCache: true
}
},
{
resolve: {
alias: {
foo: false
},
unsafeCache: true
}
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/only-module/index.js | test/configCases/resolve/only-module/index.js | it("should resolve both alternatives", () => {
const one = require("./b");
const two = require("./b/2");
expect(one).toBe(1);
expect(two).toBe(2);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/only-module/webpack.config.js | test/configCases/resolve/only-module/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
resolve: {
alias: [
{
alias: path.resolve(__dirname, "a/1.js"),
name: "./b",
onlyModule: true
}
]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/only-module/a/1.js | test/configCases/resolve/only-module/a/1.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/only-module/b/2.js | test/configCases/resolve/only-module/b/2.js | module.exports = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-15580/index.js | test/configCases/resolve/issue-15580/index.js | const locales = import.meta.webpackContext('./locales', {
recursive: false,
regExp: /(en|hu)\.json$/i,
});
const vuetify = import.meta.webpackContext('vuetify/lib/locale', {
recursive: false,
regExp: /(en|hu)\.json$/i,
});
it('should resolve "./locales"', () => {
expect(locales("./en.json")).toEqual({});
expect(... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-15580/webpack.config.js | test/configCases/resolve/issue-15580/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
resolve: {
modules: ["node_modules", path.resolve(__dirname, "./node_modules")]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/index.js | test/configCases/resolve/issue-11335-context-module/index.js | import a from "app/widgets/a";
import b from "app/widgets/b";
import c from "app/widgets/c";
it("static imports order", () => {
expect(a).toBe("main/widgets/a");
expect(b).toBe("main/widgets/b");
expect(c).toBe("foo/widgets/c");
});
const load = id => import(/* webpackMode: "eager" */ `app/widgets/${id}?query#has... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/webpack.config.js | test/configCases/resolve/issue-11335-context-module/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
resolve: {
alias: {
app: [path.join(__dirname, "src/main"), path.join(__dirname, "src/foo")]
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/src/main/widgets/b.js | test/configCases/resolve/issue-11335-context-module/src/main/widgets/b.js | export default "main/widgets/b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/src/main/widgets/a.js | test/configCases/resolve/issue-11335-context-module/src/main/widgets/a.js | export default "main/widgets/a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/src/foo/widgets/b.js | test/configCases/resolve/issue-11335-context-module/src/foo/widgets/b.js | export default "foo/widgets/b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/issue-11335-context-module/src/foo/widgets/c.js | test/configCases/resolve/issue-11335-context-module/src/foo/widgets/c.js | export default "foo/widgets/c";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/index.js | test/configCases/resolve/fallback/index.js | it("ignores the fallback if an existing module is present", () => {
const two = require("./b/2");
expect(two).toBe(2);
});
it("can fallback if the module does not exist", () => {
const one = require("./b/1");
expect(one).toBe(1);
});
it("# alias should work", () => {
const one = require("#/a");
expect(one).toBe... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/webpack.config.js | test/configCases/resolve/fallback/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
resolve: {
alias: {
"#": path.resolve(__dirname, "#")
},
fallback: {
"./b": path.resolve(__dirname, "a")
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/a/1.js | test/configCases/resolve/fallback/a/1.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/a/2.js | test/configCases/resolve/fallback/a/2.js | module.exports = 'not 2';
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/#/a.js | test/configCases/resolve/fallback/#/a.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/fallback/b/2.js | test/configCases/resolve/fallback/b/2.js | module.exports = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/resolve/unsafe-cache-proxy/index.js | test/configCases/resolve/unsafe-cache-proxy/index.js | it("should resolve both alternatives", () => {
const one = require("_/1");
const two = require("_/2");
expect(one).toBe(1);
expect(two).toBe(2);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.