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/library/array-global/webpack.config.js | test/configCases/library/array-global/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: ["a", "b"]
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/test.filter.js | test/configCases/library/module-useless-export-requirement/test.filter.js | "use strict";
const supportsRequireInModule = require("../../../helpers/supportsRequireInModule");
module.exports = () => supportsRequireInModule();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/entry1.js | test/configCases/library/module-useless-export-requirement/entry1.js | const getFile = (filename) => {
const path = __non_webpack_require__("path");
const fs = __non_webpack_require__("fs");
return fs.readFileSync(path.resolve(__dirname, filename), "utf-8");
};
const RuntimeGlobals_Exports = "__webpack_exports__";
const reg = new RegExp("var\\s" + RuntimeGlobals_Exports + "\\s=");
it... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/test.config.js | test/configCases/library/module-useless-export-requirement/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./bundle0.mjs", "./bundle1.mjs", "./bundle2.mjs"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/entry3.js | test/configCases/library/module-useless-export-requirement/entry3.js | import concat from "./concat";
const getFile = (filename) => {
const path = __non_webpack_require__("path");
const fs = __non_webpack_require__("fs");
return fs.readFileSync(path.resolve(__dirname, filename), "utf-8");
};
const RuntimeGlobals_Exports = "__webpack_exports__";
const reg = new RegExp("var\\s" + Runti... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/webpack.config.js | test/configCases/library/module-useless-export-requirement/webpack.config.js | "use strict";
const common = {
output: {
module: true,
filename: "[name].mjs",
library: {
type: "module"
},
chunkFormat: "module"
},
experiments: {
outputModule: true
}
};
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
...common,
entry: {
bundle0: "./entry1.js"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/entry2.js | test/configCases/library/module-useless-export-requirement/entry2.js | import concat from "./concat";
const getFile = (filename) => {
const path = __non_webpack_require__("path");
const fs = __non_webpack_require__("fs");
return fs.readFileSync(path.resolve(__dirname, filename), "utf-8");
};
const RuntimeGlobals_Exports = "__webpack_exports__";
const reg = new RegExp("var\\s" + Runti... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-useless-export-requirement/concat.js | test/configCases/library/module-useless-export-requirement/concat.js | export default "concat"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/issue-19664/index.js | test/configCases/library/issue-19664/index.js | Object.defineProperty(exports, "__esModule", { value: true });
exports.main = main;
function main() {}
// commonjs bailout
if(this){}
it("Should work when exports are unprovided", function() {
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/issue-19664/webpack.config.js | test/configCases/library/issue-19664/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: {
type: "commonjs-static"
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-and-child-compilation/index.js | test/configCases/library/module-and-child-compilation/index.js | import { myClass } from "./style.custom";
it("should work", function() {
expect(myClass).toBe("my-class");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-and-child-compilation/loader.js | test/configCases/library/module-and-child-compilation/loader.js | /** @typedef {import("../../../../").Compiler} Compiler */
/** @typedef {import("../../../../").Compilation} Compilation */
/** @type {import("../../../../").LoaderDefinition} */
module.exports = async function loader() {
const callback = this.async();
const loader = this;
const compilerName = `extract:${loader.res... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-and-child-compilation/webpack.config.js | test/configCases/library/module-and-child-compilation/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "production",
target: "web",
output: {
module: true,
library: {
type: "module"
}
},
module: {
strictExportPresence: true,
rules: [
{
test: /\.custom$/i,
loader: require.resolve("./loader")
}
]
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/disable-provided-export/test.filter.js | test/configCases/library/disable-provided-export/test.filter.js | "use strict";
const supportsRequireInModule = require("../../../helpers/supportsRequireInModule");
module.exports = () => supportsRequireInModule();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/disable-provided-export/modern-module.js | test/configCases/library/disable-provided-export/modern-module.js | export const lib2 = 'modern-module'
export default "null"
it("should compile and run", () => {
// avoid `No tests exported by test case`
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/disable-provided-export/commonjs-static.js | test/configCases/library/disable-provided-export/commonjs-static.js | export const lib3 = 'commonjs-static'
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/disable-provided-export/webpack.config.js | test/configCases/library/disable-provided-export/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
entry: "./module.js",
optimization: {
providedExports: false
},
output: {
library: {
type: "module"
}
},
experiments: {
outputModule: true
},
externals: ["... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/disable-provided-export/run.js | test/configCases/library/disable-provided-export/run.js | it("should compile and run", () => {
expect(libModule.default).toBe("module");
expect(libModule.foo).toBe("module");
expect(Boolean(libModule.React.version)).toBe(true);
expect(libModernModule.default).toBe("modern-module");
expect(libCommonjsStatic.default).toBe("commonjs-static");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/disable-provided-export/module.js | test/configCases/library/disable-provided-export/module.js | import React from 'react';
const foo = "module"
export default 'module'
export { React, foo }
it("should compile and run", () => {
// avoid `No tests exported by test case`
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/type-assign-properties/index.js | test/configCases/library/type-assign-properties/index.js | it("should define global object with property", function () {
expect(MyLibraryProperties["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-properties/test.config.js | test/configCases/library/type-assign-properties/test.config.js | "use strict";
module.exports = {
afterExecute() {
delete global.MyLibraryProperties;
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign-properties/webpack.config.js | test/configCases/library/type-assign-properties/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: {
name: "MyLibraryProperties",
type: "assign-properties"
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/define-module-property-cjs.js | test/configCases/library/0-create-library/define-module-property-cjs.js | exports.foo = "foo";
Object.defineProperty(exports, "name", {
value: "define-module-property-cjs",
writable: true
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/non-external-named.js | test/configCases/library/0-create-library/non-external-named.js | export const nonExternalA = "non-external-a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/function-commonjs.js | test/configCases/library/0-create-library/function-commonjs.js | module.exports = function test() {
return 3;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/exports-shortcut-cjs.js | test/configCases/library/0-create-library/exports-shortcut-cjs.js | exports = {
name: "exports-shortcut-cjs"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/commonjs.js | test/configCases/library/0-create-library/commonjs.js | const a = 10;
const b = 20;
class MyClass {
getValue() {
return "my-class";
}
}
module.exports = MyClass;
module.exports.a = a;
module.exports.b = b;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/function-esm.js | test/configCases/library/0-create-library/function-esm.js | export default function test() {
return 4;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/non-external.js | test/configCases/library/0-create-library/non-external.js | export default "non-external";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/self-reference-cjs.js | test/configCases/library/0-create-library/self-reference-cjs.js | exports.name
module.name
this.name | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/index.js | test/configCases/library/0-create-library/index.js | export * from "./a";
export default "default-value";
export var b = "b";
export { default as external } from "external";
export * from "external-named";
var module = "should not conflict",
define = "should not conflict",
require = "should not conflict",
exports = "should not conflict",
globalName = "should not con... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/nested.js | test/configCases/library/0-create-library/nested.js | export * as NS from "./index.js";
var module = "should not conflict",
define = "should not conflict",
require = "should not conflict",
exports = "should not conflict",
globalName = "should not conflict";
console.log.bind(console, module, define, require, exports, globalName);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/overrides-exports-cjs.js | test/configCases/library/0-create-library/overrides-exports-cjs.js | module.exports.foo = "foo";
module.exports = {
name: "overrides-exports-cjs"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/esm.js | test/configCases/library/0-create-library/esm.js | const a = 10;
const b = 20;
class MyClass {
getValue() {
return "my-class";
}
}
export default MyClass;
export { a, b };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/class-commonjs.js | test/configCases/library/0-create-library/class-commonjs.js | module.exports = class MyClass {
getNumber() {
return 1;
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/test.config.js | test/configCases/library/0-create-library/test.config.js | "use strict";
module.exports.noTests = true;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/class-esm.js | test/configCases/library/0-create-library/class-esm.js | export default class MyClass {
getNumber() {
return 2;
}
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/index-async.js | test/configCases/library/0-create-library/index-async.js | export * from "./a";
export default "default-value";
export var b = "b";
export { default as external } from "external";
export * from "external-named";
const test = await 1;
var module = "should not conflict",
define = "should not conflict",
require = "should not conflict",
exports = "should not conflict",
globa... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/esm-with-commonjs.js | test/configCases/library/0-create-library/esm-with-commonjs.js | export * from "./a";
export default "default-value";
export var b = "b";
export { default as external } from "external";
export * from "external-named";
export { default as MyClass1 } from './class-commonjs';
export { default as MyClass2 } from './class-esm';
export { default as func1 } from './function-commonjs';
expo... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/foo.js | test/configCases/library/0-create-library/foo.js | export const foo = "bar";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/webpack.config.js | test/configCases/library/0-create-library/webpack.config.js | "use strict";
const path = require("path");
const webpack = require("../../../../");
const supportsAsync = require("../../../helpers/supportsAsync");
/** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */
module.exports = (env, { testPath }) => [
{
output: {
uniqueName: "moder... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/adding-exports-cjs.js | test/configCases/library/0-create-library/adding-exports-cjs.js | module.exports = {
name: "adding-exports-cjs"
};
module.exports.foo = "foo"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/define-this-exports-cjs.js | test/configCases/library/0-create-library/define-this-exports-cjs.js | this.foo = "foo";
Object.defineProperty(this, "name", {
value: "define-this-exports-cjs"
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/reexport-define-module-property-cjs.js | test/configCases/library/0-create-library/reexport-define-module-property-cjs.js | module.exports = require("./define-module-property-cjs");
module.exports.name = "reexport-define-module-property-cjs";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/0-create-library/a.js | test/configCases/library/0-create-library/a.js | export var a = "a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/multi-concatenate-modules-named-import-externals/index.js | test/configCases/library/multi-concatenate-modules-named-import-externals/index.js | import { readFile } from 'externals-1/foo'
import './cjs'
it('should not optimize external modules in different concatenation scope', () => {
expect(readFile).toBeDefined()
}) | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/multi-concatenate-modules-named-import-externals/other-entry.js | test/configCases/library/multi-concatenate-modules-named-import-externals/other-entry.js | import { readFile } from 'externals-2/foo'
it('should not optimize external modules in different concatenation scope', () => {
expect(readFile).toBeDefined()
}) | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/multi-concatenate-modules-named-import-externals/test.config.js | test/configCases/library/multi-concatenate-modules-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/multi-concatenate-modules-named-import-externals/cjs.js | test/configCases/library/multi-concatenate-modules-named-import-externals/cjs.js | require('./other-entry.js')
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/multi-concatenate-modules-named-import-externals/webpack.config.js | test/configCases/library/multi-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
},
target: "node",
mode: "none",
entry: { main: "./index.js", test: "./other-entry.js" },
output: {
module: true,
library: {
type: "modern-module... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/entry1.js | test/configCases/library/render-order-issue/entry1.js | module.exports = require('./foo')
module.exports.name = "entry1" | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/index.js | test/configCases/library/render-order-issue/index.js | it('should work', () => {
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/render-order-issue/loader.js | test/configCases/library/render-order-issue/loader.js | "use strict";
/** @typedef {import("../../../../types").LoaderDefinition} LoaderDefinition */
/**
* @type {LoaderDefinition}
*/
module.exports = function loader(code) {
const request = this.resourcePath;
const callback = this.async();
// You can simulate an unstable async operation by switching the waiting mo... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/test.config.js | test/configCases/library/render-order-issue/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/render-order-issue/bar.js | test/configCases/library/render-order-issue/bar.js | import { v } from "externals0";
v; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/foo.js | test/configCases/library/render-order-issue/foo.js | import { v } from "externals1";
v; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/entry.js | test/configCases/library/render-order-issue/entry.js | module.exports.entry1 = require('./entry1.js')
module.exports.entry2 = require('./entry2.js') | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/webpack.config.js | test/configCases/library/render-order-issue/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
mode: "production",
devtool: false,
optimization: {
minimize: false,
moduleIds: "named",
concatenateModules: true,
usedExports: true
},
entry: {
main: "./index.js",
entry: "./entry.js"
},
output: {
clean: tru... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/render-order-issue/entry2.js | test/configCases/library/render-order-issue/entry2.js | module.exports = require('./bar')
module.exports.name = "entry2" | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/baz.js | test/configCases/library/module-multi-runtime/baz.js | export const baz = "baz"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/concat2.js | test/configCases/library/module-multi-runtime/concat2.js | export default "concat2";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/entry1.js | test/configCases/library/module-multi-runtime/entry1.js | import { foo } from "./cjs-concat";
it("should generate correct export definition / 1", function () {
expect(foo).toBe("foo")
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/cjs-concat.js | test/configCases/library/module-multi-runtime/cjs-concat.js | module.exports = require("./concat");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/test.config.js | test/configCases/library/module-multi-runtime/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["entry1.mjs", "entry2.mjs", "entry3.mjs"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/entry3.js | test/configCases/library/module-multi-runtime/entry3.js | import { baz, concat } from "./cjs-concat";
it("should generate correct export definition / 3", function () {
expect(baz).toBe("baz");
expect(concat).toBe("concat~concat2");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/bar.js | test/configCases/library/module-multi-runtime/bar.js | export * from "./baz"
export const bar = "bar"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/webpack.config.js | test/configCases/library/module-multi-runtime/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
mode: "production",
entry: {
entry1: "./entry1.js",
entry2: "./entry2.js",
entry3: "./entry3.js"
},
output: {
module: true,
library: {
type: "module"
},
filename: "[name].mjs"
},
experiments: {
outputModule: t... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/entry2.js | test/configCases/library/module-multi-runtime/entry2.js | import { bar } from "./cjs-concat";
it("should generate correct export definition / 2", function () {
expect(bar).toBe("bar")
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-multi-runtime/concat.js | test/configCases/library/module-multi-runtime/concat.js | import concat2 from "./concat2";
export const baz = "baz";
export const foo = "foo";
export const bar = "bar";
export const concat = "concat~" + concat2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/concat2.js | test/configCases/library/module-external-multi-entry/concat2.js | import { a as external_a, b as external_b, c as external_c } from "external";
export const a = "concat2~" + external_a;
export const b = "concat2~" + external_b;
export const c = "concat2~" + external_c;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/entry1.js | test/configCases/library/module-external-multi-entry/entry1.js | // This concat module has size `4`
import { a, b, c } from "./concat1";
// Create one shared concat module that exist in multiple chunks
import cjs from "./cjs-concat";
it("should generate correct specifier pointed to import binding / 1", function () {
expect(a).toBe("concat1~concat2~external-a");
expect(b).toBe("c... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/cjs-concat.js | test/configCases/library/module-external-multi-entry/cjs-concat.js | module.exports = require("./foo1").foo;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/foo4.js | test/configCases/library/module-external-multi-entry/foo4.js | export default "foo4"
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/test.config.js | test/configCases/library/module-external-multi-entry/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["entry1.mjs", "entry2.mjs"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/foo2.js | test/configCases/library/module-external-multi-entry/foo2.js | import foo3 from "./foo3";
export default "foo2~" + foo3;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/foo1.js | test/configCases/library/module-external-multi-entry/foo1.js | // This concat module has size `4`
import foo2 from "./foo2";
export const foo = "foo1~" + foo2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/webpack.config.js | test/configCases/library/module-external-multi-entry/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const webpack = require("../../../../");
/** @type {webpack.Configuration} */
module.exports = {
mode: "production",
entry: { entry1: "./entry1.js", entry2: "./entry2.js" },
output: {
module: true,
library: {
type: "module"
},
filenam... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/entry2.js | test/configCases/library/module-external-multi-entry/entry2.js | // This concat module has size `3`
import { a, b, c } from "./concat2";
// Create one shared concat module that exist in multiple chunks
import cjs from "./cjs-concat";
it("should generate correct specifier pointed to import binding / 2", function () {
expect(a).toBe("concat2~external-a");
expect(b).toBe("concat2~e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/concat1.js | test/configCases/library/module-external-multi-entry/concat1.js | import { a as concat2_a, b as concat2_b, c as concat2_c } from "./concat2";
export const a = "concat1~" + concat2_a;
export const b = "concat1~" + concat2_b;
export const c = "concat1~" + concat2_c;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/module-external-multi-entry/foo3.js | test/configCases/library/module-external-multi-entry/foo3.js | import foo4 from "./foo4";
export default "foo3~" + foo4;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/issue-18951/index.js | test/configCases/library/issue-18951/index.js | it("should don't have variable name conflict", function() {
expect(true).toBe(true);
});
export const id = "collision";
export const ids = ["collision"];
export const modules = { "collision": true };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/issue-18951/test.config.js | test/configCases/library/issue-18951/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/issue-18951/webpack.config.js | test/configCases/library/issue-18951/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
experiments: { outputModule: true },
output: {
filename: "[name].mjs",
library: { type: "module" }
},
optimization: {
runtimeChunk: "single" // any value other than `false`
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign-runtime-chunk/index.js | test/configCases/library/type-assign-runtime-chunk/index.js | it("should define global object with property", function () {
expect(MyLibraryRuntimeChunk["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-runtime-chunk/test.config.js | test/configCases/library/type-assign-runtime-chunk/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["./runtime~main.js", "./main.js"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/type-assign-runtime-chunk/webpack.config.js | test/configCases/library/type-assign-runtime-chunk/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].js",
library: {
name: "MyLibraryRuntimeChunk",
type: "assign"
}
},
target: "web",
optimization: {
runtimeChunk: true
}
};
| 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/system-external-commonjs.js | test/configCases/library/1-systemjs-external-commonjs/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/test.config.js | test/configCases/library/1-systemjs-external-commonjs/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/webpack.config.js | test/configCases/library/1-systemjs-external-commonjs/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/1-use-library/esm-with-bundled-commonjs.js | test/configCases/library/1-use-library/esm-with-bundled-commonjs.js | // class-commonjs
import lib1 from "lib1";
// exports-shortcut-cjs
import lib2 from "lib2";
// overrides-exports-cjs
import lib3 from "lib3";
// self-reference-cjs
import lib4 from "lib4";
// adding-exports-cjs
import lib5 from "lib5";
// define-module-property-cjs
import lib6, { name as lib6_name, foo as lib6_foo } fr... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/var-test.js | test/configCases/library/1-use-library/var-test.js | var getData = require("library");
it("should be able get items from library (" + NAME + ")", function() {
const d = getData();
expect(d).toHaveProperty("x");
expect(d.x).toHaveProperty("y");
const data = d.x.y;
expect(data).toHaveProperty("default", "default-value");
expect(data).toHaveProperty("a", "a");
expec... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/default-test-modern-module.js | test/configCases/library/1-use-library/default-test-modern-module.js | import d from "library";
it("should tree-shake other exports from library (" + NAME + ")", function() {
expect(d).toBe("default-value");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/index.js | test/configCases/library/1-use-library/index.js | import d from "library";
import { a, b, external } from "library";
import * as imoprtStar from "library";
it(
"should be able to import harmony exports from library (" + NAME + ")",
function () {
expect(d).toBe("default-value");
expect(a).toBe("a");
expect(b).toBe("b");
if (typeof TEST_EXTERNAL !== "undefine... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/test.config.js | test/configCases/library/1-use-library/test.config.js | "use strict";
module.exports = {
moduleScope(scope) {
scope.define = (factory) => {
scope.module.exports = factory();
};
},
afterExecute() {
delete global.webpackChunk;
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/esm-with-commonjs.js | test/configCases/library/1-use-library/esm-with-commonjs.js | import d from "library";
import { a, b, external, MyClass1, MyClass2, func1, func2 } from "library";
import * as imoprtStar from "library";
it(
"should be able to import harmony exports from library (" + NAME + ")",
function () {
expect(d).toBe("default-value");
expect(a).toBe("a");
expect(b).toBe("b");
expe... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/webpack.config.js | test/configCases/library/1-use-library/webpack.config.js | "use strict";
/** @typedef {import("../../../../").Compiler} Compiler */
/** @typedef {import("../../../../").Compilation} Compilation */
const path = require("path");
const webpack = require("../../../../");
const supportsAsync = require("../../../helpers/supportsAsync");
/** @type {(env: Env, options: TestOptions)... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/module-export-test.js | test/configCases/library/1-use-library/module-export-test.js | import * as mod from "library";
it("should tree-shake other exports from library (" + NAME + ") and export only 'a'", function() {
expect(mod).toMatchObject({ a: "a" });
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/this-test.js | test/configCases/library/1-use-library/this-test.js | var data = require("library");
it("should be able get items from library (" + NAME + ")", function() {
expect(data).toHaveProperty("default", "default-value");
expect(data).toHaveProperty("a", "a");
expect(data).toHaveProperty("b", "b");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/default-test.js | test/configCases/library/1-use-library/default-test.js | import d from "library";
var data = require("library");
it("should get default export from library (" + NAME + ")", function() {
expect(data).toBe("default-value");
expect(d).toBe("default-value");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/library/1-use-library/node_modules/external.js | test/configCases/library/1-use-library/node_modules/external.js | module.exports = ["external"];
| 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.