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/sharing/provide-shared-with-runtime-chunk/node_modules/x/index.js | test/configCases/sharing/provide-shared-with-runtime-chunk/node_modules/x/index.js | module.exports = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/index.js | test/configCases/sharing/share-plugin/index.js | it("should provide and consume a normal library async", async () => {
expect(await import("lib1")).toEqual(
expect.objectContaining({
default: "lib1"
})
);
});
it("should provide and consume a renamed library sync", () => {
expect(require("lib-two")).toEqual(
expect.objectContaining({
default: "lib2"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/relative1.js | test/configCases/sharing/share-plugin/relative1.js | export default "rel1";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/relative2.js | test/configCases/sharing/share-plugin/relative2.js | export default "rel2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/webpack.config.js | test/configCases/sharing/share-plugin/webpack.config.js | "use strict";
const { SharePlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
devtool: false,
plugins: [
new SharePlugin({
shared: {
lib1: "^1.0.0",
"lib-two": {
import: "lib2",
requiredVersion: "^1.0.0",
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/node_modules/store/index.js | test/configCases/sharing/share-plugin/node_modules/store/index.js | export default "store";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/node_modules/lib3/index.js | test/configCases/sharing/share-plugin/node_modules/lib3/index.js | export default "lib3";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/node_modules/lib2/index.js | test/configCases/sharing/share-plugin/node_modules/lib2/index.js | export default "lib2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin/node_modules/lib1/index.js | test/configCases/sharing/share-plugin/node_modules/lib1/index.js | export default "lib1";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/index.js | test/configCases/sharing/share-multiple-versions/index.js | it("should provide both shared versions, but not the unused one", async () => {
await __webpack_init_sharing__("default");
const { version } = await import("shared");
const { version: versionInner } = await import("my-module");
expect(version).toBe("1.0.0");
expect(versionInner).toBe("2.0.0");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/webpack.config.js | test/configCases/sharing/share-multiple-versions/webpack.config.js | "use strict";
const { SharePlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new SharePlugin({
shared: ["shared"]
})
]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/node_modules/my-module/index.js | test/configCases/sharing/share-multiple-versions/node_modules/my-module/index.js | export * from "shared";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/node_modules/my-module/node_modules/shared/index.js | test/configCases/sharing/share-multiple-versions/node_modules/my-module/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/node_modules/unused-module/node_modules/shared/index.js | test/configCases/sharing/share-multiple-versions/node_modules/unused-module/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-multiple-versions/node_modules/shared/index.js | test/configCases/sharing/share-multiple-versions/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/index.js | test/configCases/sharing/provide-multiple-versions/index.js | import { version } from "shared";
import { version as innerVersion } from "my-module";
it("should provide both shared versions, but not the unused one", async () => {
await __webpack_init_sharing__("default");
expect(Object.keys(__webpack_share_scopes__.default)).toContain("shared");
expect(Object.keys(__webpack_sh... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/webpack.config.js | test/configCases/sharing/provide-multiple-versions/webpack.config.js | "use strict";
const { ProvideSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ProvideSharedPlugin({
provides: ["shared"]
})
]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/node_modules/my-module/index.js | test/configCases/sharing/provide-multiple-versions/node_modules/my-module/index.js | export * from "shared";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/node_modules/my-module/node_modules/shared/index.js | test/configCases/sharing/provide-multiple-versions/node_modules/my-module/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/node_modules/unused-module/node_modules/shared/index.js | test/configCases/sharing/provide-multiple-versions/node_modules/unused-module/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-multiple-versions/node_modules/shared/index.js | test/configCases/sharing/provide-multiple-versions/node_modules/shared/index.js | export * from "./package.json";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-mjs-default-export/index.js | test/configCases/sharing/consume-module-mjs-default-export/index.js | it("should correctly handle default imports in .mjs files from shared modules", async () => {
await __webpack_init_sharing__("default");
const { testDefaultImport } = await import("./pure-esm-consumer.mjs");
const result = testDefaultImport();
expect(result.defaultType).toBe("function");
expect(result.defaultVal... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-mjs-default-export/webpack.config.js | test/configCases/sharing/consume-module-mjs-default-export/webpack.config.js | "use strict";
const { ConsumeSharedPlugin, ProvideSharedPlugin } =
require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
plugins: [
new ProvideSharedPlugin({
provides: {
"shared-esm-pkg": {
version: "1.0.0"
}
}
}),
new ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-mjs-default-export/node_modules/shared-esm-pkg/index.js | test/configCases/sharing/consume-module-mjs-default-export/node_modules/shared-esm-pkg/index.js | export default function sharedFunction() {
return "shared default export";
}
export const namedExport = "shared named export";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/index.js | test/configCases/sharing/consume-module-ignore-warnings/index.js | let warnings = [];
let oldWarn;
beforeEach(done => {
oldWarn = console.warn;
console.warn = m => warnings.push(m);
done();
});
afterEach(done => {
expectWarning();
console.warn = oldWarn;
done();
});
const expectWarning = regexp => {
if (!regexp) {
expect(warnings).toEqual([]);
} else {
expect(warnings).... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/relative1.js | test/configCases/sharing/consume-module-ignore-warnings/relative1.js | module.exports = "relative1";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/relative2.js | test/configCases/sharing/consume-module-ignore-warnings/relative2.js | module.exports = "relative2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js | test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js | "use strict";
const { ConsumeSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "development",
output: {
ignoreBrowserWarnings: true
},
plugins: [
new ConsumeSharedPlugin({
shareScope: "test-scope",
consumes: [
"package",
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/errors.js | test/configCases/sharing/consume-module-ignore-warnings/errors.js | "use strict";
module.exports = [[/prefix\/deep\/c/]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict2.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict2.js | module.exports = "strict";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict0.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict0.js | module.exports = "strict";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/package.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/package.js | module.exports = "package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict1.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict1.js | module.exports = "strict";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/singletonWithoutVersion.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/singletonWithoutVersion.js | module.exports = "singleton without version";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict3.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict3.js | module.exports = "strict";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict4.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/strict4.js | module.exports = "strict";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/singleton.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/singleton.js | module.exports = "singleton";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/@scoped/package/index.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/@scoped/package/index.js | module.exports = "@scoped/package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/prefix/a.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/prefix/a.js | module.exports = "a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-module-ignore-warnings/node_modules/prefix/deep/b.js | test/configCases/sharing/consume-module-ignore-warnings/node_modules/prefix/deep/b.js | module.exports = "b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/no-override-loaded/index.js | test/configCases/sharing/no-override-loaded/index.js | it("should not override an already loaded shared module version", async () => {
__webpack_share_scopes__.default = {
package: {
"1.0.0": {
get: () => () => 42,
loaded: true,
from: "a"
}
}
};
await __webpack_init_sharing__("default");
expect(require("package")).toBe(42);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/no-override-loaded/webpack.config.js | test/configCases/sharing/no-override-loaded/webpack.config.js | "use strict";
const { SharePlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
uniqueName: "b"
},
plugins: [
new SharePlugin({
shared: ["package"]
})
]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/no-override-loaded/node_modules/package/index.js | test/configCases/sharing/no-override-loaded/node_modules/package/index.js | module.exports = "package";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/index.js | test/configCases/sharing/consume-multiple-versions/index.js | const expectWarning = require("../../../helpers/expectWarningFactory")();
it("should be able to consume different shared module version depending on context", async () => {
__webpack_share_scopes__["default"] = {
shared: {
"9.9.9": {
get: () => () => "shared@9.9.9"
},
"1.9.9": {
get: () => () => "s... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/webpack.config.js | test/configCases/sharing/consume-multiple-versions/webpack.config.js | "use strict";
const { ConsumeSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ConsumeSharedPlugin({
consumes: {
shared: {
import: false,
strictVersion: true
},
shared2: {
import: false
},
sh... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/node_modules/my-module2/index.js | test/configCases/sharing/consume-multiple-versions/node_modules/my-module2/index.js | module.exports = require("shared");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/node_modules/my-module/index.js | test/configCases/sharing/consume-multiple-versions/node_modules/my-module/index.js | module.exports = require("shared");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/node_modules/my-module4/index.js | test/configCases/sharing/consume-multiple-versions/node_modules/my-module4/index.js | module.exports = require("shared");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-multiple-versions/node_modules/my-module3/index.js | test/configCases/sharing/consume-multiple-versions/node_modules/my-module3/index.js | module.exports = require("shared");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-eager-module/index.js | test/configCases/sharing/provide-eager-module/index.js | if (Math.random() < 0) {
require("common");
require("uncommon");
}
it("should overwrite non-eager shared module with eager shared module", async () => {
__webpack_require__.S = {
eagerOverrideNonEager: {
common: {
"1.0.0": {
eager: undefined, // any falsy value
from: "dashboard"
}
}
}
}... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-eager-module/webpack.config.js | test/configCases/sharing/provide-eager-module/webpack.config.js | "use strict";
const { ProvideSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../types").Configuration} */
module.exports = {
mode: "development",
plugins: [
new ProvideSharedPlugin({
shareScope: "eagerOverrideNonEager",
provides: {
common: {
shareKey: "common",
ea... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-eager-module/node_modules/uncommon/index.js | test/configCases/sharing/provide-eager-module/node_modules/uncommon/index.js | module.exports = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/provide-eager-module/node_modules/common/index.js | test/configCases/sharing/provide-eager-module/node_modules/common/index.js | module.exports = 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-self-reference/index.js | test/configCases/sharing/consume-self-reference/index.js | it("should be able to consume package self referencing", async () => {
const result = await import("my-middleware");
expect(result.m()).toBe("ABA");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-self-reference/webpack.config.js | test/configCases/sharing/consume-self-reference/webpack.config.js | "use strict";
const { SharePlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new SharePlugin({
shared: {
"my-middleware": {
singleton: true
// import: false
},
"my-module/a": {
singleton: true,
version: "... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-self-reference/node_modules/my-module/b.js | test/configCases/sharing/consume-self-reference/node_modules/my-module/b.js | import { a } from "my-module/a";
export function b() {
return "B" + a();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-self-reference/node_modules/my-module/a.js | test/configCases/sharing/consume-self-reference/node_modules/my-module/a.js | export function a() {
return "A";
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/consume-self-reference/node_modules/my-middleware/index.js | test/configCases/sharing/consume-self-reference/node_modules/my-middleware/index.js | import { a } from "my-module/a";
import { b } from "my-module/b";
export function m() {
return a() + b();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin-monorepo/webpack.config.js | test/configCases/sharing/share-plugin-monorepo/webpack.config.js | "use strict";
const path = require("path");
const { SharePlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
context: path.resolve(__dirname, "./app1"),
plugins: [
new SharePlugin({
shared: {
lib1: {},
lib2: {
singleton: true
}
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin-monorepo/node_modules/lib2/index.js | test/configCases/sharing/share-plugin-monorepo/node_modules/lib2/index.js | import cfg from './package.json' with { type: 'json' };
export default `lib2@${cfg.version}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin-monorepo/node_modules/lib1/index.js | test/configCases/sharing/share-plugin-monorepo/node_modules/lib1/index.js | import cfg from './package.json' with { type: 'json' };
export default `lib1@${cfg.version}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin-monorepo/app1/index.js | test/configCases/sharing/share-plugin-monorepo/app1/index.js | it('should provide library from own package.json', async () => {
expect(await import('lib1')).toEqual(
expect.objectContaining({
default: 'lib1@1.1.1',
}),
);
});
it('should provide library from parent package.json', async () => {
expect(await import('lib2')).toEqual(
expect.objectContaining({
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/sharing/share-plugin-monorepo/app1/node_modules/lib2/index.js | test/configCases/sharing/share-plugin-monorepo/app1/node_modules/lib2/index.js | import cfg from './package.json' with { type: 'json' };
export default `lib2@${cfg.version}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/warnings.js | test/configCases/require/module-require/warnings.js | "use strict";
module.exports = [
/require function is used in a way in which dependencies cannot be statically extracted/,
/createRequire\(\)\.main is not supported by webpack/
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/index.js | test/configCases/require/module-require/index.js | import { createRequire as _createRequire } from "module";
import { createRequire as __createRequire, builtinModules } from "module";
import { createRequire as ___createRequire } from "node:module";
let topLetRequire = _createRequireForVar(import.meta.url);
var topVarRequire = _createRequireForVar(import.meta.url);
imp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/b.js | test/configCases/require/module-require/b.js | module.exports = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/d.js | test/configCases/require/module-require/d.js | module.exports = 4;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/webpack.config.js | test/configCases/require/module-require/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "node",
optimization: {
moduleIds: "named"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/c.js | test/configCases/require/module-require/c.js | module.exports = 3;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/a.js | test/configCases/require/module-require/a.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/foo/c.js | test/configCases/require/module-require/foo/c.js | module.exports = 5;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/require/module-require/foo/a.js | test/configCases/require/module-require/foo/a.js | module.exports = 4;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/bundle2.js | test/configCases/delegated-hash/simple/bundle2.js | module.exports = ["a", "b", "c", "d", "e"];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/warnings.js | test/configCases/delegated-hash/simple/warnings.js | "use strict";
module.exports = [[/hashed/, /deprecated/]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/index.js | test/configCases/delegated-hash/simple/index.js | it("should delegate the modules", function() {
expect(require("./a")).toBe("a");
expect(require("./loader!./b")).toBe("b");
expect(require("./dir/c")).toBe("c");
expect(require("./d")).toBe("d");
expect(require("./e")).toBe("e");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/bundle.js | test/configCases/delegated-hash/simple/bundle.js | module.exports = function(req) {
return ["a", "b", "c"][req];
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/b.js | test/configCases/delegated-hash/simple/b.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/loader.js | test/configCases/delegated-hash/simple/loader.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/d.js | test/configCases/delegated-hash/simple/d.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/e.js | test/configCases/delegated-hash/simple/e.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/webpack.config.js | test/configCases/delegated-hash/simple/webpack.config.js | "use strict";
const DelegatedPlugin = require("../../../../").DelegatedPlugin;
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
moduleIds: "hashed"
},
plugins: [
new DelegatedPlugin({
source: "./bundle",
type: "require",
context: __dirname,
content: {
"./a.... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/a.js | test/configCases/delegated-hash/simple/a.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated-hash/simple/dir/c.js | test/configCases/delegated-hash/simple/dir/c.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/devtool-eval-concatenate-modules/index.js | test/configCases/externals/devtool-eval-concatenate-modules/index.js | import imported from "./imported.mjs";
it("should allow to use externals in concatenated modules", () => {
expect(imported).toBe(1);
});
export { imported } | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/devtool-eval-concatenate-modules/test.config.js | test/configCases/externals/devtool-eval-concatenate-modules/test.config.js | "use strict";
module.exports = {
findBundle() {
return "./main.mjs";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/devtool-eval-concatenate-modules/imported.js | test/configCases/externals/devtool-eval-concatenate-modules/imported.js | export default 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/devtool-eval-concatenate-modules/webpack.config.js | test/configCases/externals/devtool-eval-concatenate-modules/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
devtool: "eval",
module: {
parser: {
javascript: {
importMeta: false
}
}
},
entry: {
main: "./index.js",
imported: {
import: "./imported.js",
library: {
type: "module"
}
}
},
target: "node14... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/optional-externals-root/index.js | test/configCases/externals/optional-externals-root/index.js | it("should not fail on optional externals", function() {
try {
require("external");
} catch(e) {
expect(e).toBeInstanceOf(Error);
expect(e.code).toBe("MODULE_NOT_FOUND");
return;
}
throw new Error("It doesn't fail");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/optional-externals-root/webpack.config.js | test/configCases/externals/optional-externals-root/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
externalsType: "var",
externals: {
external: "external"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/optional-externals-cjs/index.js | test/configCases/externals/optional-externals-cjs/index.js | it("should not fail on optional externals", function() {
try {
require("external");
} catch(e) {
expect(e).toBeInstanceOf(Error);
expect(e.code).toBe("MODULE_NOT_FOUND");
return;
}
throw new Error("It doesn't fail");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/optional-externals-cjs/webpack.config.js | test/configCases/externals/optional-externals-cjs/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
libraryTarget: "commonjs2"
},
externals: {
external: "external"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/export-fn-esm/index.js | test/configCases/externals/export-fn-esm/index.js | import { foo } from "./foo.mjs"
it("Should work with export a function when using CreateFakeNamespaceObjectRuntimeModule", async function(done) {
expect(foo).toBe("foo")
const myModule = await import("module");
// namespace object
expect(typeof myModule).toBe("object");
expect(myModule.builtinModules).toBeDefined... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/export-fn-esm/webpack.config.js | test/configCases/externals/export-fn-esm/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
externals: {
module: "commonjs module",
fs: "commonjs fs"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/global/index.js | test/configCases/externals/global/index.js | afterEach(done => {
delete global.EXTERNAL_TEST_GLOBAL;
done();
});
it("should move externals in chunks into entry chunk", function() {
global.EXTERNAL_TEST_GLOBAL = 42;
// eslint-disable-next-line n/no-missing-require
const result = require("external");
expect(result).toBe(42);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/global/webpack.config.js | test/configCases/externals/global/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
externals: {
external: "global EXTERNAL_TEST_GLOBAL"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/module-import/index.js | test/configCases/externals/module-import/index.js | const fs = require("fs");
const path = require("path");
it("module-import should correctly get fallback type", function() {
const content = fs.readFileSync(path.resolve(__dirname, "a.js"), "utf-8");
expect(content).toContain(`import { default as __WEBPACK_EXTERNAL_MODULE_external0_default__ } from "external0";`); //... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/module-import/test.config.js | test/configCases/externals/module-import/test.config.js | "use strict";
module.exports = {
findBundle: () => ["main.js"]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/module-import/lib-to-concat.js | test/configCases/externals/module-import/lib-to-concat.js | // Trigger concatenation with a.js
export function internalHelper() {
return "internal";
}
export const internalConstant = 100; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/module-import/webpack.config.js | test/configCases/externals/module-import/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
target: ["web", "es2020"],
node: {
__dirname: false,
__filename: false
},
output: {
module: true,
filename: "[name].js"
},
entry: {
a: "./a",
main: "./index"
},
optimization: {
concatenateModules: true,
us... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/externals/module-import/a.js | test/configCases/externals/module-import/a.js | import external0 from "external0"; // module
const external1 = require("external1"); // module
const external2 = require("external2"); // node-commonjs
import external3_1 from "external3"; // module
const external3_2 = import("external3"); // import
// Trigger concatenation
import { internalHelper, internalConstant } ... | 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.