UNPKG

webpack

Version:

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

267 lines (266 loc) • 15.4 kB
{ "name": "webpack", "version": "5.112.2", "description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.", "homepage": "https://github.com/webpack/webpack", "bugs": "https://github.com/webpack/webpack/issues", "repository": { "type": "git", "url": "https://github.com/webpack/webpack.git" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/webpack" }, "license": "MIT", "author": "Tobias Koppers @sokra", "main": "lib/index.js", "types": "types.d.ts", "bin": { "webpack": "bin/webpack.js" }, "files": [ "lib/", "bin/", "hot/", "schemas/", "SECURITY.md", "module.d.ts", "types.d.ts" ], "scripts": { "prepare": "husky", "setup": "node ./setup/setup.js", "prelint": "yarn setup", "lint": "yarn lint:agents && yarn lint:special && node tooling/run-parallel.js lint:code lint:class-names lint:redundant-casts lint:types-all fmt:check lint:spellcheck", "lint:agents": "node tooling/check-agents-md-size.js", "lint:class-names": "node tooling/check-class-names.js", "lint:code": "node node_modules/eslint/bin/eslint.js --cache --concurrency auto .", "lint:redundant-casts": "node tooling/check-redundant-type-assertions.js", "lint:special": "node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node tooling/generate-css-data.js && node tooling/generate-html-data.js && node tooling/generate-js-data.js && node tooling/generate-schemas.js && node tooling/precompile-schemas.js && node tooling/generate-types.js --no-template-literals && node tooling/generate-internal-serializables.js", "lint:types": "node tooling/tsc-incremental.js types", "lint:types-test": "node tooling/tsc-incremental.js types-test -p tsconfig.types.test.json", "lint:types-benchmark": "node tooling/tsc-incremental.js types-benchmark -p tsconfig.types.benchmark.json", "lint:types-hot": "node tooling/tsc-incremental.js types-hot -p tsconfig.hot.json", "lint:types-module-test": "node tooling/tsc-incremental.js types-module-test -p tsconfig.module.test.json", "lint:types-all": "node tooling/run-parallel.js lint:types lint:types-test lint:types-benchmark lint:types-module-test lint:types-hot", "lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"", "validate:changeset": "node .changeset/changeset-validate.mjs", "version:release": "node ./node_modules/.bin/changeset version && node node_modules/prettier/bin/prettier.cjs --log-level warn --write CHANGELOG.md", "validate:types": "tsc -p tsconfig.validation.json", "fmt": "yarn fmt:base --log-level warn --write", "fmt:check": "yarn fmt:base --check", "fmt:base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .", "fix": "yarn fix:code && yarn fix:special && yarn fmt", "fix:code": "yarn lint:code --fix", "fix:special": "node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node tooling/generate-css-data.js --write && node tooling/generate-html-data.js --write && node tooling/generate-js-data.js --write && node tooling/generate-schemas.js --write && node tooling/precompile-schemas.js --write && node tooling/generate-types.js --no-template-literals --write && node tooling/generate-internal-serializables.js --write", "fix:serializables": "node tooling/generate-internal-serializables.js --write", "build:examples": "cd examples && node buildAll.js", "benchmark": "node --max-old-space-size=6144 --experimental-vm-modules --trace-deprecation --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping --no-minor-gc-task --no-maglev ./test/BenchmarkTestCases.benchmark.mjs", "playground": "webpack serve --config test/hotPlayground/webpack.config.js", "test:invariants": "yarn test:invariants:css && yarn test:invariants:html && yarn test:invariants:js && yarn test:invariants:xml", "test:invariants:css": "node tooling/compare-css-tools.js --invariants", "test:invariants:html": "node tooling/compare-html-tools.js --invariants", "test:invariants:js": "node tooling/compare-js-tools.js --invariants", "test:invariants:xml": "node tooling/compare-xml-tools.js --invariants", "test:invariants:full": "yarn test:invariants:css --require-corpus && yarn test:invariants:html --require-corpus && yarn test:invariants:js --require-corpus && yarn test:invariants:xml --require-corpus", "benchmark:css-tools": "node tooling/compare-css-tools.js", "benchmark:css-tools:setup": "node tooling/compare-css-tools.js --setup", "benchmark:html-tools": "node tooling/compare-html-tools.js", "benchmark:html-tools:setup": "node tooling/compare-html-tools.js --setup", "benchmark:js-tools": "node tooling/compare-js-tools.js", "benchmark:js-tools:setup": "node tooling/compare-js-tools.js --setup", "benchmark:xml-tools": "node tooling/compare-xml-tools.js", "benchmark:xml-tools:setup": "node tooling/compare-xml-tools.js --setup", "find-deep-imports": "node tooling/find-deep-webpack-imports.js", "find-deep-imports:check": "node tooling/find-deep-webpack-imports.js --check", "measure:color-agreement": "node tooling/measure-color-agreement.js", "hash:css-outputs": "node tooling/hash-css-outputs.js", "setup:browsers": "node tooling/install-browsers.js", "pretest": "yarn lint", "test": "yarn test:base", "test:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --workerIdleMemoryLimit=512MB --logHeapUsage", "test:basic": "yarn test:base --testMatch \"<rootDir>/test/*.basictest.js\"", "test:basic:deno": "yarn test:base:deno --testMatch \"<rootDir>/test/*.basictest.js\"", "test:basic:bun": "yarn test:base:bun --testMatch \"<rootDir>/test/*.basictest.js\"", "test:unit": "yarn test:base --testMatch \"<rootDir>/test/unitCases/**/*.unittest.js\"", "test:integration": "yarn test:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"", "test:integration:a": "yarn test:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\"", "test:integration:b": "yarn test:base --testMatch \"<rootDir>/test/*.longtest.js\"", "test:test262": "yarn test:base --testMatch \"<rootDir>/test/specCases/test262.spectest.js\"", "test:test262-parser": "yarn test:base --testMatch \"<rootDir>/test/specCases/test262-parser.spectest.js\"", "test:minify-corpora": "yarn test:base --testMatch \"<rootDir>/test/specCases/minify-corpora.spectest.js\"", "test:js-fuzz": "yarn test:base --testMatch \"<rootDir>/test/specCases/js-fuzz.spectest.js\"", "test:html5lib": "yarn test:base --testMatch \"<rootDir>/test/specCases/html5lib.spectest.js\"", "test:syntax-equivalence": "yarn test:base --testMatch \"<rootDir>/test/specCases/syntaxEquivalence.spectest.js\"", "test:css-parsing": "yarn test:base --testMatch \"<rootDir>/test/specCases/cssParsing-webpack.spectest.js\"", "test:xmlconf": "yarn test:base --testMatch \"<rootDir>/test/specCases/xmlconf.spectest.js\"", "test:deno": "yarn test:base:deno --reporters default --reporters \"<rootDir>/test/harness/runtimeCrashReporter.js\" --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" \"<rootDir>/test/unitCases/**/*.unittest.js\" --testPathIgnorePatterns \"/node_modules/\" \"(ProfilingPlugin[.]unittest|WebpackDevServer)\"", "test:base:deno": "deno --allow-read --allow-env --allow-sys --allow-ffi --allow-write --allow-run --allow-net --import-map=test/harness/runtimes/deno-import-map.json --v8-flags='--max-old-space-size=4096' ./node_modules/jest-cli/bin/jest.js --workerIdleMemoryLimit=512MB --logHeapUsage", "test:bun": "yarn test:base:bun --reporters default --reporters \"<rootDir>/test/harness/runtimeCrashReporter.js\" --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" \"<rootDir>/test/unitCases/**/*.unittest.js\" --testPathIgnorePatterns \"/node_modules/\" \"(ProfilingPlugin[.]unittest|WebpackDevServer)\"", "test:base:bun": "NODE_EXTRA_CA_CERTS=./test/hotCases/lazy-compilation/https/cert.pem bun --bun --smol --preload ./test/harness/runtimes/bun-preload.js ./node_modules/jest-cli/bin/jest.js --workerThreads --workerIdleMemoryLimit=2048MB --logHeapUsage", "test:update-snapshots": "yarn test:base -u", "test:size": "node --max-old-space-size=4096 ./test/CodeSizeTestCases.size.js", "report:cover": "nyc report --reporter=lcov --reporter=text -t coverage", "report:cover:clean": "rimraf .nyc_output coverage", "report:cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output", "types:cover": "node tooling/type-coverage.js", "types:cover:report": "rimraf coverage && yarn types:cover && yarn report:cover && open-cli coverage/lcov-report/index.html", "cover": "yarn cover:all && yarn report:cover", "cover:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --workerIdleMemoryLimit=512MB --logHeapUsage", "cover:all": "yarn cover:base --coverage", "cover:unit": "yarn cover:base --testMatch \"<rootDir>/test/unitCases/**/*.unittest.js\" --coverage", "cover:basic": "yarn cover:base --testMatch \"<rootDir>/test/*.basictest.js\" --coverage", "cover:integration": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage", "cover:integration:a": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage", "cover:integration:b": "yarn cover:base --testMatch \"<rootDir>/test/*.longtest.js\" --coverage", "cover:test262": "yarn cover:base --testMatch \"<rootDir>/test/specCases/test262.spectest.js\" --coverage", "cover:html5lib": "yarn cover:base --testMatch \"<rootDir>/test/specCases/html5lib.spectest.js\" --coverage", "cover:syntax-equivalence": "yarn cover:base --testMatch \"<rootDir>/test/specCases/syntaxEquivalence.spectest.js\" --coverage", "cover:css-parsing": "yarn cover:base --testMatch \"<rootDir>/test/specCases/cssParsing-webpack.spectest.js\" --coverage", "cover:minify": "yarn cover:base --testMatch \"<rootDir>/test/specCases/minify-corpora.spectest.js\" --coverage", "cover:minify-fuzz": "yarn cover:base --testMatch \"<rootDir>/test/specCases/js-fuzz.spectest.js\" --coverage", "cover:test262-parser": "yarn cover:base --testMatch \"<rootDir>/test/specCases/test262-parser.spectest.js\" --coverage", "cover:xmlconf": "yarn cover:base --testMatch \"<rootDir>/test/specCases/xmlconf.spectest.js\" --coverage", "cover:spec-css-html-xml": "yarn cover:base --testMatch \"<rootDir>/test/specCases/cssParsing-webpack.spectest.js\" \"<rootDir>/test/specCases/html5lib.spectest.js\" \"<rootDir>/test/specCases/xmlconf.spectest.js\" --coverage" }, "lint-staged": { "*.{js,cjs,mjs}": [ "node node_modules/eslint/bin/eslint.js --cache --fix" ], "*": [ "node node_modules/prettier/bin/prettier.cjs --cache --write --ignore-unknown", "cspell --cache --no-must-find-files" ] }, "dependencies": { "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.26.0", "es-module-lexer": "^2.1.0", "events": "^3.2.0", "graceful-fs": "^4.2.11", "mime-db": "^1.54.0", "minimizer-webpack-plugin": "^5.13.0", "schema-utils": "^4.8.1", "tapable": "^2.3.0", "watchpack": "^2.6.3", "webpack-sources": "^3.6.0" }, "devDependencies": { "@babel/core": "^8.0.1", "@babel/preset-react": "^8.0.1", "@changesets/cli": "^3.0.1", "@changesets/get-github-info": "^1.0.1", "@codspeed/core": "^6.1.0", "@mdn/browser-compat-data": "^8.1.4", "@types/convert-source-map": "^2.0.3", "@types/graceful-fs": "^4.1.9", "@types/jest": "^30.0.0", "@types/lodash": "^4.17.7", "@types/mime-db": "^1.43.6", "@types/node": "^26.2.0", "@types/xxhashjs": "^0.2.4", "@webdiscus/pug-loader": "^2.11.1", "@webref/elements": "^2.8.0", "@webref/idl": "^3.83.1", "acorn": "^8.16.0", "assemblyscript": "^0.28.18", "babel-loader": "^10.0.0", "bundle-loader": "^0.5.6", "coffee-loader": "^5.0.0", "coffeescript": "^2.5.1", "color-name": "^2.1.1", "core-js": "^3.47.0", "cspell": "^10.0.1", "css-loader": "^7.1.2", "date-fns": "^4.4.0", "es5-ext": "^0.10.53", "es6-promise-polyfill": "^1.2.0", "eslint": "^9.39.5", "eslint-config-webpack": "^4.15.0", "eslint-scope": "^9.1.2", "eta": "^4.6.0", "file-loader": "^6.0.0", "fork-ts-checker-webpack-plugin": "^9.0.2", "glob": "^13.0.6", "globals": "^17.6.0", "hash-wasm": "^4.9.0", "html-loader": "^5.1.0", "husky": "^9.0.11", "istanbul": "^0.4.5", "jest": "^30.3.0", "jest-circus": "^30.3.0", "jest-cli": "^30.3.0", "jest-diff": "^30.3.0", "jest-environment-node": "^30.3.0", "jest-junit": "^17.0.0", "jest-snapshot": "^30.3.0", "jest-worker": "^30.2.0", "json-loader": "^0.5.7", "json5": "^2.1.3", "less": "^4.6.4", "less-loader": "^13.0.0", "lint-staged": "^17.0.7", "lodash": "^4.17.19", "lodash-es": "^4.17.15", "mdn-data": "^2.37.1", "memfs": "^4.57.6", "meriyah": "^7.0.0", "mini-css-extract-plugin": "^2.9.0", "mini-svg-data-uri": "^1.2.3", "node-gyp": "^13.0.0", "nyc": "^18.0.0", "open-cli": "^9.0.0", "oxc-minify": "^0.154.0", "oxc-parser": "^0.154.0", "pkg-pr-new": "^0.0.91", "playwright-core": "^1.63.0", "prettier": "^3.8.2", "prettier-2": "npm:prettier@^2", "pretty-format": "^30.0.5", "pug": "^3.0.3", "raw-loader": "^4.0.1", "react": "^19.2.7", "react-dom": "^19.2.7", "rehype-sanitize": "^6.0.0", "rehype-stringify": "^10.0.1", "remark-frontmatter": "^5.0.0", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "rimraf": "^3.0.2", "script-loader": "^0.7.2", "simple-git": "^4.0.2", "style-loader": "^4.0.0", "terser": "^5.51.0", "three": "^0.186.0", "tinybench": "^6.0.1", "toml": "^5.0.0", "ts-loader": "^9.6.0", "typescript": "^6.0.3", "typescript-eslint": "^8.70.0", "unified": "^11.0.5", "url-loader": "^4.1.0", "wast-loader": "^1.12.1", "webassembly-feature": "1.3.0", "webpack-cli": "^7.2.1", "webpack-dev-server": "^6.0.0", "xxhashjs": "^0.2.2", "yamljs": "^0.3.0" }, "peerDependenciesMeta": { "webpack-cli": { "optional": true } }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e", "engines": { "node": ">=10.13.0" } }