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/clean/ignore-fn/webpack.config.js | test/configCases/clean/ignore-fn/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const { RawSource } = require("webpack-sources");
const readDir = require("../enabled/readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: {
keep(asset) {
return asset.includes("ignored/dir");... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/lib-manifest-plugin/readdir.js | test/configCases/clean/lib-manifest-plugin/readdir.js | const fs = require('fs');
const path = require('path');
/**
* @param {string} path path
* @returns {string} path
*/
function handlePath(path) {
return path.replace(/\\/g, "/");
}
/**
* @param {string} from from
* @returns {{ files: string[], directories: string[] }}
*/
module.exports = function readDir(from) {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/lib-manifest-plugin/index.js | test/configCases/clean/lib-manifest-plugin/index.js | it("should compile and run the test", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/lib-manifest-plugin/webpack.config.js | test/configCases/clean/lib-manifest-plugin/webpack.config.js | "use strict";
const path = require("path");
const webpack = require("../../../../");
const readDir = require("./readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: true
},
plugins: [
(compiler) => {
compiler.hooks.thisCompilation.tap("Test", (compilation) => {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/link/test.filter.js | test/configCases/clean/link/test.filter.js | "use strict";
const fs = require("fs");
const path = require("path");
module.exports = () => {
try {
fs.symlinkSync(
path.join(__dirname, "index.js"),
path.join(__dirname, ".testlink"),
"file"
);
fs.unlinkSync(path.join(__dirname, ".testlink"));
return true;
} catch (_err) {
return false;
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/link/index.js | test/configCases/clean/link/index.js | it("should compile and run the test", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/link/webpack.config.js | test/configCases/clean/link/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const readDir = require("../enabled/readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: true
},
plugins: [
(compiler) => {
let once = true;
compiler.hooks.environment.tap("Test", () => {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/ignore-hook/index.js | test/configCases/clean/ignore-hook/index.js | it("should compile and run the test", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/ignore-hook/webpack.config.js | test/configCases/clean/ignore-hook/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const { RawSource } = require("webpack-sources");
const webpack = require("../../../../");
const readDir = require("../enabled/readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: true
},
plugins: ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/enabled/readdir.js | test/configCases/clean/enabled/readdir.js | const fs = require('fs');
const path = require('path');
/**
* @param {string} path path
* @returns {string} path
*/
function handlePath(path) {
return path.replace(/\\/g, "/");
}
/**
* @param {string} from from
* @returns {{ files: string[], directories: string[] }}
*/
module.exports = function readDir(from) {... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/enabled/index.js | test/configCases/clean/enabled/index.js | it("should compile and run the test", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/enabled/webpack.config.js | test/configCases/clean/enabled/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const { RawSource } = require("webpack-sources");
const readDir = require("./readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: true
},
plugins: [
(compiler) => {
let once = true;
compile... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/dry/index.js | test/configCases/clean/dry/index.js | it("should compile and run the test", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/clean/dry/webpack.config.js | test/configCases/clean/dry/webpack.config.js | "use strict";
const fs = require("fs");
const path = require("path");
const { RawSource } = require("webpack-sources");
const readDir = require("../enabled/readdir");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
clean: {
dry: true
}
},
plugins: [
(compiler) => {
comp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-unnamed/index.js | test/configCases/target/amd-unnamed/index.js | it("should run", function() {});
it("should name define", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch(/define\((function)?\(/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-unnamed/webpack.config.js | test/configCases/target/amd-unnamed/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
libraryTarget: "amd"
},
node: {
__dirname: false,
__filename: false
},
plugins: [
new webpack.BannerPlugin({
raw: true,
banner: "function define(fn) { fn(); }\n"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-named/index.js | test/configCases/target/amd-named/index.js | it("should run", function() {
});
it("should name define", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch("define(\"NamedLibrary\",");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-named/webpack.config.js | test/configCases/target/amd-named/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "NamedLibrary",
libraryTarget: "amd"
},
node: {
__dirname: false,
__filename: false
},
plugins: [
new webpack.BannerPlugin({
raw: true,
banner: "functio... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-export/index.js | test/configCases/target/system-export/index.js | // This test verifies that values exported by a webpack bundle are consumable by systemjs.
export const namedThing = {
hello: "there"
};
export default "the default export";
it("should successfully export values to System", function() {
const exports = eval("System").registry["(anonym)"].exports;
expect(exports["... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-export/test.config.js | test/configCases/target/system-export/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
},
afterExecute: () => {
System.execute("(anonym)");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-export/webpack.config.js | test/configCases/target/system-export/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
libraryTarget: "system"
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-unnamed/index.js | test/configCases/target/amd-container-unnamed/index.js | it("should run", function() {});
it("should name define", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch(/window\['clientContainer'\]\.define\((function)?\(/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-unnamed/webpack.config.js | test/configCases/target/amd-container-unnamed/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../types").Configuration} */
module.exports = {
output: {
library: {
type: "amd",
amdContainer: "window['clientContainer']"
}
},
node: {
__dirname: false,
__filename: false
},
plugins: [
new webpack.BannerPlugin({
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-auxiliary-comments-string/index.js | test/configCases/target/umd-auxiliary-comments-string/index.js | it("should run", function() {
});
it("should have auxiliary comment string", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch("//test " + "comment");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-auxiliary-comments-string/webpack.config.js | test/configCases/target/umd-auxiliary-comments-string/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "NamedLibrary",
libraryTarget: "umd",
umdNamedDefine: true,
auxiliaryComment: "test comment"
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named-assets-path/index.js | test/configCases/target/system-named-assets-path/index.js | /* This test verifies that when output.library is specified that the compiled bundle provides
* the library name to System during the System.register
*/
it("should call System.register with a name assets path", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named-assets-path/test.config.js | test/configCases/target/system-named-assets-path/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
},
afterExecute: () => {
System.execute("named-system-module-main");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named-assets-path/webpack.config.js | test/configCases/target/system-named-assets-path/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "named-system-module-[name]",
libraryTarget: "system"
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/chunk-loading-per-entry/webworker.js | test/configCases/target/chunk-loading-per-entry/webworker.js | it("should allow to load a shared chunk in a WebWorker", async () => {
expect(await import(/* webpackChunkName: "chunk" */ "./chunk")).toEqual(
nsObj({
default: 42
})
);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/chunk-loading-per-entry/chunk.js | test/configCases/target/chunk-loading-per-entry/chunk.js | export default 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/chunk-loading-per-entry/test.config.js | test/configCases/target/chunk-loading-per-entry/test.config.js | "use strict";
module.exports = {
findBundle(i) {
return i === 0 ? "./web-0.js" : "./webworker-1.js";
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/chunk-loading-per-entry/web.js | test/configCases/target/chunk-loading-per-entry/web.js | it("should allow to load a shared chunk in web", async () => {
const promise = import(/* webpackChunkName: "chunk" */ "./chunk");
expect(document.head._children).toHaveLength(1);
const script = document.head._children[0];
__non_webpack_require__("./chunk-0.js");
script.onload();
expect(await promise).toEqual(
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/chunk-loading-per-entry/webpack.config.js | test/configCases/target/chunk-loading-per-entry/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
const base = {
entry: {
web: "./web",
webworker: {
import: "./webworker",
chunkLoading: "import-scripts"
}
},
target: "web"
};
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{ ...base, output: { ...base.output,... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/universal/test.filter.js | test/configCases/target/universal/test.filter.js | "use strict";
const supportsGlobalThis = require("../../../helpers/supportsGlobalThis");
module.exports = () => supportsGlobalThis();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/universal/index.js | test/configCases/target/universal/index.js | import value from "./separate";
import { test as t } from "external-self";
function isBrowser() {
return typeof globalThis.window !== 'undefined' && typeof globalThis.document !== 'undefined';
}
it("should compile check", () => {
expect(isBrowser() ? "web" : "node").toBe(!isBrowser() ? "node" : "web");
});
it("sho... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/universal/test.config.js | test/configCases/target/universal/test.config.js | "use strict";
module.exports = {
moduleScope(scope, options) {
if (options.name.includes("node")) {
delete scope.window;
delete scope.document;
delete scope.self;
}
},
findBundle() {
return ["./runtime.mjs", "./separate.mjs", "./main.mjs"];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/universal/webpack.config.js | test/configCases/target/universal/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
name: "web",
output: {
filename: "[name].mjs",
library: {
type: "module"
}
},
target: ["web", "node"],
experiments: {
outputModule: true
},
optimization: {
minimize: false,
runtimeChunk: "singl... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/universal/separate.js | test/configCases/target/universal/separate.js | export default 42;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-named-define/index.js | test/configCases/target/umd-named-define/index.js | it("should run", function() {
});
it("should name define", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch("define(\"NamedLibrary\",");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-named-define/webpack.config.js | test/configCases/target/umd-named-define/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "NamedLibrary",
libraryTarget: "umd",
umdNamedDefine: true
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/strict-mode-global/index.js | test/configCases/target/strict-mode-global/index.js | "use strict";
it("should be able to use global in strict mode", function() {
expect((typeof global)).toBe("object");
expect((global === null)).toBe(false)
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/strict-mode-global/webpack.config.js | test/configCases/target/strict-mode-global/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web"
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-auxiliary-comments-object/index.js | test/configCases/target/umd-auxiliary-comments-object/index.js | it("should run", function() {
});
it("should have auxiliary comments", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch("//test " + "comment " + "commonjs");
expect(source).toMatch("//test " + "comment " + "commonjs2");
expect(source).toMatch("//test... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/umd-auxiliary-comments-object/webpack.config.js | test/configCases/target/umd-auxiliary-comments-object/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "NamedLibrary",
libraryTarget: "umd",
umdNamedDefine: true,
auxiliaryComment: {
commonjs: "test comment commonjs",
commonjs2: "test comment commonjs2",
amd: "test comment amd",
root: "test comme... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-named/index.js | test/configCases/target/amd-container-named/index.js | it("should run", function() {});
it("should name define", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch("window['clientContainer'].define(\"clientContainer\",");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-named/webpack.config.js | test/configCases/target/amd-container-named/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../types").Configuration} */
module.exports = {
output: {
library: {
type: "amd",
name: "clientContainer",
amdContainer: "window['clientContainer']"
}
},
node: {
__dirname: false,
__filename: false
},
plugins: [
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named/index.js | test/configCases/target/system-named/index.js | /* This test verifies that when output.library is specified that the compiled bundle provides
* the library name to System during the System.register
*/
it("should call System.register with a name", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named/test.config.js | test/configCases/target/system-named/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
},
afterExecute: () => {
System.execute("named-system-module");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-named/webpack.config.js | test/configCases/target/system-named/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: "named-system-module",
libraryTarget: "system"
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/test.filter.js | test/configCases/target/node-dynamic-import/test.filter.js | "use strict";
const supportsArrowFn = require("../../../helpers/supportsArrowFunctionExpression");
module.exports = () => supportsArrowFn();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/two.js | test/configCases/target/node-dynamic-import/two.js | module.exports = 2; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/index.js | test/configCases/target/node-dynamic-import/index.js | function testCase(load, done) {
load("two", 2, function() {
var sync = true;
load("one", 1, function() {
expect(sync).toBe(false);
load("three", 3, function() {
var sync = true;
load("two", 2, function() {
expect(sync).toBe(true);
done();
});
Promise.resolve().then(function() {}).th... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/webpack.config.js | test/configCases/target/node-dynamic-import/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "node",
performance: {
hints: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir2/two.js | test/configCases/target/node-dynamic-import/dir2/two.js | module.exports = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir2/one.js | test/configCases/target/node-dynamic-import/dir2/one.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir2/three.js | test/configCases/target/node-dynamic-import/dir2/three.js | module.exports = 3;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir/two.js | test/configCases/target/node-dynamic-import/dir/two.js | module.exports = 2;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir/one.js | test/configCases/target/node-dynamic-import/dir/one.js | module.exports = 1;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/node-dynamic-import/dir/three.js | test/configCases/target/node-dynamic-import/dir/three.js | module.exports = 3;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/electron-renderer/index.js | test/configCases/target/electron-renderer/index.js | const foo = require("foo");
it("should use browser main field", () => {
expect(foo).toBe("browser");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/electron-renderer/webpack.config.js | test/configCases/target/electron-renderer/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "electron-renderer",
optimization: {
minimize: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/electron-renderer/node_modules/foo/main.js | test/configCases/target/electron-renderer/node_modules/foo/main.js | module.exports = "main";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/electron-renderer/node_modules/foo/browser.js | test/configCases/target/electron-renderer/node_modules/foo/browser.js | module.exports = "browser";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-unnamed/index.js | test/configCases/target/system-unnamed/index.js | /* This test verifies that when there is no output.library specified that the call to
* System.register does not include a name argument.
*/
it("should call System.register without a name", function() {});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-unnamed/test.config.js | test/configCases/target/system-unnamed/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
},
afterExecute: () => {
System.execute("(anonym)");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-unnamed/webpack.config.js | test/configCases/target/system-unnamed/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
libraryTarget: "system"
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-require/index.js | test/configCases/target/amd-container-require/index.js | it("should run", function() {});
it("should name require", function() {
var fs = nodeRequire("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch(/window\['clientContainer'\]\.require\(\[[^\]]*\], (function)?\(/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-container-require/webpack.config.js | test/configCases/target/amd-container-require/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../types").Configuration} */
module.exports = {
output: {
library: {
type: "amd-require",
amdContainer: "window['clientContainer']"
}
},
node: {
__dirname: false,
__filename: false
},
plugins: [
new webpack.BannerP... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-require/index.js | test/configCases/target/amd-require/index.js | it("should run", function() {});
it("should name require", function() {
var fs = nodeRequire("fs");
var source = fs.readFileSync(__filename, "utf-8");
expect(source).toMatch(/require\(\[[^\]]*\], (function)?\(/);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/amd-require/webpack.config.js | test/configCases/target/amd-require/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
libraryTarget: "amd-require"
},
node: {
__dirname: false,
__filename: false
},
plugins: [
new webpack.BannerPlugin({
raw: true,
banner:
"var nodeRequire = requ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-context/index.js | test/configCases/target/system-context/index.js | // This test verifies that the System.register context is made available to webpack bundles
it("should be able to use the System.register context", function() {
expect(__system_context__).toBeTruthy();
expect(__system_context__.meta).toBeTruthy();
expect(typeof __system_context__.import).toBe("function");
expe... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-context/test.config.js | test/configCases/target/system-context/test.config.js | "use strict";
const System = require("../../../helpers/fakeSystem");
module.exports = {
beforeExecute: () => {
System.init();
},
moduleScope(scope) {
scope.System = System;
},
afterExecute: () => {
System.execute("(anonym)");
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/target/system-context/webpack.config.js | test/configCases/target/system-context/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
library: {
type: "system"
}
},
node: {
__dirname: false,
__filename: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/baz.js | test/configCases/loaders-and-plugins-falsy/basic/baz.js | export default "test";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/index.js | test/configCases/loaders-and-plugins-falsy/basic/index.js | import foo from "./foo.js?external";
import bar from "./bar.js";
import baz from "./baz.js?custom-use";
import other from "./other.js";
it("should work with falsy plugins and loaders", function() {
expect(ONE).toBe("ONE");
expect(foo.endsWith("?external")).toBe(true);
expect(bar).toBe("test");
expect(baz).toBe("te... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/loader.js | test/configCases/loaders-and-plugins-falsy/basic/loader.js | /** @type {import("../../../../").LoaderDefinition<{ value: any }>} */
module.exports = function loader(content) {
return content.replace(/test/, "NEW");
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/bar.js | test/configCases/loaders-and-plugins-falsy/basic/bar.js | export default "test";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/foo.js | test/configCases/loaders-and-plugins-falsy/basic/foo.js | export default "test";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/other.js | test/configCases/loaders-and-plugins-falsy/basic/other.js | export default "test";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js | test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js | "use strict";
/** @typedef {import("../../../../").Compiler} Compiler */
const DefinePlugin = require("../../../../").DefinePlugin;
const nullValue = null;
const undefinedValue = undefined;
const falseValue = false;
const zeroValue = 0;
const emptyStringValue = "";
class FailPlugin {
apply() {
throw new Error("F... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/empty-config/index.js | test/configCases/simple/empty-config/index.js | it("should compile and run the test", function() {
}); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/empty-config/webpack.config.js | test/configCases/simple/empty-config/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler/index.js | test/configCases/simple/multi-compiler/index.js | it("should run a multi compiler", function() {
}); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler/webpack.config.js | test/configCases/simple/multi-compiler/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [{}];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler-functions-export/index.js | test/configCases/simple/multi-compiler-functions-export/index.js | it("should run a multi compiler with functions with export default", function() {
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler-functions-export/webpack.config.js | test/configCases/simple/multi-compiler-functions-export/webpack.config.js | "use strict";
module.exports.default = [
function empty() {
return {};
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler-functions/index.js | test/configCases/simple/multi-compiler-functions/index.js | it("should run a multi compiler with functions", function() {
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/simple/multi-compiler-functions/webpack.config.js | test/configCases/simple/multi-compiler-functions/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
function empty() {
return {};
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/test.filter.js | test/configCases/module/issue-17014-webworker/test.filter.js | "use strict";
const supportsWorker = require("../../../helpers/supportsWorker");
module.exports = () => supportsWorker();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/index.js | test/configCases/module/issue-17014-webworker/index.js | it("should work", async () => {
const worker = new Worker(new URL("./worker.js", import.meta.url), {
type: "module"
});
worker.postMessage("ok");
const result = await new Promise(resolve => {
worker.onmessage = event => {
resolve(event.data);
};
});
expect(result).toBe("data: OK, thanks");
await worker.... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/test.config.js | test/configCases/module/issue-17014-webworker/test.config.js | "use strict";
module.exports = {
// findBundle() {
// return ["./common.mjs", "./bundle0.mjs"];
// }
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/worker.js | test/configCases/module/issue-17014-webworker/worker.js | import upper from "./module.js";
self.onmessage = async event => {
postMessage(`data: ${upper(event.data)}, thanks`);
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/webpack.config.js | test/configCases/module/issue-17014-webworker/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
module: true
},
experiments: {
outputModule: true
},
target: ["web", "es2020"],
optimization: {
splitChunks: {
minSize: 1,
maxSize: 1
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/issue-17014-webworker/module.js | test/configCases/module/issue-17014-webworker/module.js | export default function upper(str) {
return str.toUpperCase();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/non-webpack-require/mod.js | test/configCases/module/non-webpack-require/mod.js | module.exports = "module text";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/non-webpack-require/baz.js | test/configCases/module/non-webpack-require/baz.js | export default "baz module text";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/non-webpack-require/test.filter.js | test/configCases/module/non-webpack-require/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/module/non-webpack-require/index.js | test/configCases/module/non-webpack-require/index.js | import { createRequire as func_create_require, builtinModules as builtin } from "module";
import external from "external-module";
import externalOther from "external-other-module";
import baz from "./baz.js";
it("should work with __non_webpack_require__ and ES modules", function () {
const foo = __non_webpack_require... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/non-webpack-require/webpack.config.js | test/configCases/module/non-webpack-require/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
target: ["node", "es2020"],
experiments: {
outputModule: true
},
output: {
module: true,
iife: true
},
externals: {
"external-module": "node-commonjs external-module",
"externa... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/module/runtime-chunk/index.js | test/configCases/module/runtime-chunk/index.js | it("should compile", () => {});
| 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.