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/container/reference-hoisting/upgrade-react.js | test/configCases/container/reference-hoisting/upgrade-react.js | import { setVersion } from "react";
export default function upgrade() {
setVersion("1.2.3");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/reference-hoisting/node_modules/react.js | test/configCases/container/reference-hoisting/node_modules/react.js | let version = "0.1.2";
export default () => `This is react ${version}`;
export function setVersion(v) { version = v; }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/2-container-full/Self.js | test/configCases/container/2-container-full/Self.js | export default {
in: __filename
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/2-container-full/index.js | test/configCases/container/2-container-full/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/container/2-container-full/App.js | test/configCases/container/2-container-full/App.js | import OldReact from "old-react";
import OldReactSingleton from "old-react-singleton";
import React from "react";
import ComponentC from "containerB/ComponentC";
export default () => {
return `App rendered with [${React()}] and [${OldReact()}] and [${OldReactSingleton()}] and [${ComponentC()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/2-container-full/webpack.config.js | test/configCases/container/2-container-full/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
uniqueName: "2-container-full"
},
plugins: [
new ModuleFederationPlugin({
name: "main",
library: { type: "commonjs-module" },
remotes: {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/2-container-full/upgrade-react.js | test/configCases/container/2-container-full/upgrade-react.js | import { setVersion } from "react";
export default function upgrade() {
setVersion("9");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/2-container-full/node_modules/react.js | test/configCases/container/2-container-full/node_modules/react.js | let version = "8";
export default () => `This is react ${version}`;
export function setVersion(v) { version = v; }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry-overridables/index.js | test/configCases/container/container-entry-overridables/index.js | it("should expose modules from the container", async () => {
const container = __non_webpack_require__("./container-file.js");
expect(container).toBeTypeOf("object");
expect(container.init).toBeTypeOf("function");
container.init({
value: {
"0": {
get: () =>
new Promise(resolve => {
setTimeout(()... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry-overridables/test.js | test/configCases/container/container-entry-overridables/test.js | import value from "./value";
export default `test ${value}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry-overridables/value.js | test/configCases/container/container-entry-overridables/value.js | export default "value";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry-overridables/webpack.config.js | test/configCases/container/container-entry-overridables/webpack.config.js | "use strict";
const { ContainerPlugin } = require("../../../../").container;
const { ConsumeSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ContainerPlugin({
name: "container",
filename: "container-file.js",
library: {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference/index.js | test/configCases/container/container-reference/index.js | it("should import the correct modules", () => {
return import("./module").then(({ test }) => test());
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference/test.config.js | test/configCases/container/container-reference/test.config.js | "use strict";
module.exports = {
moduleScope(scope) {
scope.ABC = {
get(module) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(() => `abc ${module}`);
}, 100);
});
}
};
scope.DEF = {
get(module) {
return new Promise((resolve) => {
setTimeout(() => {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference/webpack.config.js | test/configCases/container/container-reference/webpack.config.js | "use strict";
const { ContainerReferencePlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ContainerReferencePlugin({
remoteType: "var",
remotes: {
abc: "ABC",
def: "DEF"
}
})
]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference/module.js | test/configCases/container/container-reference/module.js | import abc from "abc/hello-world";
import main from "abc";
import def, { module } from "def/hello-world";
import def2, { module as module2 } from "def/hello/other/world";
export function test() {
expect(abc).toBe("abc ./hello-world");
expect(main).toBe("abc .");
expect(def).toBe("def");
expect(def2).toBe("def");
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/circular/index.js | test/configCases/container/circular/index.js | it("should allow circular dependencies between containers (a)", async () => {
const { default: value, b, ba } = await import("container/a");
expect(value).toBe("a");
expect(b).toBe("b");
expect(ba).toBe("a");
});
it("should allow circular dependencies between containers (b)", async () => {
const { default: value,... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/circular/b.js | test/configCases/container/circular/b.js | export default "b";
export { default as a, b as ab } from "container/a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/circular/test.config.js | test/configCases/container/circular/test.config.js | "use strict";
module.exports = {
findBundle() {
return "./main.js";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/circular/webpack.config.js | test/configCases/container/circular/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/**
* @returns {import("../../../../").Configuration} configuration
*/
function createConfig() {
return {
output: {
filename: "[name].js"
},
plugins: [
new ModuleFederationPlugin({
name: "container",
library: { ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/circular/a.js | test/configCases/container/circular/a.js | export default "a";
export { default as b, a as ba } from "container2/b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/exposed-overridables/index.js | test/configCases/container/exposed-overridables/index.js | it("should allow to import exposed modules sync", () => {
const { default: App } = require("./App");
expect(App()).toBe("ButtonReactReact");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/exposed-overridables/Button.js | test/configCases/container/exposed-overridables/Button.js | import React from "react";
const Button = () => "Button" + React;
export default Button;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/exposed-overridables/App.js | test/configCases/container/exposed-overridables/App.js | import LocalButton from "./Button";
import React from "react";
function App() {
return LocalButton() + React;
}
export default App;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/exposed-overridables/webpack.config.js | test/configCases/container/exposed-overridables/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ModuleFederationPlugin({
name: "container",
filename: "container.js",
exposes: {
"./Button": "./Button"
},
shared: {
react... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/exposed-overridables/node_modules/react.js | test/configCases/container/exposed-overridables/node_modules/react.js | export default "React";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/index.js | test/configCases/container/module-federation/index.js | it("should import the correct modules", () => {
return import("./module").then(({ test }) => test());
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/test.config.js | test/configCases/container/module-federation/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
System.setRequire(scope.require);
scope.System = System;
System.set("ABC", {
get(module) {
return new Promise((resolve) => {
setTimeout(() => {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/other.js | test/configCases/container/module-federation/other.js | import andBack from "other/dep";
export default `other and ${andBack}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/webpack.config.js | test/configCases/container/module-federation/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/**
* @returns {import("../../../../").Configuration} configuration
*/
function createConfig() {
return {
output: {
libraryTarget: "system"
},
plugins: [
new ModuleFederationPlugin({
name: "container",
filename:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/self.js | test/configCases/container/module-federation/self.js | import andBack from "self/dep";
export default `self and ${andBack}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/dep.js | test/configCases/container/module-federation/dep.js | module.exports = "dep";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation/module.js | test/configCases/container/module-federation/module.js | import abc from "abc/system-hello-world";
import def, { module } from "def/system-hello-world";
import def2, { module as module2 } from "def/system-hello/other/world";
import other from "other/other";
import otherSelf from "other/self";
import self from "self/self";
import selfOther from "self/other";
export function ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/eager-shared/index.js | test/configCases/container/eager-shared/index.js | import TinyEmitter from 'tiny-emitter'
it("should load the component from container", () => {
const emitter = new TinyEmitter()
emitter.on('hello', () => {})
expect(emitter.e.hello).toBeDefined();
return import('service/emitter').then(({ emitter }) => {
expect(emitter.e.hello).toBeDefined();
})
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/eager-shared/webpack.config.js | test/configCases/container/eager-shared/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
const { dependencies } = require("./package.json");
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
chunkIds: "named",
moduleIds: "named"
},
plugins: [
new ModuleFederationPlugin({
re... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/eager-shared/node_modules/tiny-emitter/index.js | test/configCases/container/eager-shared/node_modules/tiny-emitter/index.js | function E () {
// Keep this empty so it's easier to inherit from
// (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
}
E.prototype = {
on: function (name, callback, ctx) {
var e = this.e || (this.e = {});
(e[name] || (e[name] = [])).push({
fn: callback,
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/warnings.js | test/configCases/container/3-container-full/warnings.js | "use strict";
module.exports = [
[/No version specified and unable to automatically determine one/]
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/index.js | test/configCases/container/3-container-full/index.js | it("should load the component from container", () => {
return import("./App").then(({ default: App }) => {
const rendered = App();
expect(rendered).toBe(
"App rendered with [This is react 2.1.0] and [ComponentC rendered with [This is react 2.1.0] and [ComponentA rendered with [This is react 2.1.0]] and [Compone... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/App.js | test/configCases/container/3-container-full/App.js | import React from "react";
import ComponentC from "containerB/ComponentC";
export default () => {
return `App rendered with [${React()}] and [${ComponentC()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/webpack.config.js | test/configCases/container/3-container-full/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ModuleFederationPlugin({
remoteType: "commonjs-module",
remotes: {
containerB: "../1-container-full/container.js"
},
shared: ["re... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/upgrade-react.js | test/configCases/container/3-container-full/upgrade-react.js | import { setVersion } from "react";
export default function upgrade() {
setVersion("9");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/3-container-full/node_modules/react.js | test/configCases/container/3-container-full/node_modules/react.js | let version = "8";
export default () => `This is react ${version}`;
export function setVersion(v) { version = v; }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/state.js | test/configCases/container/container-entry/state.js | export let value = "";
export function set(v) {
value = v;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/main.js | test/configCases/container/container-entry/main.js | module.exports = "main";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/index.js | test/configCases/container/container-entry/index.js | it("should expose modules from the container", async () => {
const container = __non_webpack_require__("./container-file.js");
expect(container).toBeTypeOf("object");
expect(container.get).toBeTypeOf("function");
const testFactory = await container.get("./test");
expect(testFactory).toBeTypeOf("function");
expect... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/test.js | test/configCases/container/container-entry/test.js | module.exports = "test";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/test2.js | test/configCases/container/container-entry/test2.js | import { value } from "./state";
export default "test2";
export const other = "other";
expect(value).toBe("ok");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/init-module.js | test/configCases/container/container-entry/init-module.js | import { set } from "./state";
set("ok");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-entry/webpack.config.js | test/configCases/container/container-entry/webpack.config.js | "use strict";
const { ContainerPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
pathinfo: true
},
plugins: [
new ContainerPlugin({
name: "container",
filename: "container-file.js",
library: {
type: "commonjs-module"
}... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/invalid-module-tl-await.js | test/configCases/container/error-handling/invalid-module-tl-await.js | export let error;
try {
await import("remote/invalid");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/loading-error-cjs.js | test/configCases/container/error-handling/loading-error-cjs.js | export let error;
try {
require("invalid/module");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/index.js | test/configCases/container/error-handling/index.js | "use strict";
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 {
ex... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/loading-error.js | test/configCases/container/error-handling/loading-error.js | import "invalid/module";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/invalid-module.js | test/configCases/container/error-handling/invalid-module.js | import "remote/invalid";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/evaluation-error.js | test/configCases/container/error-handling/evaluation-error.js | import "remote/module";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/loading-error-tl-await.js | test/configCases/container/error-handling/loading-error-tl-await.js | export let error;
try {
await import("invalid/module");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/webpack.config.js | test/configCases/container/error-handling/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
chunkIds: "named",
moduleIds: "named"
},
output: {
strictModuleExceptionHandling: true
},
plugins: [
new ModuleFederationPlugin({
n... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/invalid-module-cjs.js | test/configCases/container/error-handling/invalid-module-cjs.js | export let error;
try {
require("remote/invalid");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/evaluation-error-cjs.js | test/configCases/container/error-handling/evaluation-error-cjs.js | export let error;
try {
require("remote/module");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/evaluation-error-tl-await.js | test/configCases/container/error-handling/evaluation-error-tl-await.js | export let error;
try {
await import("remote/module");
} catch (err) {
error = err;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/error-handling/module.js | test/configCases/container/error-handling/module.js | throw new Error("evaluation error");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/ComponentC.js | test/configCases/container/module-federation-with-shareScope/ComponentC.js | import React from "react";
import ComponentA from "containerA/ComponentA";
import ComponentB from "containerB/ComponentB";
export default () => {
return `ComponentC rendered with [${React()}] and [${ComponentA()}] and [${ComponentB()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/index.js | test/configCases/container/module-federation-with-shareScope/index.js | it("should load the component from container", async () => {
await __webpack_init_sharing__("test-scope");
// 2 scopes for "0-container-full-mjs" & "mf-with-shareScope-mjs"
expect(Object.keys(__webpack_share_scopes__["test-scope"].react).length).toBe(2);
return import("./App").then(({ default: App }) => {
const... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/test.config.js | test/configCases/container/module-federation-with-shareScope/test.config.js | "use strict";
module.exports = {
findBundle(i) {
return i === 0 ? "./main.js" : "./module/main.mjs";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/App.js | test/configCases/container/module-federation-with-shareScope/App.js | import React from "react";
import ComponentA from "containerA/ComponentA";
import ComponentB from "containerB/ComponentB";
import LocalComponentB from "./ComponentB";
export default () => {
return `App rendered with [${React()}] and [${ComponentA()}] and [${ComponentB()}]`;
};
expect(ComponentB).not.toBe(LocalCompon... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/webpack.config.js | test/configCases/container/module-federation-with-shareScope/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
const common = {
entry: {
main: "./index.js"
},
optimization: {
runtimeChunk: "single"
}
};
/** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0]} */
const commonMF = {
runtime: false,
exposes: {
"./Component... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/ComponentB.js | test/configCases/container/module-federation-with-shareScope/ComponentB.js | import React from "react";
export default () => {
return `ComponentB rendered with [${React()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/upgrade-react.js | test/configCases/container/module-federation-with-shareScope/upgrade-react.js | import { setVersion } from "react";
export default function upgrade() {
setVersion("3.2.1");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/module-federation-with-shareScope/node_modules/react.js | test/configCases/container/module-federation-with-shareScope/node_modules/react.js | let version = "2.1.0";
export default () => `This is react ${version}`;
export function setVersion(v) { version = v; }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/index.js | test/configCases/container/1-transitive-overriding/index.js | it("should work normally (a)", () => {
return import("./a").then(({ value }) => {
expect(value).toBe("shared");
});
});
it("should work normally (b)", () => {
return import("./b").then(({ value }) => {
expect(value).toBe("shared");
});
});
it("should work normally (container-with-shared/a)", () => {
return i... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/modules.js | test/configCases/container/1-transitive-overriding/modules.js | export default Object.keys(__webpack_modules__).sort();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/b.js | test/configCases/container/1-transitive-overriding/b.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/container/1-transitive-overriding/modules-from-remote.js | test/configCases/container/1-transitive-overriding/modules-from-remote.js | export { default } from "container-with-shared/modules";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/webpack.config.js | test/configCases/container/1-transitive-overriding/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
chunkIds: "named",
moduleIds: "named"
},
plugins: [
new ModuleFederationPlugin({
name: "container-no-shared",
library: { type: "comm... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/shared.js | test/configCases/container/1-transitive-overriding/shared.js | export const value = "shared";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-transitive-overriding/a.js | test/configCases/container/1-transitive-overriding/a.js | export * from "container-with-shared/b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/0-eager-shared/index.js | test/configCases/container/0-eager-shared/index.js | it("should allow to import exposed modules sync", () => {
return import("./App").then(({ default: App }) => {
expect(App().e.hello).toBeDefined();
});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/0-eager-shared/emitter.js | test/configCases/container/0-eager-shared/emitter.js | import { TinyEmitter } from 'tiny-emitter'
const emitter = new TinyEmitter()
emitter.on('hello', () => console.log('hello[service]'))
export {
emitter,
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/0-eager-shared/App.js | test/configCases/container/0-eager-shared/App.js | import { emitter } from "./emitter.js";
function App() {
return emitter;
}
export default App;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/0-eager-shared/webpack.config.js | test/configCases/container/0-eager-shared/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
const { dependencies } = require("./package.json");
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
chunkIds: "named",
moduleIds: "named"
},
plugins: [
new ModuleFederationPlugin({
na... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/0-eager-shared/node_modules/tiny-emitter/index.js | test/configCases/container/0-eager-shared/node_modules/tiny-emitter/index.js | function E () {
// Keep this empty so it's easier to inherit from
// (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
}
E.prototype = {
on: function (name, callback, ctx) {
var e = this.e || (this.e = {});
(e[name] || (e[name] = [])).push({
fn: callback,
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference-override/index.js | test/configCases/container/container-reference-override/index.js | it("should import the correct modules", () => {
return import("./module").then(({ test }) => test());
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference-override/test.config.js | test/configCases/container/container-reference-override/test.config.js | "use strict";
module.exports = {
moduleScope(scope) {
let ss;
scope.ABC = {
async get(module) {
const testFactory = await ss.test[Object.keys(ss.test)[0]].get();
const test = testFactory();
return () => test(module);
},
async init(shareScope) {
ss = shareScope;
}
};
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference-override/new-test.js | test/configCases/container/container-reference-override/new-test.js | module.exports = x => `ok ${x}`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference-override/webpack.config.js | test/configCases/container/container-reference-override/webpack.config.js | "use strict";
const { ContainerReferencePlugin } = require("../../../../").container;
const { ProvideSharedPlugin } = require("../../../../").sharing;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new ContainerReferencePlugin({
remoteType: "var",
remotes: {
abc: "ABC"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/container-reference-override/module.js | test/configCases/container/container-reference-override/module.js | import abc from "abc/hello-world";
import other from "abc/other";
export function test() {
expect(abc).toBe("ok ./hello-world");
expect(other).toBe("ok ./other");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/ComponentC.js | test/configCases/container/1-container-full/ComponentC.js | import React from "react";
import ComponentA from "containerA/ComponentA";
import ComponentB from "containerB/ComponentB";
export default () => {
return `ComponentC rendered with [${React()}] and [${ComponentA()}] and [${ComponentB()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/index.js | test/configCases/container/1-container-full/index.js | it("should load the component from container", () => {
return import("./App").then(({ default: App }) => {
const rendered = App();
expect(rendered).toBe(
"App rendered with [This is react 2.1.0] and [ComponentA rendered with [This is react 2.1.0]] and [ComponentB rendered with [This is react 2.1.0]]"
);
ret... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/test.config.js | test/configCases/container/1-container-full/test.config.js | "use strict";
module.exports = {
findBundle(i) {
return i === 0 ? "./main.js" : "./module/main.mjs";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/App.js | test/configCases/container/1-container-full/App.js | import React from "react";
import ComponentA from "containerA/ComponentA";
import ComponentB from "containerB/ComponentB";
import LocalComponentB from "./ComponentB";
export default () => {
return `App rendered with [${React()}] and [${ComponentA()}] and [${ComponentB()}]`;
};
expect(ComponentB).not.toBe(LocalCompon... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/webpack.config.js | test/configCases/container/1-container-full/webpack.config.js | "use strict";
const { ModuleFederationPlugin } = require("../../../../").container;
const common = {
entry: {
main: "./index.js"
},
optimization: {
runtimeChunk: "single"
}
};
/** @type {ConstructorParameters<typeof ModuleFederationPlugin>[0]} */
const commonMF = {
runtime: false,
exposes: {
"./Component... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/ComponentB.js | test/configCases/container/1-container-full/ComponentB.js | import React from "react";
export default () => {
return `ComponentB rendered with [${React()}]`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/upgrade-react.js | test/configCases/container/1-container-full/upgrade-react.js | import { setVersion } from "react";
export default function upgrade() {
setVersion("3.2.1");
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/container/1-container-full/node_modules/react.js | test/configCases/container/1-container-full/node_modules/react.js | let version = "2.1.0";
export default () => `This is react ${version}`;
export function setVersion(v) { version = v; }
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated/simple/index.js | test/configCases/delegated/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");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated/simple/bundle.js | test/configCases/delegated/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/simple/b.js | test/configCases/delegated/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/simple/loader.js | test/configCases/delegated/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/simple/webpack.config.js | test/configCases/delegated/simple/webpack.config.js | "use strict";
const DelegatedPlugin = require("../../../../").DelegatedPlugin;
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new DelegatedPlugin({
source: "./bundle",
type: "require",
context: __dirname,
content: {
"./a.js": {
id: 0
},
"./loader.js!.... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/delegated/simple/a.js | test/configCases/delegated/simple/a.js | 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.