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/split-chunks/entry-point-error/module.js | test/configCases/split-chunks/entry-point-error/module.js | export default "module";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/index.js | test/configCases/split-chunks/incorrect-chunk-reuse/index.js | it("should find all modules", function() {
return Promise.all([
import(/* webpackChunkName: "a" */ "./a"), // has 3 modules (1 into x, 1 into y)
import(/* webpackChunkName: "b" */ "./b"), // has 2 modules (1 into y)
import(/* webpackChunkName: "c" */ "./c"), // has 2 modules (1 into y)
])
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/b.js | test/configCases/split-chunks/incorrect-chunk-reuse/b.js | import "./y/2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js | test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
optimization: {
splitChunks: {
cacheGroups: {
x: {
test: path.resolve(__dirname, "x"),
name: "x",
priority: 2,
enforce: true
},
y: {
test: pa... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/c.js | test/configCases/split-chunks/incorrect-chunk-reuse/c.js | import "./y/3";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/a.js | test/configCases/split-chunks/incorrect-chunk-reuse/a.js | import "./x/1";
import "./y/1";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/y/1.js | test/configCases/split-chunks/incorrect-chunk-reuse/y/1.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/y/3.js | test/configCases/split-chunks/incorrect-chunk-reuse/y/3.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/y/2.js | test/configCases/split-chunks/incorrect-chunk-reuse/y/2.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/incorrect-chunk-reuse/x/1.js | test/configCases/split-chunks/incorrect-chunk-reuse/x/1.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/b.js | test/configCases/split-chunks/runtime-chunk-async-node/b.js | import { setValue } from "./shared?1";
import { setValue as setValue2 } from "./shared?2";
setValue(42);
setValue2(24);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/test.config.js | test/configCases/split-chunks/runtime-chunk-async-node/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["b.js", "deep/path/a.js", "somewhere/c.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js | test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
"deep/path/a": "./a",
b: ["./shared?1", "./shared?2", "./b"],
"somewhere/c": "./c"
},
target: "async-node",
output: {
filename: "[name].js",
library: {
type: "commonjs-module"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/c.js | test/configCases/split-chunks/runtime-chunk-async-node/c.js | beforeEach(done => {
global.it = it;
done();
});
afterEach(done => {
delete global.it;
done();
});
it("should be able to load the other entry on demand", () => import("./a"));
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/shared.js | test/configCases/split-chunks/runtime-chunk-async-node/shared.js | export let value = 0;
export function setValue(v) {
value = v;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-async-node/a.js | test/configCases/split-chunks/runtime-chunk-async-node/a.js | import { value } from "./shared?1";
it("should share the instance with the other entry point", () => {
expect(value).toBe(42);
});
it("should be able to load the shared instance on demand", () =>
import(/* webpackChunkName: "shared" */ "./shared?2").then(({ value }) => {
expect(value).toBe(24);
}));
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/index.js | test/configCases/split-chunks/chunk-filename-delimiter/index.js | it("should run", function () {
const files = require("fs").readdirSync(__dirname);
expect(files).toContain("a.bundle.js");
expect(files).toContain("b---b_js---c441f481.bundle.js");
return Promise.all([
import(/* webpackChunkName: "a" */ "./a"),
import(/* webpackChunkName: "b" */ "./b")
]);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/b.js | test/configCases/split-chunks/chunk-filename-delimiter/b.js | const c = require("./commons");
require("./c");
module.exports = "b" + c;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/test.config.js | test/configCases/split-chunks/chunk-filename-delimiter/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/split-chunks/chunk-filename-delimiter/webpack.config.js | test/configCases/split-chunks/chunk-filename-delimiter/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
entry: {
main: "./index"
},
node: {
__dirname: false,
__filename: false
},
output: {
filename: "[name].js",
chunkFilename: "[name].bundle.js",
chunkLoadingGlobal: "_load_chunk"
},
optimization:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/c.js | test/configCases/split-chunks/chunk-filename-delimiter/c.js | const c = require("./commons");
module.exports = "c" + c;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/a.js | test/configCases/split-chunks/chunk-filename-delimiter/a.js | const c = require("./commons");
module.exports = "a" + c;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/chunk-filename-delimiter/commons.js | test/configCases/split-chunks/chunk-filename-delimiter/commons.js |
module.exports = "commons";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/index.js | test/configCases/split-chunks/issue-8908/index.js | it("should run", function() {
var a = require("./a");
expect(a).toBe("a");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/b.js | test/configCases/split-chunks/issue-8908/b.js | require("./vendor/vendor-b");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/test.config.js | test/configCases/split-chunks/issue-8908/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["runtime.js", "vendor-a.js", "a.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/webpack.config.js | test/configCases/split-chunks/issue-8908/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
a: "./a",
b: "./b"
},
target: "web",
output: {
filename: "[name].js"
},
optimization: {
splitChunks: {
chunks: "initial",
cacheGroups: {
a: {
test: /vendor-a/,
name: "vendor-a",
enforce:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/a.js | test/configCases/split-chunks/issue-8908/a.js | require("./vendor/vendor-a");
it("should run", () => {}); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/vendor/vendor-b.js | test/configCases/split-chunks/issue-8908/vendor/vendor-b.js | require("./vendor-a");
module.exports = "vendor-b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/issue-8908/vendor/vendor-a.js | test/configCases/split-chunks/issue-8908/vendor/vendor-a.js | module.exports ="vendor-a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-no-async/index.js | test/configCases/split-chunks/runtime-chunk-no-async/index.js | it("should compile and evaluate fine", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-no-async/test.config.js | test/configCases/split-chunks/runtime-chunk-no-async/test.config.js | "use strict";
const fs = require("fs");
module.exports = {
findBundle(i, options) {
const files = fs.readdirSync(options.output.path);
return ["runtime.js", files.find((f) => f.startsWith("main"))];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js | test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
main: "./index"
},
target: "web",
output: {
filename: "[name].js",
chunkFilename: "main.[contenthash:8].js"
},
optimization: {
runtimeChunk: "single"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7339/test.js | test/configCases/records/issue-7339/test.js | function loadDependency(dep) {
require("./dependencies/" + dep);
}
it("should write relative dynamic-require paths to records", function() {
var fs = require("fs");
var path = require("path");
var content = fs.readFileSync(path.join(__dirname, "records.json"), "utf-8");
expect(JSON.parse(content)).toMatchObject(... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7339/webpack.config.js | test/configCases/records/issue-7339/webpack.config.js | "use strict";
const path = require("path");
/** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */
module.exports = (env, { testPath }) => ({
entry: "./test",
recordsOutputPath: path.resolve(testPath, "records.json"),
target: "node",
node: {
__dirname: false
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7339/dependencies/bar.js | test/configCases/records/issue-7339/dependencies/bar.js | module.exports = "Bar" | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7339/dependencies/foo.js | test/configCases/records/issue-7339/dependencies/foo.js | module.exports = "Foo" | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/stable-sort/test.js | test/configCases/records/stable-sort/test.js | require.ensure([], function(require) {
require('./split.js')
})
require.ensure([], function(require) {
require('./split-2.js')
}, "split")
it("sorts the usedIds array to prevent churn", function() {
var fs = require("fs");
var path = require("path");
var records = JSON.parse(fs.readFileSync(path.join(__dirname, ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/stable-sort/webpack.config.js | test/configCases/records/stable-sort/webpack.config.js | "use strict";
const path = require("path");
/** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */
module.exports = (env, { testPath }) => ({
mode: "development",
entry: "./test",
recordsOutputPath: path.resolve(testPath, "records.json"),
optimization: {
chunkIds: "size"
},
ta... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/stable-sort/split-2.js | test/configCases/records/stable-sort/split-2.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/stable-sort/split.js | test/configCases/records/stable-sort/split.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/with-readRecords-hook/ReadRecordsPlugin.js | test/configCases/records/with-readRecords-hook/ReadRecordsPlugin.js | /** @typedef {import("../../../../").Compiler} Compiler */
class ReadRecordsPlugin {
/**
* @param {Compiler} compiler compiler
*/
apply(compiler) {
compiler.hooks.readRecords.tapAsync("ReadRecordsPlugin", callback => {
setTimeout(() => {
callback();
}, 1000);
});
}
}
module.exports = ReadRecordsP... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/with-readRecords-hook/index.js | test/configCases/records/with-readRecords-hook/index.js | it("should load fine", () => {
return import(/* webpackChunkName: "async" */"./async");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/with-readRecords-hook/async.js | test/configCases/records/with-readRecords-hook/async.js | import "vendor";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/with-readRecords-hook/webpack.config.js | test/configCases/records/with-readRecords-hook/webpack.config.js | "use strict";
const path = require("path");
const ReadRecordsPlugin = require("./ReadRecordsPlugin");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
recordsInputPath: path.resolve(__dirname, "records.json"),
output: {
chunkFilename: "[name]-[chunkhash].js"
},
plugins: ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/with-readRecords-hook/node_modules/vendor.js | test/configCases/records/with-readRecords-hook/node_modules/vendor.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7492/index.js | test/configCases/records/issue-7492/index.js | it("should load fine", () => {
return import(/* webpackChunkName: "async" */"./async");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7492/async.js | test/configCases/records/issue-7492/async.js | import "vendor";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7492/webpack.config.js | test/configCases/records/issue-7492/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
recordsInputPath: path.resolve(__dirname, "records.json"),
output: {
chunkFilename: "[name]-[chunkhash].js"
},
optimization: {
splitChunks: {
minSize: 0
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-7492/node_modules/vendor.js | test/configCases/records/issue-7492/node_modules/vendor.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-295/loader.js | test/configCases/records/issue-295/loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function (source) {
return source;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-295/test.js | test/configCases/records/issue-295/test.js | require("./loader!./file");
require("./loader?2!./file");
it("should write relative paths to records", function() {
var fs = require("fs");
var path = require("path");
var content = fs.readFileSync(path.join(__dirname, "records.json"), "utf-8");
expect(content).not.toMatch(/webpack|issue/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-295/webpack.config.js | test/configCases/records/issue-295/webpack.config.js | "use strict";
const path = require("path");
/** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */
module.exports = (env, { testPath }) => ({
entry: "./test",
recordsPath: path.resolve(testPath, "records.json"),
target: "node",
node: {
__dirname: false
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-295/file.js | test/configCases/records/issue-295/file.js | // just a file | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-2991/test.js | test/configCases/records/issue-2991/test.js | try {
require("pkgs/somepackage/foo");
} catch (e) {}
it("should write relative paths to records", function() {
var fs = require("fs");
var path = require("path");
var content = fs.readFileSync(path.join(__dirname, "records.json"), "utf-8");
expect(JSON.parse(content)).toMatchObject({
chunks: {
byName: {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/records/issue-2991/webpack.config.js | test/configCases/records/issue-2991/webpack.config.js | "use strict";
const path = require("path");
/** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */
module.exports = (env, { testPath }) => ({
entry: "./test",
recordsOutputPath: path.resolve(testPath, "records.json"),
target: "node",
node: {
__dirname: false
},
resolve: {
al... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-global/index.js | test/configCases/web/node-source-global/index.js | it("should disallow rename global", () => {
var shouldBeGlobal = global;
// prevent optimizations
var method = shouldBeGlobal[String.fromCharCode(40, 40, 40)];
method && method();
eval("expect(shouldBeGlobal.value1).toBe('value1')");
expect(shouldBeGlobal.test).toBe("test");
expect(global.test).toBe("test");
});... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-global/test.config.js | test/configCases/web/node-source-global/test.config.js | "use strict";
module.exports = {
moduleScope(scope) {
scope.global = scope.global || {};
scope.global.value1 = "error";
scope.globalThis = scope.globalThis || {};
scope.globalThis.value1 = "value1";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-global/webpack.config.js | test/configCases/web/node-source-global/webpack.config.js | "use strict";
const { DefinePlugin } = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
node: {
global: true
},
plugins: [
new DefinePlugin({
"global.test": "'test'"
})
]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-split-chunks/chunk1.js | test/configCases/web/prefetch-split-chunks/chunk1.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-split-chunks/index.js | test/configCases/web/prefetch-split-chunks/index.js | import "./public-path";
it("should prefetch correctly", () => {
expect(document.head._children).toHaveLength(1);
// Test prefetch from entry chunk
const link = document.head._children[0];
expect(link._type).toBe("link");
expect(link.rel).toBe("prefetch");
expect(link.href).toBe("https://example.com/public/path/... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-split-chunks/public-path.js | test/configCases/web/prefetch-split-chunks/public-path.js | __webpack_public_path__ = "https://example.com/public/path/";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-split-chunks/test.config.js | test/configCases/web/prefetch-split-chunks/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["main.js", "runtime~main.js", "separate-public-path_js.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-split-chunks/webpack.config.js | test/configCases/web/prefetch-split-chunks/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
filename: "[name].js",
chunkFilename: "[name].js",
crossOriginLoading: "anonymous"
},
performance: {
hints: false
},
optimization: {
minimize: false,
chunkIds: "named",
splitChunks: {
ca... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/chunk1.js | test/configCases/web/prefetch-preload-module-jsonp/chunk1.js | export default function() {
import(/* webpackPrefetch: true, webpackChunkName: "chunk1-a" */ "./chunk1-a");
import(/* webpackPreload: true, webpackChunkName: "chunk1-b" */ "./chunk1-b");
import(/* webpackPreload: true, webpackChunkName: "chunk1-a-css" */ "./chunk1-a.css");
import(/* webpackPrefetch: 10, webpackChun... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/chunk1-a.js | test/configCases/web/prefetch-preload-module-jsonp/chunk1-a.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/chunk1-c.js | test/configCases/web/prefetch-preload-module-jsonp/chunk1-c.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/chunk1-b.js | test/configCases/web/prefetch-preload-module-jsonp/chunk1-b.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/chunk2.js | test/configCases/web/prefetch-preload-module-jsonp/chunk2.js | export default function() {
import(/* webpackPrefetch: true, webpackChunkName: "chunk1-a" */ "./chunk1-a");
import(/* webpackPreload: true, webpackChunkName: "chunk1-b" */ "./chunk1-b");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js | test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index.mjs",
experiments: {
outputModule: true,
css: true
},
name: "esm",
target: "web",
output: {
publicPath: "",
module: true,
filename: "bundle0.mjs",
chunkFilename: "[name].js",
crossOriginLoading: "an... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/nonce/index.js | test/configCases/web/nonce/index.js | import "./nonce";
it("should set nonce", () => {
expect(__webpack_nonce__).toBe("nonce");
});
it("should set nonce attributes", () => {
import(/* webpackChunkName: "chunk-js" */ "./chunk.js");
__non_webpack_require__('./chunk-js.js');
expect(document.head._children).toHaveLength(1);
const script = document.hea... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/nonce/nonce.js | test/configCases/web/nonce/nonce.js | __webpack_nonce__ = "nonce";
__webpack_public_path__ = "https://example.com/";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/nonce/chunk.js | test/configCases/web/nonce/chunk.js | function test() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/nonce/webpack.config.js | test/configCases/web/nonce/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
publicPath: "",
filename: "bundle0.mjs",
chunkFilename: "[name].js"
},
experiments: {
css: true
},
// plugin that intercepts __webpack_require__
plugins... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/index.js | test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/index.js | import p from "package";
import o from "other-package";
it("should run", () => {
console.log.bind(console, p, o);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js | test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"runtime.js",
"main.js",
"vendors-node_modules_other-package_index_js-node_modules_package_index_js.js"
];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js | test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js | "use strict";
const { ProvideSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js"
},
target: "web",
optimization: {
chunkIds: "named",
runtimeChunk: "single",
splitChunks: {
chunks: "all",
minSize: 1,... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/node_modules/package/index.js | test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/node_modules/package/index.js | export default "package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/node_modules/other-package/index.js | test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/node_modules/other-package/index.js | export default "other-package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-future-defaults/warnings.js | test/configCases/web/node-source-future-defaults/warnings.js | "use strict";
module.exports = [
[/"global" has been used, it will be undefined in next major version/],
[/"__filename" has been used, it will be undefined in next major version/],
[/"__dirname" has been used, it will be undefined in next major version/],
[/"global" has been used, it will be undefined in next maj... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-future-defaults/index.js | test/configCases/web/node-source-future-defaults/index.js | import "./no-warn"
it("global", () => {
expect(typeof global).toBe("object");
});
it("__filename", () => {
expect(typeof __filename).toBe("string");
});
it("__dirname", () => {
expect(typeof __dirname).toBe("string");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-future-defaults/no-warn.js | test/configCases/web/node-source-future-defaults/no-warn.js | // top level global as identifier should not warn
let global = 1;
global = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/node-source-future-defaults/webpack.config.js | test/configCases/web/node-source-future-defaults/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
target: "web",
optimization: false,
experiments: {
futureDefaults: true
}
},
{
target: "web",
optimization: false,
node: {
__filename: "mock",
__dirname: "mock",
global: "warn"
}
},
{
target: "we... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload-module/webpack.config.js | test/configCases/web/prefetch-preload-module/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index.mjs",
experiments: {
outputModule: true,
css: true
},
name: "esm",
target: "web",
output: {
publicPath: "",
module: true,
filename: "bundle0.mjs",
chunkFilename: "[name].mjs",
chunkFormat: "module",... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint/index.js | test/configCases/web/non-js-chunks-entrypoint/index.js | import p from "package";
import o from "other-package";
it("should run", () => {
console.log.bind(console, p, o);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint/test.config.js | test/configCases/web/non-js-chunks-entrypoint/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"main.js",
"vendors-node_modules_other-package_index_js-node_modules_package_index_js.js"
];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint/webpack.config.js | test/configCases/web/non-js-chunks-entrypoint/webpack.config.js | "use strict";
const { ProvideSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js"
},
target: "web",
optimization: {
chunkIds: "named",
splitChunks: {
chunks: "all",
minSize: 1,
cacheGroups: {
sha... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint/node_modules/package/index.js | test/configCases/web/non-js-chunks-entrypoint/node_modules/package/index.js | export default "package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/non-js-chunks-entrypoint/node_modules/other-package/index.js | test/configCases/web/non-js-chunks-entrypoint/node_modules/other-package/index.js | export default "other-package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/d3.js | test/configCases/web/fetch-priority-2/d3.js | export default "d3";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/index.js | test/configCases/web/fetch-priority-2/index.js | it("should set fetchPriority", async () => {
import(/* webpackFetchPriority: "high" */ "./a");
__non_webpack_require__("./a_js.js");
expect(document.head._children).toHaveLength(4);
const script1 = document.head._children[2];
expect(script1._attributes.fetchpriority).toBe("high");
import(/* webpackFetchPriority:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/b.js | test/configCases/web/fetch-priority-2/b.js | export default "b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/d1.js | test/configCases/web/fetch-priority-2/d1.js | export default function test() {
import("./d2");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/d.js | test/configCases/web/fetch-priority-2/d.js | export default function test() {
import("./d1");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/e.js | test/configCases/web/fetch-priority-2/e.js | export default "e";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/webpack.config.js | test/configCases/web/fetch-priority-2/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
chunkFilename: "[name].js",
crossOriginLoading: "anonymous"
},
optimization: {
chunkIds: "named",
minimize: false,
splitChunks: {
minSize: 1
}
},
module: {
rules: [
{
test: /d\.js... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/c.js | test/configCases/web/fetch-priority-2/c.js | export default "c";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/d2.js | test/configCases/web/fetch-priority-2/d2.js | export default function test() {
import(/* webpackFetchPriority: "high" */ "./d3");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/fetch-priority-2/a.js | test/configCases/web/fetch-priority-2/a.js | export default function() {
import(/* webpackPrefetch: true */ "./a");
import(/* webpackPreload: true */ "./b");
import(/* webpackPrefetch: 10, webpackFetchPriority: "low" */ "./c");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/web/prefetch-preload/chunk1.js | test/configCases/web/prefetch-preload/chunk1.js | export default function() {
import(/* webpackPrefetch: true, webpackChunkName: "chunk1-a" */ "./chunk1-a");
import(/* webpackPreload: true, webpackChunkName: "chunk1-b" */ "./chunk1-b");
import(/* webpackPreload: true, webpackChunkName: "chunk1-a-css" */ "./chunk1-a.css");
import(/* webpackPrefetch: 10, webpackChun... | 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.