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/ignore/checkResource-two-arguments/folder-b/normal-module.js | test/configCases/ignore/checkResource-two-arguments/folder-b/normal-module.js | module.exports = require("./ignored-module");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-exports/file.loader.js | test/configCases/performance/many-exports/file.loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function () {
var str = "";
for (var i = 0; i < 1000; i++) {
str += `export var a${i} = ${i};\n`;
}
return str;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-exports/index.js | test/configCases/performance/many-exports/index.js | import sum from "./reexport.loader.js!";
it("should compile a module with many harmony exports in acceptable time", function() {
expect(sum).toBe(499500);
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-exports/test.config.js | test/configCases/performance/many-exports/test.config.js | "use strict";
module.exports = {
timeout: 10000
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-exports/reexport.loader.js | test/configCases/performance/many-exports/reexport.loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function () {
var str = 'import * as i from "./file.loader.js!";\n';
str += "var sum = 0;\n";
for (var i = 0; i < 1000; i++) {
str += `sum += i.a${i};\n`;
}
str += "export default sum;\n";
return str;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-exports/webpack.config.js | test/configCases/performance/many-exports/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
minimize: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/start.js | test/configCases/performance/many-async-imports/start.js | export { default } from "./reexport.loader.js!";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/index.js | test/configCases/performance/many-async-imports/index.js | import promise from "./start";
it("should compile a module with many async imports in acceptable time", function(done) {
promise.then(() => done(), e => done(e));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/test.config.js | test/configCases/performance/many-async-imports/test.config.js | "use strict";
module.exports = {
timeout: 10000
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/leaf.js | test/configCases/performance/many-async-imports/leaf.js | import("./start");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/reexport.loader.js | test/configCases/performance/many-async-imports/reexport.loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function () {
var str = "export default Promise.all([\n";
for (var i = 0; i < 6; i++) {
for (var j = 0; j < 2; j++) {
str += `import("./reexport.loader.js!?${i}"),\n`;
}
}
str += "]);";
return str;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/performance/many-async-imports/webpack.config.js | test/configCases/performance/many-async-imports/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
minimize: false
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/index.js | test/configCases/hash-length/hashed-module-ids/index.js | it("should have unique ids", function () {
var ids = [];
for(var i = 1; i <= 15; i++) {
var id = require("./files/file" + i + ".js");
expect(ids.indexOf(id)).toBe(-1);
ids.push(id);
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/webpack.config.js | test/configCases/hash-length/hashed-module-ids/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
optimization: {
moduleIds: false
},
plugins: [
new webpack.ids.HashedModuleIdsPlugin({
hashDigestLength: 2
})
]
},
{
optimization: {
moduleIds: false
},
pl... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file15.js | test/configCases/hash-length/hashed-module-ids/files/file15.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file1.js | test/configCases/hash-length/hashed-module-ids/files/file1.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file13.js | test/configCases/hash-length/hashed-module-ids/files/file13.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file10.js | test/configCases/hash-length/hashed-module-ids/files/file10.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file2.js | test/configCases/hash-length/hashed-module-ids/files/file2.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file7.js | test/configCases/hash-length/hashed-module-ids/files/file7.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file5.js | test/configCases/hash-length/hashed-module-ids/files/file5.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file14.js | test/configCases/hash-length/hashed-module-ids/files/file14.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file3.js | test/configCases/hash-length/hashed-module-ids/files/file3.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file12.js | test/configCases/hash-length/hashed-module-ids/files/file12.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file6.js | test/configCases/hash-length/hashed-module-ids/files/file6.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file9.js | test/configCases/hash-length/hashed-module-ids/files/file9.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file11.js | test/configCases/hash-length/hashed-module-ids/files/file11.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file8.js | test/configCases/hash-length/hashed-module-ids/files/file8.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/hashed-module-ids/files/file4.js | test/configCases/hash-length/hashed-module-ids/files/file4.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/output-filename/no-async.js | test/configCases/hash-length/output-filename/no-async.js | it("should compile and run the test " + NAME, function() {});
if (Math.random() < -1) {
require(["./chunk"], function() {});
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/output-filename/index.js | test/configCases/hash-length/output-filename/index.js | it("should compile and run the test " + NAME, function () {});
it("should load additional chunks in " + NAME, function (done) {
require(['./chunk'], function () {
done();
});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/output-filename/chunk.js | test/configCases/hash-length/output-filename/chunk.js | module.exports = "chunk";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/output-filename/test.config.js | test/configCases/hash-length/output-filename/test.config.js | "use strict";
const fs = require("fs");
const findFile = (files, regex) =>
files.find((file) => {
if (regex.test(file)) {
return true;
}
return false;
});
const verifyFilenameLength = (filename, expectedNameLength) => {
expect(filename).toMatch(new RegExp(`^.{${expectedNameLength}}$`));
};
module.expor... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/output-filename/webpack.config.js | test/configCases/hash-length/output-filename/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
name: "hash with length in publicPath",
output: {
publicPath: "/[fullhash:6]/",
filename: "bundle0.[fullhash:6].js",
chunkFilename: "[id].bundle0.[fullhash:6].js"
},
amd:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/index.js | test/configCases/hash-length/deterministic-module-ids/index.js | it("should have unique ids", function () {
var ids = [];
for(var i = 1; i <= 15; i++) {
var id = require("./files/file" + i + ".js");
expect(ids.indexOf(id)).toBe(-1);
ids.push(id);
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/webpack.config.js | test/configCases/hash-length/deterministic-module-ids/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
optimization: {
moduleIds: "deterministic"
}
},
{
optimization: {
moduleIds: false
},
plugins: [
new webpack.ids.DeterministicModuleIdsPlugin({
maxLength: 0
})... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file15.js | test/configCases/hash-length/deterministic-module-ids/files/file15.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file1.js | test/configCases/hash-length/deterministic-module-ids/files/file1.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file13.js | test/configCases/hash-length/deterministic-module-ids/files/file13.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file10.js | test/configCases/hash-length/deterministic-module-ids/files/file10.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file2.js | test/configCases/hash-length/deterministic-module-ids/files/file2.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file7.js | test/configCases/hash-length/deterministic-module-ids/files/file7.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file5.js | test/configCases/hash-length/deterministic-module-ids/files/file5.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file14.js | test/configCases/hash-length/deterministic-module-ids/files/file14.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file3.js | test/configCases/hash-length/deterministic-module-ids/files/file3.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file12.js | test/configCases/hash-length/deterministic-module-ids/files/file12.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file6.js | test/configCases/hash-length/deterministic-module-ids/files/file6.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file9.js | test/configCases/hash-length/deterministic-module-ids/files/file9.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file11.js | test/configCases/hash-length/deterministic-module-ids/files/file11.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file8.js | test/configCases/hash-length/deterministic-module-ids/files/file8.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/hash-length/deterministic-module-ids/files/file4.js | test/configCases/hash-length/deterministic-module-ids/files/file4.js | module.exports = module.id;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/disable-dynamic-url/index.js | test/configCases/url/disable-dynamic-url/index.js | it("should compile fine", () => {
let dyn1 = "dynamic"
let url1 = new URL(`./${dyn1}?foo=bar`, import.meta.url)
expect(url1.search).toBe("?foo=bar")
expect(url1.pathname).toMatch("url/disable-dynamic-url/dynamic")
let dyn2 = "./dynamic"
let url2 = new URL(dyn2, import.meta.url)
expect(url2 instanceof URL).toBe(... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/disable-dynamic-url/webpack.config.js | test/configCases/url/disable-dynamic-url/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
module: {
parser: {
javascript: {
dynamicUrl: false
}
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/dynamic-template-literals-expr/index.js | test/configCases/url/dynamic-template-literals-expr/index.js | it("should compile fine", () => {
let dyn = "a"
let test
test = new URL(`./json/${dyn}.json`, import.meta.url)
expect(test).toMatch("json/a.json")
dyn = "b"
test = new URL(`./json/${dyn}.json`, import.meta.url)
expect(test).toMatch("json/b.json")
dyn = "c"
test = new URL(`./json/${dyn}.json`, import.meta.url)
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/dynamic-template-literals-expr/webpack.config.js | test/configCases/url/dynamic-template-literals-expr/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
assetModuleFilename: "[path][name][ext]"
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/dynamic-template-literals-expr/js/b.js | test/configCases/url/dynamic-template-literals-expr/js/b.js | export default 2
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/dynamic-template-literals-expr/js/c.js | test/configCases/url/dynamic-template-literals-expr/js/c.js | export default 3
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/dynamic-template-literals-expr/js/a.js | test/configCases/url/dynamic-template-literals-expr/js/a.js | export default 1
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/pure-dep/index.js | test/configCases/url/pure-dep/index.js | import { foo } from "./foo.js";
let generated = /** @type {string} */ (
__non_webpack_require__("fs").readFileSync(__filename, "utf-8")
);
it("should work", () => {
let idx = 0;
let count = 0;
while (idx < generated.length) {
let found = generated.indexOf("/* unused pure expression or super */", idx);
if (
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/pure-dep/foo.js | test/configCases/url/pure-dep/foo.js | const pureUrl1 = new URL("./lang/foo.json", import.meta.url);
export const foo = "foo";
export const pureUrl2 = new URL("./lang/" + "foo" + ".json", import.meta.url);
export const pureUrl3 = new URL(`./lang/${"foo"}.json`, import.meta.url);
export const impureUrl1 = new URL(
"./lang/" + (global.foo = "foo") + ".js... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/pure-dep/webpack.config.js | test/configCases/url/pure-dep/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
assetModuleFilename: "[path][name][ext]"
},
optimization: {
minimize: false,
innerGraph: true
},
module: {
parser: {
javascript: {
dynamicUrl: true
}
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/context-options/index.js | test/configCases/url/context-options/index.js | const throwModuleNotFound = fn => expect(fn).toThrow(/Cannot find module/);
it("should work with context options", () => {
// webpackInclude
let dyn = "/a.json";
let url = new URL(
/* webpackInclude: /.json$/ */ "./folder1" + dyn,
import.meta.url
);
expect(url).toMatch("folder1/a.json");
// webpackExclude
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/context-options/webpack.config.js | test/configCases/url/context-options/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
assetModuleFilename: "[path][name][ext]"
},
module: {
parser: {
javascript: {
dynamicUrl: true
}
}
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/context-options/folder1/b.js | test/configCases/url/context-options/folder1/b.js | export default "b";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/url/context-options/folder1/c.js | test/configCases/url/context-options/folder1/c.js | export default "c";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/async-node/test.filter.js | test/configCases/wasm/async-node/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/async-node/index.js | test/configCases/wasm/async-node/index.js | it("should work", function() {
return import("./module").then(function(module) {
const result = module.run();
expect(result).toEqual(84);
});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/async-node/webpack.config.js | test/configCases/wasm/async-node/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
target: "node",
module: {
rules: [
{
test: /\.wat$/,
loader: "wast-loader",
type: "webassembly/async"
}
]
},
output: {
module: true,
webassemblyModuleFilename: "[id].[hash].wasm"
},
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/async-node/module.js | test/configCases/wasm/async-node/module.js | import { getNumber } from "./wasm.wat?1";
import { getNumber as getNumber2 } from "./wasm.wat?2";
export function run() {
return getNumber() + getNumber2();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/missing-wasm-experiment/index.js | test/configCases/wasm/missing-wasm-experiment/index.js | it("should not compile the module", function () {
expect(() => require("./wasm.wasm"));
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js | test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js | "use strict";
module.exports = [
/^Pack got invalid because of write to: Compilation\/modules.+wasm.wasm$/
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/missing-wasm-experiment/webpack.config.js | test/configCases/wasm/missing-wasm-experiment/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/wasm/missing-wasm-experiment/errors.js | test/configCases/wasm/missing-wasm-experiment/errors.js | "use strict";
module.exports = [[/BREAKING CHANGE/, /experiments\.asyncWebAssembly/]];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/test.filter.js | test/configCases/wasm/universal/test.filter.js | "use strict";
const supportsResponse = require("../../../helpers/supportsResponse");
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly() && supportsResponse();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/index.js | test/configCases/wasm/universal/index.js | it("should allow to run a WebAssembly module (indirect)", function() {
return import("./module").then(function(module) {
const result = module.run();
expect(result).toEqual(42);
});
});
it("should allow to run a WebAssembly module (direct)", function() {
return import("./wasm.wat?2").then(function(wasm) {
con... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/test.config.js | test/configCases/wasm/universal/test.config.js | "use strict";
const fs = require("fs");
const url = require("url");
module.exports = {
moduleScope(scope, options) {
if (options.name.includes("node")) {
delete scope.window;
delete scope.document;
delete scope.self;
} else {
scope.fetch = (resource) =>
new Promise((resolve, reject) => {
fs.... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/worker.js | test/configCases/wasm/universal/worker.js | self.onmessage = async event => {
const { run } = await import("./module");
postMessage(`data: ${run()}, thanks`);
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/webpack.config.js | test/configCases/wasm/universal/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
name: "web",
target: ["web", "node"],
module: {
rules: [
{
test: /\.wat$/,
loader: "wast-loader",
type: "webassembly/async"
}
]
},
output: {
webassemblyModuleFilename: "[id].[hash].wasm"
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/universal/module.js | test/configCases/wasm/universal/module.js | import { add, getNumber } from "./wasm.wat?1";
export function run() {
return add(getNumber(), 2);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/module3.js | test/configCases/wasm/wasm-in-initial-chunk-error/module3.js | require("./wasm.wat");
require("./wasm2.wat");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js | test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/index.js | test/configCases/wasm/wasm-in-initial-chunk-error/index.js | import "./module";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/async.js | test/configCases/wasm/wasm-in-initial-chunk-error/async.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js | test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
output: {
webassemblyModuleFilename: "[id].[hash:3].wasm"
},
module: {
rules: [
{
test: /\.wat$/,
loader: "wast-loader",
type: "webassembly/sync"
}
]
},
experiments: {
syncWebAssembly:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/module2.js | test/configCases/wasm/wasm-in-initial-chunk-error/module2.js | require("./wasm.wat");
require("./module3");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/errors.js | test/configCases/wasm/wasm-in-initial-chunk-error/errors.js | "use strict";
module.exports = [
[
/\.\/wasm.wat/,
/WebAssembly module is included in initial chunk/,
/\* \.\/index.js --> \.\/module.js --> \.\/wasm.wat/,
/\* \.\.\. --> \.\/module.js --> \.\/module2.js --> \.\/wasm.wat/,
/\* \.\.\. --> \.\/module2.js --> \.\/module3.js --> \.\/wasm.wat/
],
[
/\.\/wasm... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/wasm-in-initial-chunk-error/module.js | test/configCases/wasm/wasm-in-initial-chunk-error/module.js | import { getNumber } from "./wasm.wat";
import("./async.js");
require("./module2");
getNumber();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/export-imported-global/env.js | test/configCases/wasm/export-imported-global/env.js | export const n = 1;
export const m = 1.25
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/export-imported-global/test.filter.js | test/configCases/wasm/export-imported-global/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/export-imported-global/index.js | test/configCases/wasm/export-imported-global/index.js | it("should export imported global", function() {
return import("./module").then(function({ v, w, x, test }) {
if (WebAssembly.Global) {
expect(v.constructor).toBe(WebAssembly.Global);
expect(w.constructor).toBe(WebAssembly.Global);
expect(x.constructor).toBe(WebAssembly.Global);
expect(+v).toBe(1);
e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/export-imported-global/webpack.config.js | test/configCases/wasm/export-imported-global/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
module: {
rules: [
{
test: /\.wat$/,
loader: "wast-loader",
type: "webassembly/sync"
}
]
},
experiments: {
syncWebAssembly: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/export-imported-global/module.js | test/configCases/wasm/export-imported-global/module.js | export * from "./module.wat";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/identical/test.filter.js | test/configCases/wasm/identical/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/identical/index.js | test/configCases/wasm/identical/index.js | it("should allow reference the same wasm multiple times", function() {
return import("./module").then(function(module) {
const result = module.run();
expect(result).toEqual(84);
});
});
it("should allow reference the same wasm multiple times (other chunk)", function() {
return import("./module?2").then(function... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/identical/webpack.config.js | test/configCases/wasm/identical/webpack.config.js | "use strict";
const { CachedSource } = require("webpack-sources");
const { AsyncWebAssemblyModulesPlugin } = require("../../../../").wasm;
/** @typedef {import("../../../../").Compiler} Compiler */
/** @type {import("../../../../").Configuration} */
module.exports = {
module: {
rules: [
{
test: /\.wat$/,
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/identical/module.js | test/configCases/wasm/identical/module.js | import { getNumber } from "./wasm.wat?1";
import { getNumber as getNumber2 } from "./wasm.wat?2";
export function run() {
return getNumber() + getNumber2();
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/import-wasm-wasm/test.filter.js | test/configCases/wasm/import-wasm-wasm/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => supportsWebAssembly();
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/import-wasm-wasm/index.js | test/configCases/wasm/import-wasm-wasm/index.js | it("should allow to run a WebAssembly module with imports", function() {
return import("./wasm.wat").then(function(wasm) {
const result = wasm.addNumber(20);
expect(result).toEqual(42);
});
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/import-wasm-wasm/webpack.config.js | test/configCases/wasm/import-wasm-wasm/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: "./index",
module: {
rules: [
{
test: /\.wat$/,
loader: "wast-loader",
type: "webassembly/sync"
}
]
},
experiments: {
syncWebAssembly: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/wasm/reference-types/test.filter.js | test/configCases/wasm/reference-types/test.filter.js | "use strict";
const supportsWebAssembly = require("../../../helpers/supportsWebAssembly");
module.exports = () => {
const [major] = process.versions.node.split(".").map(Number);
return major >= 18 && supportsWebAssembly();
};
| 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.