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/runtime/no-runtime-per-entry/webpack.config.js | test/configCases/runtime/no-runtime-per-entry/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
main: {
import: "./index",
runtime: false
}
},
target: "web",
output: {
filename: "[name].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/runtime/opt-in-finally/index.js | test/configCases/runtime/opt-in-finally/index.js | it("should throw exception on every try to load a module", function() {
expect(function() {
require("./exception");
}).toThrow();
expect(function() {
require("./exception");
}).toThrow();
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/opt-in-finally/webpack.config.js | test/configCases/runtime/opt-in-finally/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
strictModuleExceptionHandling: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/opt-in-finally/exception.js | test/configCases/runtime/opt-in-finally/exception.js | throw new Error("Exception");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker/index.js | test/configCases/runtime/target-webworker/index.js | it("should compile and run", () => {
expect(true).toBe(true)
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker/test.config.js | test/configCases/runtime/target-webworker/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./runtime.js", "./main.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker/webpack.config.js | test/configCases/runtime/target-webworker/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
target: "webworker",
devtool: false,
output: {
filename: "[name].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/runtime/module-not-found-error/index.js | test/configCases/runtime/module-not-found-error/index.js | it("should throw helpful error when module is not found at runtime", function () {
// First, require the helper module to get its id
const helper = require("./helper");
expect(helper).toBe("helper");
// Find the module id for helper.js
const moduleId = Object.keys(__webpack_modules__).find(
id => id.includes("h... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/module-not-found-error/webpack.config.js | test/configCases/runtime/module-not-found-error/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
pathinfo: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/module-not-found-error/helper.js | test/configCases/runtime/module-not-found-error/helper.js | module.exports = "helper";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/opt-in-finally2/index.js | test/configCases/runtime/opt-in-finally2/index.js | it("should throw exception on every try to load a module", function() {
expect(function() {
require("./exception");
}).toThrow();
expect(function() {
require("./exception");
}).toThrow();
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/opt-in-finally2/webpack.config.js | test/configCases/runtime/opt-in-finally2/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
strictModuleErrorHandling: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/opt-in-finally2/exception.js | test/configCases/runtime/opt-in-finally2/exception.js | throw new Error("Exception");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/two.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/two.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/one.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/one.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/four.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/four.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"./runtime/one.js",
"./one.js",
"./runtime/dir2/two.js",
"./dir2/two.js",
"./runtime/three.js",
"./three.js",
"./runtime/dir4/four.js",
"./dir4/four.js",
"./runtime/dir5/dir6/five.js",
"./dir5/dir6/five.js",
"./runtime/dir5/di... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/three.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/three.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js"
},
target: ["es2022", "async-node"],
entry: {
one: "./one",
"dir2/two": "./two",
"/three": "./three",
"/dir4/four": "./four",
"/dir5/dir6/five": "./five",
"/dir5/dir6/six": "./six"
},... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/five.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/five.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/six.js | test/configCases/runtime/dynamic-with-deep-entries-commonjs/six.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/invalid-esm-export/index.js | test/configCases/runtime/invalid-esm-export/index.js | it("should throw exception when module.exports is assigned in es module", function() {
expect(function() {
require("./esm-import-cjs-export");
}).toThrow(
'ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ./esm-import-cjs-export.js'
);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/invalid-esm-export/esm-import-cjs-export.js | test/configCases/runtime/invalid-esm-export/esm-import-cjs-export.js | import { foo } from "./esm-export";
module.exports = foo + "bar";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/invalid-esm-export/webpack.config.js | test/configCases/runtime/invalid-esm-export/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/invalid-esm-export/esm-export.js | test/configCases/runtime/invalid-esm-export/esm-export.js | export const foo = "foo";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker-with-dynamic/index.js | test/configCases/runtime/target-webworker-with-dynamic/index.js | it("should compile and run", done => {
expect(true).toBe(true);
import("./async").then(module => {
expect(module.default).toBe("async");
done();
}, done);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker-with-dynamic/test.config.js | test/configCases/runtime/target-webworker-with-dynamic/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./runtime.js", "./main.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker-with-dynamic/async.js | test/configCases/runtime/target-webworker-with-dynamic/async.js | export default "async";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js | test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
target: "webworker",
devtool: false,
output: {
filename: "[name].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/runtime/dynamic-nested-with-deep-entries-esm/two.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/two.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/one.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/one.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/four.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/four.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"./dir5/dir6/runtime~one.mjs",
"./one.mjs",
"./dir5/dir6/runtime~two.mjs",
"./dir2/two.mjs",
"./dir5/dir6/runtime~three.mjs",
"./three.mjs",
"./dir5/dir6/runtime~four.mjs",
"./dir4/four.mjs",
"./dir5/dir6/runtime~five.mjs",
"./di... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/three.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/three.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].mjs",
module: true
},
target: ["es2022", "async-node"],
entry: {
one: "./one",
"dir2/two": "./two",
"/three": "./three",
"/dir4/four": "./four",
"/dir5/dir6/five": "./five",
"/dir5/dir6/... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/five.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/five.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/six.js | test/configCases/runtime/dynamic-nested-with-deep-entries-esm/six.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/two.js | test/configCases/runtime/single-with-deep-entries-commonjs/two.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/one.js | test/configCases/runtime/single-with-deep-entries-commonjs/one.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/four.js | test/configCases/runtime/single-with-deep-entries-commonjs/four.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js | test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"./runtime.js",
"./one.js",
"./dir2/two.js",
"./three.js",
"./dir4/four.js",
"./dir5/dir6/five.js",
"./dir5/dir6/six.js"
];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/three.js | test/configCases/runtime/single-with-deep-entries-commonjs/three.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js | test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js"
},
target: ["es2022", "async-node"],
entry: {
one: "./one",
"dir2/two": "./two",
"/three": "./three",
"/dir4/four": "./four",
"/dir5/dir6/five": "./five",
"/dir5/dir6/six": "./six"
},... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/five.js | test/configCases/runtime/single-with-deep-entries-commonjs/five.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-commonjs/six.js | test/configCases/runtime/single-with-deep-entries-commonjs/six.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/two.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/two.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/one.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/one.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/four.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/four.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"./dir5/dir6/runtime~one.js",
"./one.js",
"./dir5/dir6/runtime~two.js",
"./dir2/two.js",
"./dir5/dir6/runtime~three.js",
"./three.js",
"./dir5/dir6/runtime~four.js",
"./dir4/four.js",
"./dir5/dir6/runtime~five.js",
"./dir5/dir6/f... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/three.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/three.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js"
},
target: ["es2022", "async-node"],
entry: {
one: "./one",
"dir2/two": "./two",
"/three": "./three",
"/dir4/four": "./four",
"/dir5/dir6/five": "./five",
"/dir5/dir6/six": "./six"
},... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/five.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/five.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/six.js | test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/six.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/two.js | test/configCases/runtime/single-with-deep-entries-esm/two.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/one.js | test/configCases/runtime/single-with-deep-entries-esm/one.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/four.js | test/configCases/runtime/single-with-deep-entries-esm/four.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/test.config.js | test/configCases/runtime/single-with-deep-entries-esm/test.config.js | "use strict";
module.exports = {
findBundle() {
return [
"./runtime.mjs",
"./one.mjs",
"./dir2/two.mjs",
"./three.mjs",
"./dir4/four.mjs",
"./dir5/dir6/five.mjs",
"./dir5/dir6/six.mjs"
];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/three.js | test/configCases/runtime/single-with-deep-entries-esm/three.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js | test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].mjs",
module: true
},
target: ["es2022", "async-node"],
entry: {
one: "./one",
"dir2/two": "./two",
"/three": "./three",
"/dir4/four": "./four",
"/dir5/dir6/five": "./five",
"/dir5/dir6/... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/five.js | test/configCases/runtime/single-with-deep-entries-esm/five.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/single-with-deep-entries-esm/six.js | test/configCases/runtime/single-with-deep-entries-esm/six.js | it("should compile", () => {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/main.js | test/configCases/runtime/entries-in-runtime/main.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/index.js | test/configCases/runtime/entries-in-runtime/index.js | import path from "path";
import fs from "fs";
it("should not have references to chunks of unrelated entrypoints in runtime", () => {
const content = fs.readFileSync(
path.resolve(__dirname, "runtime.js"),
"utf-8"
);
expect(content).not.toContain("other-entry");
expect(content).not.toContain("split");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/other-entry.js | test/configCases/runtime/entries-in-runtime/other-entry.js | import "./split";
import("./async");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/test.config.js | test/configCases/runtime/entries-in-runtime/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./runtime.js", "./main.js", "./first-entry.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/async.js | test/configCases/runtime/entries-in-runtime/async.js | console.log("split");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/webpack.config.js | test/configCases/runtime/entries-in-runtime/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "production",
entry: {
main: "./main",
"first-entry": {
dependOn: "main",
import: "./index"
},
"other-entry": {
dependOn: "main",
import: "./other-entry"
}
},
target: "web",
node: {
__dirname: false,... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/runtime/entries-in-runtime/split.js | test/configCases/runtime/entries-in-runtime/split.js | console.log("split");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/1.js | test/configCases/defer-import/defer-but-sync-order/1.js | import "./0.js";
import * as ns from "./deferred.js";
export const x = ns;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/0.js | test/configCases/defer-import/defer-but-sync-order/0.js | import { data, setData } from "./side-effect-counter";
if (data !== undefined)
throw new Error("No module should be executed before this one.");
setData("0.js");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/index.js | test/configCases/defer-import/defer-but-sync-order/index.js | it("execution order should be correct.", () => {
return import("./entry.js");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/deferred.js | test/configCases/defer-import/defer-but-sync-order/deferred.js | import { data, setData } from "./side-effect-counter";
if (data !== "0.js") throw new Error("Expected 0.js to be executed first.");
setData("deferred");
export {};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/entry.js | test/configCases/defer-import/defer-but-sync-order/entry.js | import * as ns from /* webpackDefer: true */ "./deferred.js";
import "./1.js";
if (Math.random() > 1) {
console.log(ns);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/webpack.config.js | test/configCases/defer-import/defer-but-sync-order/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-but-sync-order/side-effect-counter.js | test/configCases/defer-import/defer-but-sync-order/side-effect-counter.js | export let data;
export function setData(d) {
data = d;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-strict/webpack.config.js | test/configCases/defer-import/defer-runtime-strict/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all.js"],
optimization: {
concatenateModules: false
},
module: {
rules: [
{
test: /index\.js/,
type: "javascript/e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/1.js | test/configCases/defer-import/defer-then-non-defer/1.js | import './deferred.js';
import { order } from './order.js';
order.push(1);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/0.js | test/configCases/defer-import/defer-then-non-defer/0.js | import * as deferred from /* webpackDefer: true */ './deferred.js';
import { order } from './order.js';
order.push([0, deferred][0]);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/deferred.1.js | test/configCases/defer-import/defer-then-non-defer/deferred.1.js | import { order } from "./order";
order.push("deferred.1");
export function then() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/index.js | test/configCases/defer-import/defer-then-non-defer/index.js | it("execution order should be correct.", () => {
return import("./entry.js");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/b.js | test/configCases/defer-import/defer-then-non-defer/b.js | import * as ns from './deferred.1.js';
import { order } from './order.js';
order.push(['b', ns][0]);
if (typeof avoidAnalyze(ns).then === 'undefined') {
throw new Error('ns should not be a deferred namespace object.');
}
function avoidAnalyze(params) {
return params;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/order.js | test/configCases/defer-import/defer-then-non-defer/order.js | export const order = [];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/deferred.js | test/configCases/defer-import/defer-then-non-defer/deferred.js | import { order } from "./order";
order.push("deferred");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/entry.js | test/configCases/defer-import/defer-then-non-defer/entry.js | import { order } from "./order";
import './0.js';
import './1.js';
import './a.js';
import './b.js';
import { next } from "./a.js";
const expected = "0 deferred 1 a deferred.1 b";
if (order.join(' ') !== expected) {
throw new Error(
`Expected order to be "${expected}", but got "${order.join(' ')}"`
);
}
next();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/webpack.config.js | test/configCases/defer-import/defer-then-non-defer/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
optimization: {
concatenateModules: true
},
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-then-non-defer/a.js | test/configCases/defer-import/defer-then-non-defer/a.js | import * as deferred from /* webpackDefer: true */ './deferred.1.js';
import { order } from './order.js';
order.push(['a', deferred][0]);
export function next() {
if (typeof avoidAnalyze(deferred).then !== 'undefined') {
throw new Error('deferred should be a deferred namespace object.');
}
}
function avoidAnalyze(... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph-dynamic-import/index.js | test/configCases/defer-import/async-in-graph-dynamic-import/index.js | it("should compile", async () => {
const logs = global.__configCases__deferImport__proposal = [];
let mod = import("./entry.js");
expect(mod).toBeInstanceOf(Promise);
let { default: namespaces } = await mod;
expect(logs).toEqual([
"START async-mod-dep.js",
"END async-mod-dep.js",
"START async-mod.js",
"... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph-dynamic-import/entry.js | test/configCases/defer-import/async-in-graph-dynamic-import/entry.js | const fullSync = await import(/* webpackDefer: true */ "../async-in-graph/full-sync.js");
const asyncMod = await import(/* webpackDefer: true */ "../async-in-graph/async-mod.js");
const deepAsync = await import(/* webpackDefer: true */ "../async-in-graph/deep-async.js");
const reexportAsync = await import(/* webpackDef... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph-dynamic-import/webpack.config.js | test/configCases/defer-import/async-in-graph-dynamic-import/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
mode: "none",
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-dynamic-import-native-syntax/webpack.config.js | test/configCases/defer-import/defer-runtime-dynamic-import-native-syntax/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all-dynamic-import-native-syntax.js"],
optimization: {
concatenateModules: false
},
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js | test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
entry: ["../defer-runtime/all-native-syntax.js"],
optimization: {
concatenateModules: false
},
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/comment-error/mod.js | test/configCases/defer-import/comment-error/mod.js | export function f() {}
export default function f2() {}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/comment-error/index.js | test/configCases/defer-import/comment-error/index.js | import { f } from /* webpackDefer: true */ "./mod.js"; // error
import f2 from /* webpackDefer: true */ "./mod.js"; // error
import * as f3 from /* webpackDefer: true */ "./mod.js";
import f4, { f as f5 } from /* webpackDefer: true */ "./mod.js"; // error
export * as f4 from /* webpackDefer: true */ "./mod.js"; // er... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/comment-error/webpack.config.js | test/configCases/defer-import/comment-error/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
deferImport: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/comment-error/errors.js | test/configCases/defer-import/comment-error/errors.js | "use strict";
module.exports = [
[/used with `import \* as namespace from '...'`/],
[/used with `import \* as namespace from '...'`/],
[/used with `import \* as namespace from '...'`/],
[/is not a part of the Import Defer proposal/],
[/is not a part of the Import Defer proposal/]
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-used-in-async/index.js | test/configCases/defer-import/defer-used-in-async/index.js | it("execution order should be correct.", () => {
return import("./entry.js");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-used-in-async/sync-access.js | test/configCases/defer-import/defer-used-in-async/sync-access.js | import * as ns from "./deferred.js";
import { data } from "./side-effect-counter.js";
if (data !== "deferred")
throw new Error("Expected deferred.js to be executed first.");
Object.entries(ns);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-used-in-async/deferred.js | test/configCases/defer-import/defer-used-in-async/deferred.js | import { data, setData } from "./side-effect-counter";
if (data !== "entry")
throw new Error("Expected entry.js to be executed first.");
setData("deferred");
export {};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-used-in-async/entry.js | test/configCases/defer-import/defer-used-in-async/entry.js | import * as ns from /* webpackDefer: true */ "./deferred.js";
import { data, setData } from "./side-effect-counter.js";
if (data !== undefined)
throw new Error("No side effect should be trigger before this.");
setData("entry");
await import("./sync-access.js");
if (Math.random() > 1) {
console.log(ns);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-used-in-async/webpack.config.js | test/configCases/defer-import/defer-used-in-async/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: [`async-node${process.versions.node.split(".").map(Number)[0]}`],
experiments: {
deferImport: true
}
};
| 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.