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/statsCases/aggressive-splitting-entry/a.js | test/statsCases/aggressive-splitting-entry/a.js | /*************************************************************************************************/
/*************************************************************************************************/
/*************************************************************************************************/
/*******************... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/error-stack-disabled-error/index.js | test/statsCases/error-stack-disabled-error/index.js | // Empty entry - errors are added via plugin
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/error-stack-disabled-error/webpack.config.js | test/statsCases/error-stack-disabled-error/webpack.config.js | "use strict";
const { WebpackError } = require("../../../");
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "development",
entry: "./index.js",
stats: {
errorStack: false
},
plugins: [
(compiler) => {
compiler.hooks.compilation.tap("Test", (compilation) => {
const err = new ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/chunk-d.js | test/statsCases/import-with-invalid-options-comments/chunk-d.js | module.exports = "chunk-d"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/index.js | test/statsCases/import-with-invalid-options-comments/index.js | import(/* webpackChunkName: "chunk" */ "./chunk"); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/chunk-a.js | test/statsCases/import-with-invalid-options-comments/chunk-a.js | module.exports = "chunk-a"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/chunk.js | test/statsCases/import-with-invalid-options-comments/chunk.js | export default function() {
import(/* webpackPrefetch: true, webpackChunkName: notGoingToCompileChunkName */ "./chunk-a");
import(/* webpackPrefetch: 0, webpackChunkName: "goingToCompileChunkName-b" */ "./chunk-b");
import(/* webpack Prefetch: 0, webpackChunkName: "notGoingToCompile-c" */ "./chunk-c");
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/chunk-c.js | test/statsCases/import-with-invalid-options-comments/chunk-c.js | module.exports = "chunk-c"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/webpack.config.js | test/statsCases/import-with-invalid-options-comments/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
output: {
chunkFilename: "[name].js"
},
stats: {
timings: false,
hash: false,
entrypoints: false,
assets: false,
errorDetails: false,
moduleTrace: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/import-with-invalid-options-comments/chunk-b.js | test/statsCases/import-with-invalid-options-comments/chunk-b.js | module.exports = "chunk-b"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/index.js | test/statsCases/resolve-plugin-context/index.js | require("abc");
require("def");
require("xyz");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/ResolvePackageFromRootPlugin.js | test/statsCases/resolve-plugin-context/ResolvePackageFromRootPlugin.js | "use strict";
/** @typedef {import("enhanced-resolve").Resolver} Resolver */
/** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */
/** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */
/**
* @template T, R
* @typedef {import("tapable").AsyncSeriesBailHook<T, R>} AsyncSeries... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/webpack.config.js | test/statsCases/resolve-plugin-context/webpack.config.js | "use strict";
const ResolvePackageFromRootPlugin = require("./ResolvePackageFromRootPlugin");
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
output: {
filename: "bundle.js"
},
resolve: {
plugins: [new ResolvePackageFromRootPlugin(__dirname)]
},
sta... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/node_modules/def/index.js | test/statsCases/resolve-plugin-context/node_modules/def/index.js | require("xyz");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/node_modules/def/node_modules/xyz/index.js | test/statsCases/resolve-plugin-context/node_modules/def/node_modules/xyz/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/node_modules/abc/index.js | test/statsCases/resolve-plugin-context/node_modules/abc/index.js | require("xyz");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/node_modules/abc/node_modules/xyz/index.js | test/statsCases/resolve-plugin-context/node_modules/abc/node_modules/xyz/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/resolve-plugin-context/node_modules/xyz/index.js | test/statsCases/resolve-plugin-context/node_modules/xyz/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/dynamic-import/babel.config.js | test/statsCases/dynamic-import/babel.config.js | module.exports = {
presets: [
['@babel/preset-react', { runtime: 'automatic' }],
],
sourceType: 'unambiguous'
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/dynamic-import/webpack.config.js | test/statsCases/dynamic-import/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
devtool: false,
mode: "development",
module: {
rules: [
{
exclude: /node_modules/,
test: /\.[cm]?js$/,
use: {
loader: "babel-loader",
options: {
presets: [["@babel/preset-react", { runtime: "automatic"... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/dynamic-import/src/index.js | test/statsCases/dynamic-import/src/index.js | import React from 'react'
import { createRoot } from 'react-dom/client'
const Loading = () => 'Loading...'
class AsyncComponent extends React.Component {
state = { Component: Loading }
constructor(props) {
super(props)
import(/* webpackChunkName: 'pages/[request]' */ `./pages/${props.page}`)
.then(({ defau... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/dynamic-import/src/pages/home.js | test/statsCases/dynamic-import/src/pages/home.js |
const paths = [
'1111 1111111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 1... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/all-stats/index.js | test/statsCases/all-stats/index.js | import text1 from "data:text/plain;base64,szsaAAdsadasdfafasfasAADas123aasdasd=="
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/all-stats/webpack.config.js | test/statsCases/all-stats/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "development",
entry: "./index.js",
output: {
filename: "bundle.js"
},
module: {
rules: [
{
mimetype: "text/plain",
type: "asset"
}
]
},
stats: { all: true }
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/index.js | test/statsCases/split-chunks/index.js | import(/* webpackChunkName: "async-a" */ "./a");
import(/* webpackChunkName: "async-b" */ "./b");
import(/* webpackChunkName: "async-c" */ "./c");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/b.js | test/statsCases/split-chunks/b.js | import d from "./d";
import f from "./f";
import x from "x";
import y from "y";
export default "b" + d + f + x + y;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/g.js | test/statsCases/split-chunks/g.js | import f from "./f";
export default "g" + f;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/d.js | test/statsCases/split-chunks/d.js | export default "d";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/f.js | test/statsCases/split-chunks/f.js | export default "f";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/e.js | test/statsCases/split-chunks/e.js | export default "e";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/webpack.config.js | test/statsCases/split-chunks/webpack.config.js | "use strict";
const stats = {
hash: false,
timings: false,
builtAt: false,
assets: false,
chunks: true,
chunkRelations: true,
chunkOrigins: true,
entrypoints: true,
modules: false
};
/** @type {import("../../../").Configuration[]} */
module.exports = [
{
name: "default",
mode: "production",
entry: {
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/c.js | test/statsCases/split-chunks/c.js | import d from "./d";
import f from "./f";
import x from "x";
import z from "z";
export default "c" + d + f + x + z;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/a.js | test/statsCases/split-chunks/a.js | import d from "./d";
import e from "./e";
import x from "x";
import y from "y";
export default "a" + d + e + x + y;
import(/* webpackChunkName: "async-g" */ "./g");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/node_modules/xy.js | test/statsCases/split-chunks/node_modules/xy.js | export default "xy";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/node_modules/x.js | test/statsCases/split-chunks/node_modules/x.js | export default "x";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/node_modules/y.js | test/statsCases/split-chunks/node_modules/y.js | export default "y";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/node_modules/z.js | test/statsCases/split-chunks/node_modules/z.js | export default "z";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks/node_modules/xyz.js | test/statsCases/split-chunks/node_modules/xyz.js | export default "xyz";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/wasm-explorer-examples-sync/test.filter.js | test/statsCases/wasm-explorer-examples-sync/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/statsCases/wasm-explorer-examples-sync/index.js | test/statsCases/wasm-explorer-examples-sync/index.js | it("Q_rsqrt should work", function() {
return import("./tests").then(t => t.run_Q_rsqrt());
});
it("testFunction should work", function() {
return import("./tests").then(t => t.run_testFunction());
});
it("fact should work", function() {
return import("./tests").then(t => t.run_fact());
});
it("popcnt should work... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/wasm-explorer-examples-sync/tests.js | test/statsCases/wasm-explorer-examples-sync/tests.js | import * as Q_rsqrt from "./Q_rsqrt.wasm";
import * as testFunction from "./testFunction.wasm";
import * as fact from "./fact.wasm";
import * as popcnt from "./popcnt.wasm";
import * as fastMath from "./fast-math.wasm";
import * as duff from "./duff.wasm";
export function run_Q_rsqrt() {
const result = Q_rsqrt._Z7Q_r... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/wasm-explorer-examples-sync/webpack.config.js | test/statsCases/wasm-explorer-examples-sync/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
output: {
filename: "bundle.js"
},
optimization: {
splitChunks: {
minSize: {},
maxSize: {
webassembly: 500
}
}
},
stats: {
chunks: true,
chunkModules: true,
dependentM... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/wasm-explorer-examples-sync/node_modules/env.js | test/statsCases/wasm-explorer-examples-sync/node_modules/env.js | export const _Z3powdd = Math.pow;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/prefetched2.js | test/statsCases/prefetch/prefetched2.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/prefetched.js | test/statsCases/prefetch/prefetched.js | setTimeout(() => {
import(/* webpackPrefetch: 10, webpackChunkName: "inner" */"./inner");
import(/* webpackPrefetch: 20, webpackChunkName: "inner2" */"./inner2");
import(/* webpackChunkName: "inner2" */"./inner3");
}, 5000);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/inner.js | test/statsCases/prefetch/inner.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/index.js | test/statsCases/prefetch/index.js | import "./with-nested";
import(/* webpackPrefetch: 1, webpackChunkName: "prefetched" */ "./prefetched");
setTimeout(() => {
import(/* webpackChunkName: "normal" */"./normal");
}, 500);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/with-nested.js | test/statsCases/prefetch/with-nested.js | import(/* webpackPrefetch: -20, webpackChunkName: "prefetched2" */"./prefetched2");
import(/* webpackPrefetch: 3, webpackChunkName: "prefetched2" */"./prefetched2");
import(/* webpackPrefetch: -10, webpackChunkName: "prefetched3" */"./prefetched3");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/inner2.js | test/statsCases/prefetch/inner2.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/webpack.config.js | test/statsCases/prefetch/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
stats: {
all: false,
assets: true,
ids: true,
entrypoints: true,
chunkGroupChildren: true,
chunkRelations: true,
chunks: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/prefetched3.js | test/statsCases/prefetch/prefetched3.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/inner3.js | test/statsCases/prefetch/inner3.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/prefetch/normal.js | test/statsCases/prefetch/normal.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks-chunk-name/index.js | test/statsCases/split-chunks-chunk-name/index.js | import(/* webpackChunkName: "async-a" */ "a");
import(/* webpackChunkName: "async-b" */ "b");
import(/* webpackChunkName: "async-c-1" */ "c");
import(/* webpackChunkName: "async-c-2" */ "c");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks-chunk-name/webpack.config.js | test/statsCases/split-chunks-chunk-name/webpack.config.js | "use strict";
const stats = {
hash: false,
timings: false,
builtAt: false,
assets: false,
chunks: true,
chunkRelations: true,
chunkModules: true,
dependentModules: true,
chunkOrigins: true,
entrypoints: true,
modules: false
};
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "prod... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks-chunk-name/node_modules/b.js | test/statsCases/split-chunks-chunk-name/node_modules/b.js | export default "b";
// content content content content content content
// content content content content content content
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks-chunk-name/node_modules/c.js | test/statsCases/split-chunks-chunk-name/node_modules/c.js | export default "c";
// content content content content content content
// content content content content content content
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/split-chunks-chunk-name/node_modules/a.js | test/statsCases/split-chunks-chunk-name/node_modules/a.js | export default "a";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/index.js | test/statsCases/side-effects-simple-unused/index.js | import def, { z } from "pmodule";
console.log(def, z); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/webpack.config.js | test/statsCases/side-effects-simple-unused/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration} */
module.exports = {
mode: "production",
entry: "./index",
stats: {
orphanModules: true,
nestedModules: true,
usedExports: true,
reasons: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js | test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js | export * from "./a";
export { x, y, z } from "./b";
export default "def";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js | test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js | var x = "x";
var y = "y";
export { x, y };
export { z } from "./c";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js | test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js | var z = "z";
export { z };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js | test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js | var a = "a";
var b = "b";
var c = "c";
export { a, b, c };
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/preset-mixed-array/index.js | test/statsCases/preset-mixed-array/index.js | // huh?
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/statsCases/preset-mixed-array/webpack.config.js | test/statsCases/preset-mixed-array/webpack.config.js | "use strict";
/** @type {import("../../../").Configuration[]} */
module.exports = [
{
name: "minimal",
mode: "production",
entry: "./index",
output: {
filename: "minimal.js"
},
stats: "minimal"
},
{
name: "none",
mode: "production",
entry: "./index",
output: {
filename: "none.js"
},
s... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/addStyle.js | test/hotPlayground/addStyle.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
module.exports = function(cssCode) {
var styleElement = document.createElement("style");
styleElement.type = "text/css";
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = cssCode;
} else {
styleEle... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/style.js | test/hotPlayground/style.js | // This file can update, because it accept itself.
// A dispose handler removes the old <style> element.
var addStyle = require("./addStyle");
var dispose = addStyle("body { background: green; }");
if(module.hot) {
module.hot.accept();
module.hot.dispose(dispose);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/index.js | test/hotPlayground/index.js | // This module is not accepted nor declined.
// Any change will make the update fail.
// If running in webpack-dev-server, it will do a complete reload on abort or fail.
window.onload = function() {
if(module.hot) {
var checkButton = document.createElement("button");
checkButton.innerText = "Update!";
checkBu... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/element.js | test/hotPlayground/element.js | // This file can update, because 'index.js' accept it.
var element = document.createElement("h4");
element.innerText = "This is 'element.js'.";
var x = document.createElement("b");
x.innerHTML = require("./element-dependency");
element.appendChild(x);
module.exports = element; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/style2.js | test/hotPlayground/style2.js | // This file can update, because it accept itself.
// A dispose handler removes the old <style> element.
var addStyle = require("./addStyle");
var dispose = addStyle("body { color: blue; }");
if(module.hot) {
module.hot.accept();
module.hot.dispose(dispose);
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/webpack.config.js | test/hotPlayground/webpack.config.js | "use strict";
const path = require("path");
const webpack = require("../../");
/** @type {import("../../").Configuration} */
module.exports = {
entry: ["../../hot/dev-server", "./index.js"],
output: {
filename: "bundle.js",
hotUpdateChunkFilename: "[id].[fullhash].bundle-update.js",
hashDigestLength: 4
},
p... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/html.js | test/hotPlayground/html.js | // This file can update, because 'index.js' accept it.
module.exports = "This text comes from <b>'html.js'</b>."; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/element-dependency.js | test/hotPlayground/element-dependency.js | // This file doesn't accept itself neither the parent accepts it.
// On change it will bubble to all parents (which is 'element.js'),
// this parent is accepted by 'index.js'.
// So on change 'element-dependency.js' and 'element.js' will be reloaded.
module.exports = "This text comes from <b>'element-dependency.js'</... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/hotPlayground/applyStyle2.js | test/hotPlayground/applyStyle2.js | // This file can update, because it accept itself.
// A dispose handler removes the old <style> element.
require("bundle!./style2.js");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/memoryLimitCases/json/index.js | test/memoryLimitCases/json/index.js | const ctx = require.context("./src", false, /\.json$/);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/bin/webpack.js | bin/webpack.js | #!/usr/bin/env node
"use strict";
/**
* @param {string} command process to run
* @param {string[]} args command line arguments
* @returns {Promise<void>} promise
*/
const runCommand = (command, args) => {
const cp = require("child_process");
return new Promise((resolve, reject) => {
const executedCommand = c... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/buildAll.js | examples/buildAll.js | "use strict";
const cp = require("child_process");
const examples = require("./examples");
const commands = [
...examples,
examples.filter((dirname) => dirname.includes("persistent-caching"))
].map((dirname) => `cd ${dirname} && node build.js`);
let failed = 0;
let i = 0;
for (const cmd of commands) {
console.lo... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/template-common.js | examples/template-common.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const fs = require("fs");
const path = require("path");
/**
* @param {string} regExpStr reg exp string
* @returns {string} less strict string regexp
*/
function lessStrict(regExpStr) {
regExpStr = reg... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/examples.js | examples/examples.js | "use strict";
const fs = require("fs");
const path = require("path");
/**
* @param {string} folder the folder
* @param {number} depth the depth
* @returns {string[]} found templates
*/
function findInFolder(folder, depth) {
if (fs.existsSync(path.join(folder, "template.md"))) {
return [folder];
} else if (dep... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/build-common.js | examples/build-common.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const cp = require("child_process");
const fs = require("fs");
const path = require("path");
const async = require("neo-async");
const tc = require("./template-common");
const extraArgs = "";
// @ts-expe... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/b.js | examples/extra-async-chunk/b.js | module.exports = "b"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/build.js | examples/extra-async-chunk/build.js | require("../build-common"); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/d.js | examples/extra-async-chunk/d.js | module.exports = "d"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/webpack.config.js | examples/extra-async-chunk/webpack.config.js | "use strict";
/** @type {import("webpack").Configuration} */
const config = {
// mode: "development" || "production",
optimization: {
splitChunks: {
minSize: 0 // This example is too small
},
chunkIds: "named" // To keep filename consistent between different modes (for example building only)
}
};
module.e... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/c.js | examples/extra-async-chunk/c.js | module.exports = "c"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/example.js | examples/extra-async-chunk/example.js | // a chunks with a, b, c
require(["./a", "./b", "./c"]);
// a chunk with a, b, d
require.ensure(["./a"], function(require) {
require("./b");
require("./d");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/extra-async-chunk/a.js | examples/extra-async-chunk/a.js | module.exports = "a"; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/chunkhash/async2.js | examples/chunkhash/async2.js | // some async loaded module
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/chunkhash/build.js | examples/chunkhash/build.js | global.NO_TARGET_ARGS = true;
require("../build-common"); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/chunkhash/webpack.config.js | examples/chunkhash/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("webpack").Configuration} */
const config = {
// mode: "development" || "production",
entry: {
main: "./example"
},
optimization: {
runtimeChunk: true
},
output: {
path: path.join(__dirname, "dist"),
filename: "[name].chunkhash.js",
chunkFi... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/chunkhash/async1.js | examples/chunkhash/async1.js | // some async loaded module
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/chunkhash/example.js | examples/chunkhash/example.js | // some module
import("./async1");
import("./async2");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/asset-svg-data-uri/build.js | examples/asset-svg-data-uri/build.js | require("../build-common");
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/asset-svg-data-uri/webpack.config.js | examples/asset-svg-data-uri/webpack.config.js | "use strict";
const svgToMiniDataURI = require("mini-svg-data-uri");
/** @type {import("webpack").Configuration} */
const config = {
output: {
assetModuleFilename: "images/[hash][ext]"
},
module: {
rules: [
{
test: /\.(png|jpg)$/,
type: "asset"
},
{
test: /\.svg$/,
type: "asset",
g... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/asset-svg-data-uri/example.js | examples/asset-svg-data-uri/example.js | import svg from "./images/file.svg";
const container = document.createElement("div");
Object.assign(container.style, {
display: "flex",
justifyContent: "center"
});
document.body.appendChild(container);
function createImageElement(title, src) {
const div = document.createElement("div");
div.style.textAlign = "cen... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/commonjs/increment.js | examples/commonjs/increment.js | const add = require('./math').add;
exports.increment = function(val) {
return add(val, 1);
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/commonjs/math.js | examples/commonjs/math.js | exports.add = function() {
var sum = 0, i = 0, args = arguments, l = args.length;
while (i < l) {
sum += args[i++];
}
return sum;
}; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/commonjs/build.js | examples/commonjs/build.js | require("../build-common"); | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/examples/commonjs/example.js | examples/commonjs/example.js | const inc = require('./increment').increment;
const a = 1;
inc(a); // 2
| 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.