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/defer-import/defer-used-in-async/side-effect-counter.js
test/configCases/defer-import/defer-used-in-async/side-effect-counter.js
export let data; export function setData(d) { data = d; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-dynamic-import/webpack.config.js
test/configCases/defer-import/defer-runtime-dynamic-import/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], entry: ["../defer-runtime/all-dynamic-import.js"], optimization: { concatenateModules: false }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/main.js
test/configCases/defer-import/concatenated-2/main.js
import { fn } from 'mod' import { b } from './a' fn() b()
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/index.js
test/configCases/defer-import/concatenated-2/index.js
it('should compile and load', () => { require('./main.js'); })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/webpack.config.js
test/configCases/defer-import/concatenated-2/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], optimization: { concatenateModules: true }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/a.js
test/configCases/defer-import/concatenated-2/a.js
import defer * as mod from 'mod' export function b() { mod.fn() }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/node_modules/mod/index.js
test/configCases/defer-import/concatenated-2/node_modules/mod/index.js
export { fn } from './re-export'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-2/node_modules/mod/re-export.js
test/configCases/defer-import/concatenated-2/node_modules/mod/re-export.js
export function fn() {}
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/dynamic-default-mixed/reexport.js
test/configCases/defer-import/dynamic-default-mixed/reexport.js
import defer * as n from "./dynamic.cjs"; import nDef from "./dynamic.cjs"; export const deferredValue = n.value; export const defaultValue = nDef.value;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/dynamic-default-mixed/index.js
test/configCases/defer-import/dynamic-default-mixed/index.js
import { defaultValue, deferredValue } from "./reexport" it("should have correct default export with concatenation modules", () => { expect(defaultValue).toBe(deferredValue); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/dynamic-default-mixed/webpack.config.js
test/configCases/defer-import/dynamic-default-mixed/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], optimization: { concatenateModules: true }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/reexport-async-dep-inner.js
test/configCases/defer-import/async-in-graph/reexport-async-dep-inner.js
__configCases__deferImport__proposal.push("START reexport-async-dep-inner.js"); export const x = await 4; __configCases__deferImport__proposal.push("END reexport-async-dep-inner.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/deep-async-dep.js
test/configCases/defer-import/async-in-graph/deep-async-dep.js
export {}; __configCases__deferImport__proposal.push("START deep-async-dep.js"); await 0; __configCases__deferImport__proposal.push("END deep-async-dep.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/deep-async.js
test/configCases/defer-import/async-in-graph/deep-async.js
import "./deep-async-dep.js"; __configCases__deferImport__proposal.push("START deep-async.js"); export let x = 3; __configCases__deferImport__proposal.push("END deep-async.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/index.js
test/configCases/defer-import/async-in-graph/index.js
it("should compile", async () => { const logs = global.__configCases__deferImport__proposal = []; // change to other way if webpack in the future rejects require a TLA esm. let mod = require("./entry.js"); expect(mod).toBeInstanceOf(Promise); expect(logs).toEqual([ "START async-mod-dep.js", "END async-mod-de...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/async-mod.js
test/configCases/defer-import/async-in-graph/async-mod.js
import "./async-mod-dep.js"; __configCases__deferImport__proposal.push("START async-mod.js"); await 0; export let x = 2; __configCases__deferImport__proposal.push("END async-mod.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/entry.js
test/configCases/defer-import/async-in-graph/entry.js
import * as fullSync from /* webpackDefer: true */ "./full-sync.js"; import * as asyncMod from /* webpackDefer: true */ "./async-mod.js"; import * as deepAsync from /* webpackDefer: true */ "./deep-async.js"; import * as reexportAsync from /* webpackDefer: true */ "./reexport-async.js"; __configCases__deferImport__pro...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/webpack.config.js
test/configCases/defer-import/async-in-graph/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], mode: "none", experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/full-sync.js
test/configCases/defer-import/async-in-graph/full-sync.js
import "./full-sync-dep.js"; __configCases__deferImport__proposal.push("START full-sync.js"); export let x = 1; __configCases__deferImport__proposal.push("END full-sync.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/reexport-async.js
test/configCases/defer-import/async-in-graph/reexport-async.js
import * as dep from /* webpackDefer: true */ "./reexport-async-dep.js"; __configCases__deferImport__proposal.push("START reexport-async.js"); export { dep }; __configCases__deferImport__proposal.push("END reexport-async.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/reexport-async-dep.js
test/configCases/defer-import/async-in-graph/reexport-async-dep.js
export * from "./reexport-async-dep-inner.js"; __configCases__deferImport__proposal.push("START reexport-async-dep.js"); __configCases__deferImport__proposal.push("END reexport-async-dep.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/async-mod-dep.js
test/configCases/defer-import/async-in-graph/async-mod-dep.js
export {}; __configCases__deferImport__proposal.push("START async-mod-dep.js"); __configCases__deferImport__proposal.push("END async-mod-dep.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/async-in-graph/full-sync-dep.js
test/configCases/defer-import/async-in-graph/full-sync-dep.js
export {}; __configCases__deferImport__proposal.push("START full-sync-dep.js"); __configCases__deferImport__proposal.push("END full-sync-dep.js");
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/shared-async.js
test/configCases/defer-import/harmony-import-mixed/shared-async.js
export * from "./async";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/test.filter.js
test/configCases/defer-import/harmony-import-mixed/test.filter.js
"use strict"; const supportsAsync = require("../../../helpers/supportsAsync"); module.exports = () => supportsAsync();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/index.js
test/configCases/defer-import/harmony-import-mixed/index.js
import { value as directValue } from "./shared.js"; // non-defer import import * as deferredShared from /* webpackDefer: true */ "./shared.js"; // defer import import { value as directValueAsync } from "./shared-async.js"; // non-defer import import * as deferredSharedAsync from /* webpackDefer: true */ "./shared-a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/async.js
test/configCases/defer-import/harmony-import-mixed/async.js
export const value = await "shared-value-async";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/webpack.config.js
test/configCases/defer-import/harmony-import-mixed/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], optimization: { concatenateModules: true }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/harmony-import-mixed/shared.js
test/configCases/defer-import/harmony-import-mixed/shared.js
// This module will be imported both as defer and non-defer export const value = "shared-value";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/import-attributes/test.filter.js
test/configCases/defer-import/import-attributes/test.filter.js
"use strict"; const supportsTextDecoder = require("../../../helpers/supportsTextDecoder"); module.exports = () => supportsTextDecoder();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/import-attributes/index.js
test/configCases/defer-import/import-attributes/index.js
import defer * as mod1 from "./file.ext" with { type: "bytes" }; import defer * as mod2 from "./file.ext" with { type: "json" }; import * as mod3 from "./file.ext" with { type: "bytes" }; import * as mod4 from "./file.ext" with { type: "json" }; it("should work with defer and import attributes", () => { const decoder...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/import-attributes/webpack.config.js
test/configCases/defer-import/import-attributes/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/main.js
test/configCases/defer-import/concatenated-1/main.js
import './a' import './b'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/index.js
test/configCases/defer-import/concatenated-1/index.js
it('should compile and load', () => { require('./main.js'); })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/b.js
test/configCases/defer-import/concatenated-1/b.js
import defer * as m from 'mod' Object.keys(m).forEach(() => {})
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/webpack.config.js
test/configCases/defer-import/concatenated-1/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], optimization: { concatenateModules: true }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/a.js
test/configCases/defer-import/concatenated-1/a.js
import { a } from 'mod' Object.keys(a).forEach(() => { })
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/node_modules/mod/index.js
test/configCases/defer-import/concatenated-1/node_modules/mod/index.js
export { a } from './re-export'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/concatenated-1/node_modules/mod/re-export.js
test/configCases/defer-import/concatenated-1/node_modules/mod/re-export.js
export function a() { }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/all-dynamic-import-native-syntax.js
test/configCases/defer-import/defer-runtime/all-dynamic-import-native-syntax.js
import { assertTouched as a, assertUntouched as b, reset as c } from "./side-effect-counter.js"; const [assertTouched, assertUntouched, reset] = [a, b, c]; it("should defer the module until first use", async () => { const dynamic_default = await import.defer("./commonjs/dynamic_default.cjs"); const dynamic_defa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/webpack.config.js
test/configCases/defer-import/defer-runtime/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], entry: ["./all.js"], optimization: { concatenateModules: false }, experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/all-dynamic-import.js
test/configCases/defer-import/defer-runtime/all-dynamic-import.js
import { assertTouched as a, assertUntouched as b, reset as c } from "./side-effect-counter.js"; const [assertTouched, assertUntouched, reset] = [a, b, c]; it("should defer the module until first use", async () => { const dynamic_default = await import(/* webpackDefer: true */ "./commonjs/dynamic_default.cjs")...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/all.js
test/configCases/defer-import/defer-runtime/all.js
import * as dynamic_default from /* webpackDefer: true */ "./commonjs/dynamic_default.cjs"; import * as dynamic_default_ns from /* webpackDefer: true */ "./commonjs/dynamic_default_ns.cjs"; import * as dynamic_named from /* webpackDefer: true */ "./commonjs/dynamic_named.cjs"; import * as dynamic_named_ns from /* webpa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/side-effect-counter.js
test/configCases/defer-import/defer-runtime/side-effect-counter.js
let count = 0; export function touch() { count++; } export function reset() { count = 0; } export function assertTouched() { if (count === 0) throw new Error("Side effect not triggered."); if (count > 1) throw new Error("Side effect triggered more than expected."); } export function assertUntouched() { if (count !...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/all-native-syntax.js
test/configCases/defer-import/defer-runtime/all-native-syntax.js
import defer * as dynamic_default from "./commonjs/dynamic_default.cjs"; import defer * as dynamic_default_ns from "./commonjs/dynamic_default_ns.cjs"; import defer * as dynamic_named from "./commonjs/dynamic_named.cjs"; import defer * as dynamic_named_ns from "./commonjs/dynamic_named_ns.cjs"; import defer * as dynami...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_default_ns.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_default_ns.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.default = f; function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_named_ns.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_named_ns.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.f = f; module.exports.T = class T { constructor() { this.x = 1; } } function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_named.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_named.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.f = f; module.exports.T = class T { constructor() { this.x = 1; } } function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_both_ns.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_both_ns.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.default = f; module.exports.x = 1; module.exports.T = class T { constructor() { this.x = 1; } } function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_both.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_both.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.default = f; module.exports.x = 1; module.exports.T = class T { constructor() { this.x = 1; } } function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime/commonjs/flagged_default.js
test/configCases/defer-import/defer-runtime/commonjs/flagged_default.js
const { touch } = require("../side-effect-counter"); module.exports.__esModule = true; module.exports.default = f; function f() { return "func"; } touch();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js
test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], entry: ["../defer-runtime/all.js"], module: { rules: [ { test: /index\.js/, type: "javascript/esm" } ] }, experiments: { deferImport: t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/defer-import/defer-runtime-concat/webpack.config.js
test/configCases/defer-import/defer-runtime-concat/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], entry: ["../defer-runtime/all.js"], experiments: { deferImport: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/custom-modules/json-custom/index.js
test/configCases/custom-modules/json-custom/index.js
import toml from "../_files/data.toml"; it("should transform toml to json", () => { expect(toml).toMatchObject({ title: "TOML Example", owner: { name: 'Tom Preston-Werner', organization: 'GitHub', bio: 'GitHub Cofounder & CEO\nLikes tater tots and beer.', dob: '1979-05-27T07:32:00.000Z' } }); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/custom-modules/json-custom/webpack.config.js
test/configCases/custom-modules/json-custom/webpack.config.js
"use strict"; const toml = require("toml"); /** @typedef {import("../../../../").ParserOptionsByModuleTypeKnown} ParserOptionsByModuleTypeKnown */ /** @type {import("../../../../").Configuration[]} */ module.exports = [ { mode: "development", module: { rules: [ { test: /\.toml$/, type: "json", ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/import-module/test.filter.js
test/configCases/race-conditions/import-module/test.filter.js
"use strict"; module.exports = () => { const [major] = process.versions.node.split(".").map(Number); return major >= 18; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/import-module/index.js
test/configCases/race-conditions/import-module/index.js
import * as styles from './style.module.css'; import * as styles1 from './module.js'; it("should not deadlock when using importModule", () => { expect(styles.someBottom).toBe("8px"); expect(styles1.someBottom).toBe("8px"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/import-module/loader.js
test/configCases/race-conditions/import-module/loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports.pitch = function (request) { const callback = this.async(); let finished = false; this.importModule( `${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`, {}, (err, result) => { if (err) return callback(err); if (finished) r...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/import-module/webpack.config.js
test/configCases/race-conditions/import-module/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { parallelism: 1, mode: "development", module: { rules: [ { test: /\.css$/i, use: [require.resolve("./loader"), "css-loader"] } ] } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/import-module/module.js
test/configCases/race-conditions/import-module/module.js
export * from './style1.module.css'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/load-module/index.js
test/configCases/race-conditions/load-module/index.js
it("should not deadlock when using loadModule", () => { const result = require("./loader!"); expect(result).toMatch(/console.log\(42\)/); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/load-module/loader.js
test/configCases/race-conditions/load-module/loader.js
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function () { const callback = this.async(); let finished = false; this.loadModule("./module.js", (err, result) => { if (err) return callback(err); if (finished) return; finished = true; callback(null, `module.exports = ${JSON.stringify(...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/load-module/webpack.config.js
test/configCases/race-conditions/load-module/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { parallelism: 1 };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/race-conditions/load-module/module.js
test/configCases/race-conditions/load-module/module.js
console.log(42);
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/umd/index.js
test/configCases/library/umd/index.js
it("should run", function() { });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/umd/webpack.config.js
test/configCases/library/umd/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { libraryTarget: "umd", library: { root: "testLibrary", amd: "test-library", commonjs: "test-library" } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-reexport-external/index.js
test/configCases/library/module-reexport-external/index.js
it('should compile', () => {})
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-reexport-external/test.js
test/configCases/library/module-reexport-external/test.js
export { value } from 'external0'
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-reexport-external/test.config.js
test/configCases/library/module-reexport-external/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/library/module-reexport-external/webpack.config.js
test/configCases/library/module-reexport-external/webpack.config.js
"use strict"; /** @typedef {import("../../../../").Compilation} Compilation */ /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "none", entry: { main: "./index.js", test: "./test" }, output: { module: true, library: { type: "module" }, filename: "[name].js", chunkForma...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-reexport-type/test.filter.js
test/configCases/library/module-reexport-type/test.filter.js
"use strict"; const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-reexport-type/webpack.config.js
test/configCases/library/module-reexport-type/webpack.config.js
"use strict"; /** @typedef {import("../../../../").Compilation} Compilation */ /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", entry: { main: "./index.ts" }, ignoreWarnings: [ (warning) => { // when using swc-loader or `transpileOnly: true` with ts-loader, the warning is e...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/a/index.js
test/configCases/library/a/index.js
it("should run", function() { });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/a/webpack.config.js
test/configCases/library/a/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { libraryTarget: "this" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign/index.js
test/configCases/library/type-assign/index.js
it("should define global object with property", function () { require("./module"); expect(MyLibrary["answer"]).toEqual(42); }); export const answer = 42;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign/test.config.js
test/configCases/library/type-assign/test.config.js
"use strict"; module.exports = { afterExecute() { delete global.MyLibrary; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign/webpack.config.js
test/configCases/library/type-assign/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { output: { library: { name: "MyLibrary", type: "assign" } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign/module.js
test/configCases/library/type-assign/module.js
"use strict";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-commonjs-used-exports-false/system-external-commonjs.js
test/configCases/library/1-systemjs-external-commonjs-used-exports-false/system-external-commonjs.js
import MyClass, {a, b} from "library-commonjs"; it("should get exports from systemjs library (" + NAME + ")", function() { expect(new MyClass().getValue()).toBe("my-class") expect(a).toBe(10); expect(b).toBe(20); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-commonjs-used-exports-false/test.config.js
test/configCases/library/1-systemjs-external-commonjs-used-exports-false/test.config.js
"use strict"; const System = require("../../../helpers/fakeSystem"); module.exports = { beforeExecute: () => { System.init(); }, moduleScope(scope) { scope.System = System; scope.System.setRequire(scope.require); }, afterExecute() { delete global.webpackChunk; System.execute("(anonym)"); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-commonjs-used-exports-false/webpack.config.js
test/configCases/library/1-systemjs-external-commonjs-used-exports-false/webpack.config.js
"use strict"; const path = require("path"); const webpack = require("../../../../"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */ module.exports = (env, { testPath }) => [ { entry: "./system-external-commonjs.js", output: { library: { type: "system" } }, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-named-import-externals/index.js
test/configCases/library/module-named-import-externals/index.js
import { readFileSync, writeFileSync as aaa } from 'fs' import * as path from 'path' import * as fs from 'fs' function doNothing(obj) {} const { writeFileSync = aaa } = {} doNothing({ writeFileSync }); { const { writeFileSync = aaa } = {} doNothing({ writeFileSync }); } it('should handle external modules with co...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-named-import-externals/test.config.js
test/configCases/library/module-named-import-externals/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/library/module-named-import-externals/webpack.config.js
test/configCases/library/module-named-import-externals/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { entry: { main: "./index.js" }, output: { module: true, library: { type: "module" }, filename: "[name].mjs", chunkFormat: "module" }, experiments: { outputModule: true }, resolve: { extensions: [".js"] }, ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/modern-module-named-import-externals/index.js
test/configCases/library/modern-module-named-import-externals/index.js
it('should compile', () => {}); it('should handle external modules with concatenation and caching', () => { // This test ensures serialization works with caching enabled expect(true).toBe(true); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/modern-module-named-import-externals/test.js
test/configCases/library/modern-module-named-import-externals/test.js
// re export export { a } from 'externals0' // named import import { a as a_2, HomeLayout as aaa } from 'externals1' import { a as a_0 } from 'externals0' // default import import defaultValue from 'externals2' // namespace import import * as namespace from 'externals3' // side effect only import import 'externals4...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/modern-module-named-import-externals/test.config.js
test/configCases/library/modern-module-named-import-externals/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/library/modern-module-named-import-externals/webpack.config.js
test/configCases/library/modern-module-named-import-externals/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { cache: { type: "memory" // Enable memory cache to test serialization }, mode: "none", entry: { main: "./index.js", test: "./test.js" }, output: { module: true, library: { type: "modern-module" }, filename: "[nam...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/modern-module-named-import-externals/lib.js
test/configCases/library/modern-module-named-import-externals/lib.js
import { HomeLayout as aaa } from 'externals0'; const { HomeLayout = aaa } = {}; console.log({ HomeLayout }); { const { HomeLayout = aaa } = {}; console.log({ HomeLayout }); } (() => { { const { HomeLayout = aaa } = {}; console.log({ HomeLayout }); } })() { const { external_externa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/concatenate-modules-named-import-externals/index.js
test/configCases/library/concatenate-modules-named-import-externals/index.js
it('should compile', () => {}); it('should handle external modules with concatenation and caching', () => { // This test ensures serialization works with caching enabled expect(true).toBe(true); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/concatenate-modules-named-import-externals/test.js
test/configCases/library/concatenate-modules-named-import-externals/test.js
// re export export { a } from 'externals0' // named import import { a as a_2, HomeLayout as aaa } from 'externals1' import { a as a_0 } from 'externals0' // default import import defaultValue from 'externals2' // namespace import import * as namespace from 'externals3' // side effect only import import 'externals4...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/concatenate-modules-named-import-externals/test.config.js
test/configCases/library/concatenate-modules-named-import-externals/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/library/concatenate-modules-named-import-externals/webpack.config.js
test/configCases/library/concatenate-modules-named-import-externals/webpack.config.js
"use strict"; /** @type {import("../../../../types").Configuration} */ module.exports = { cache: { type: "memory" // Enable memory cache to test serialization }, mode: "none", entry: { main: "./index.js", test: "./test.js" }, output: { module: true, library: { type: "modern-module" }, filename: "[nam...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/concatenate-modules-named-import-externals/lib.js
test/configCases/library/concatenate-modules-named-import-externals/lib.js
import { HomeLayout as aaa } from 'externals0'; const { HomeLayout = 123 } = {}; console.log({ HomeLayout }); { const { HomeLayout = aaa } = {}; console.log({ HomeLayout }); } (() => { { const { HomeLayout = aaa } = {}; console.log({ HomeLayout }); } })() { const { external_externa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/issue-18932/index.js
test/configCases/library/issue-18932/index.js
it("should don't have variable name conflict", function() { expect(true).toBe(true); }); const i = 1; export default "test";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/issue-18932/webpack.config.js
test/configCases/library/issue-18932/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", output: { library: { type: "commonjs" } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm/system-external-esm.js
test/configCases/library/1-systemjs-external-esm/system-external-esm.js
import MyClass, {a, b} from "library-esm"; it("should get exports from systemjs library (" + NAME + ")", function() { expect(new MyClass().getValue()).toBe("my-class") expect(a).toBe(10); expect(b).toBe(20); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm/test.config.js
test/configCases/library/1-systemjs-external-esm/test.config.js
"use strict"; const System = require("../../../helpers/fakeSystem"); module.exports = { beforeExecute: () => { System.init(); }, moduleScope(scope) { scope.System = System; scope.System.setRequire(scope.require); }, afterExecute() { delete global.webpackChunk; System.execute("(anonym)"); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-systemjs-external-esm/webpack.config.js
test/configCases/library/1-systemjs-external-esm/webpack.config.js
"use strict"; const path = require("path"); const webpack = require("../../../../"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */ module.exports = (env, { testPath }) => [ { entry: "./system-external-esm.js", output: { library: { type: "system" } }, exte...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/array-global/index.js
test/configCases/library/array-global/index.js
it("should define global object with property", function() { expect(a["b"]).toBeDefined(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false