webpack/package.json

242 lines
10 KiB
JSON
Raw Normal View History

2012-03-10 20:11:23 +08:00
{
"name": "webpack",
2023-04-06 02:09:32 +08:00
"version": "5.78.0",
"author": "Tobias Koppers @sokra",
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
2018-01-07 00:44:20 +08:00
"license": "MIT",
"dependencies": {
2022-02-08 17:03:20 +08:00
"@types/eslint-scope": "^3.7.3",
2023-04-08 07:07:37 +08:00
"@types/estree": "^1.0.0",
2021-07-06 07:10:53 +08:00
"@webassemblyjs/ast": "1.11.1",
"@webassemblyjs/wasm-edit": "1.11.1",
2021-07-06 07:10:53 +08:00
"@webassemblyjs/wasm-parser": "1.11.1",
"acorn": "^8.7.1",
2021-07-25 05:07:44 +08:00
"acorn-import-assertions": "^1.7.6",
2020-10-22 17:00:54 +08:00
"browserslist": "^4.14.5",
"chrome-trace-event": "^1.0.2",
2022-06-29 18:45:02 +08:00
"enhanced-resolve": "^5.10.0",
2023-04-08 03:52:23 +08:00
"es-module-lexer": "^1.2.1",
"eslint-scope": "5.1.1",
2020-08-12 01:55:44 +08:00
"events": "^3.2.0",
"glob-to-regexp": "^0.4.1",
"graceful-fs": "^4.2.9",
"json-parse-even-better-errors": "^2.3.1",
"loader-runner": "^4.2.0",
2020-08-12 01:55:44 +08:00
"mime-types": "^2.1.27",
"neo-async": "^2.6.2",
2021-07-05 23:32:03 +08:00
"schema-utils": "^3.1.0",
"tapable": "^2.1.1",
2023-04-07 07:25:43 +08:00
"terser-webpack-plugin": "^5.3.7",
2022-06-04 18:26:42 +08:00
"watchpack": "^2.4.0",
2022-01-18 19:38:34 +08:00
"webpack-sources": "^3.2.3"
},
"peerDependenciesMeta": {
"webpack-cli": {
"optional": true
}
},
"devDependencies": {
2020-08-12 01:55:44 +08:00
"@babel/core": "^7.11.1",
"@babel/preset-react": "^7.10.4",
"@types/es-module-lexer": "^0.4.1",
2022-02-08 17:03:20 +08:00
"@types/jest": "^27.4.0",
2023-04-07 01:37:17 +08:00
"@types/node": "^18.15.11",
"assemblyscript": "^0.19.16",
2020-08-12 01:55:44 +08:00
"babel-loader": "^8.1.0",
"benchmark": "^2.1.4",
"bundle-loader": "^0.5.6",
"coffee-loader": "^1.0.0",
2020-08-12 01:55:44 +08:00
"coffeescript": "^2.5.1",
"core-js": "^3.6.5",
2020-08-12 01:55:44 +08:00
"coveralls": "^3.1.0",
2023-04-07 20:41:45 +08:00
"cspell": "^6.31.1",
"css-loader": "^5.0.1",
2020-08-12 01:55:44 +08:00
"date-fns": "^2.15.0",
"es5-ext": "^0.10.53",
2020-08-12 01:55:44 +08:00
"es6-promise-polyfill": "^1.2.0",
2020-11-26 17:51:10 +08:00
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.1.0",
2022-02-08 17:57:39 +08:00
"eslint-plugin-jest": "^24.7.0",
"eslint-plugin-jsdoc": "^33.0.0",
2020-03-03 20:37:18 +08:00
"eslint-plugin-node": "^11.0.0",
2023-04-08 04:12:41 +08:00
"eslint-plugin-prettier": "^4.2.1",
"file-loader": "^6.0.0",
2023-04-08 06:23:22 +08:00
"fork-ts-checker-webpack-plugin": "^8.0.0",
"hash-wasm": "^4.9.0",
2023-04-08 06:52:19 +08:00
"husky": "^8.0.3",
"is-ci": "^3.0.0",
2016-12-29 04:31:33 +08:00
"istanbul": "^0.4.5",
2022-02-08 17:57:39 +08:00
"jest": "^27.5.0",
"jest-circus": "^27.5.0",
"jest-cli": "^27.5.0",
"jest-diff": "^27.5.0",
"jest-junit": "^13.0.0",
"json-loader": "^0.5.7",
2020-08-12 01:55:44 +08:00
"json5": "^2.1.3",
2023-04-08 06:28:22 +08:00
"lint-staged": "^13.2.1",
2022-11-07 17:39:11 +08:00
"loader-utils": "^2.0.3",
2020-08-12 01:55:44 +08:00
"lodash": "^4.17.19",
"lodash-es": "^4.17.15",
2023-04-07 20:41:45 +08:00
"memfs": "^3.5.0",
2021-06-26 02:38:55 +08:00
"mini-css-extract-plugin": "^1.6.1",
2020-08-12 01:55:44 +08:00
"mini-svg-data-uri": "^1.2.3",
2021-05-10 22:51:26 +08:00
"nyc": "^15.1.0",
2023-04-08 04:18:01 +08:00
"open-cli": "^6.0.1",
2022-11-09 17:34:25 +08:00
"prettier": "^2.7.1",
"pretty-format": "^27.0.2",
2020-08-12 01:55:44 +08:00
"pug": "^3.0.0",
2018-05-10 15:13:17 +08:00
"pug-loader": "^2.4.0",
"raw-loader": "^4.0.1",
2023-04-08 04:08:25 +08:00
"react": "^18.2.0",
"react-dom": "^18.2.0",
2023-04-08 02:47:38 +08:00
"rimraf": "^3.0.2",
2020-08-12 01:55:44 +08:00
"script-loader": "^0.7.2",
2023-04-08 06:58:47 +08:00
"simple-git": "^3.17.0",
2020-03-03 22:24:13 +08:00
"strip-ansi": "^6.0.0",
"style-loader": "^2.0.0",
2023-04-07 07:40:47 +08:00
"terser": "^5.16.8",
2019-11-29 01:12:11 +08:00
"toml": "^3.0.0",
2023-04-07 08:42:36 +08:00
"tooling": "webpack/tooling#v1.22.1",
2023-04-08 06:33:42 +08:00
"ts-loader": "^9.4.2",
2022-11-09 17:34:25 +08:00
"typescript": "^4.8.4",
"url-loader": "^4.1.0",
2021-01-08 06:50:33 +08:00
"wast-loader": "^1.11.0",
2020-02-02 07:42:26 +08:00
"webassembly-feature": "1.3.0",
2023-04-08 04:12:41 +08:00
"webpack-cli": "^5.0.1",
2020-08-12 01:55:44 +08:00
"xxhashjs": "^0.2.2",
"yamljs": "^0.3.0",
2023-04-07 20:36:13 +08:00
"yarn-deduplicate": "^6.0.1"
},
"engines": {
2019-10-21 21:07:11 +08:00
"node": ">=10.13.0"
},
"repository": {
"type": "git",
2015-07-23 07:26:50 +08:00
"url": "https://github.com/webpack/webpack.git"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
2015-07-23 07:26:50 +08:00
"homepage": "https://github.com/webpack/webpack",
2022-06-10 18:25:44 +08:00
"bugs": "https://github.com/webpack/webpack/issues",
2018-12-09 21:26:35 +08:00
"main": "lib/index.js",
2020-11-17 21:23:14 +08:00
"bin": {
"webpack": "bin/webpack.js"
},
"types": "types.d.ts",
2015-04-21 14:57:51 +08:00
"files": [
"lib/",
"bin/",
"hot/",
2018-04-25 02:59:43 +08:00
"schemas/",
"SECURITY.md",
"module.d.ts",
"types.d.ts"
2015-04-21 14:57:51 +08:00
],
"scripts": {
"setup": "node ./setup/setup.js",
2021-07-12 23:02:15 +08:00
"jest": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
2021-07-08 16:30:03 +08:00
"test": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
2018-06-27 21:47:45 +08:00
"test:update-snapshots": "yarn jest -u",
2021-07-13 22:50:12 +08:00
"test:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
"test:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\"",
"test:unit": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
"build:examples": "cd examples && node buildAll.js",
2019-07-12 16:22:32 +08:00
"type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
"pretest": "yarn lint",
"prelint": "yarn setup",
"lint": "yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-test && yarn module-typings-test && yarn yarn-lint && yarn pretty-lint && yarn spellcheck",
2019-08-22 18:16:39 +08:00
"code-lint": "eslint . --ext '.js' --cache",
"type-lint": "tsc",
"typings-test": "tsc -p tsconfig.types.test.json",
"module-typings-test": "tsc -p tsconfig.module.test.json",
2023-04-07 21:01:30 +08:00
"spellcheck": "cspell \"**\"",
2023-04-07 02:08:11 +08:00
"special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
2023-04-07 02:02:10 +08:00
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
2020-03-23 15:57:00 +08:00
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
2021-03-01 18:38:02 +08:00
"prepare": "husky install",
"pretty-lint-base": "prettier \"*.{ts,json,yml,yaml,md}\" \"{setup,lib,bin,hot,benchmark,tooling,schemas}/**/*.json\" \"examples/*.md\"",
"pretty-lint-base-all": "yarn pretty-lint-base \"*.js\" \"{setup,lib,bin,hot,benchmark,tooling,schemas}/**/*.js\" \"module.d.ts\" \"test/*.js\" \"test/helpers/*.js\" \"test/{configCases,watchCases,statsCases,hotCases,benchmarkCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
"pretty-lint-fix": "yarn pretty-lint-base-all --loglevel warn --write",
"pretty-lint": "yarn pretty-lint-base --check",
"yarn-lint": "yarn-deduplicate --fail --list -s highest yarn.lock",
"yarn-lint-fix": "yarn-deduplicate -s highest yarn.lock",
"benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
"cover": "yarn cover:all && yarn cover:report",
2021-05-10 22:51:26 +08:00
"cover:clean": "rimraf .nyc_output coverage",
2021-07-08 16:30:03 +08:00
"cover:all": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --coverage",
2021-07-13 22:50:12 +08:00
"cover:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
"cover:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
2021-07-15 22:00:49 +08:00
"cover:integration:a": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
"cover:integration:b": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
"cover:unit": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
"cover:types": "node node_modules/tooling/type-coverage",
"cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
2021-05-10 22:51:26 +08:00
"cover:report": "nyc report -t coverage"
2018-01-24 20:17:21 +08:00
},
2018-05-16 19:43:54 +08:00
"lint-staged": {
"*.js|{lib,setup,bin,hot,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}": [
2018-05-16 19:43:54 +08:00
"eslint --cache"
2020-03-13 17:13:55 +08:00
],
2020-03-23 15:57:00 +08:00
"*.{ts,json,yml,yaml,md}|examples/*.md": [
"prettier --check"
],
2020-03-13 17:13:55 +08:00
"*.md|{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}": [
"cspell"
2018-05-16 19:43:54 +08:00
]
},
2018-01-24 20:17:21 +08:00
"jest": {
2018-05-04 15:27:47 +08:00
"forceExit": true,
"setupFilesAfterEnv": [
"<rootDir>/test/setupTestFramework.js"
],
"testMatch": [
"<rootDir>/test/*.test.js",
2021-07-13 22:50:12 +08:00
"<rootDir>/test/*.basictest.js",
"<rootDir>/test/*.longtest.js",
"<rootDir>/test/*.unittest.js"
2018-02-25 08:15:37 +08:00
],
"watchPathIgnorePatterns": [
"<rootDir>/.git",
"<rootDir>/node_modules",
"<rootDir>/test/js",
"<rootDir>/test/browsertest/js",
"<rootDir>/test/fixtures/temp-cache-fixture",
"<rootDir>/test/fixtures/temp-",
"<rootDir>/benchmark",
"<rootDir>/assembly",
"<rootDir>/tooling",
"<rootDir>/examples/*/dist",
"<rootDir>/coverage",
"<rootDir>/.eslintcache"
],
"modulePathIgnorePatterns": [
"<rootDir>/.git",
"<rootDir>/node_modules/webpack/node_modules",
"<rootDir>/test/js",
"<rootDir>/test/browsertest/js",
"<rootDir>/test/fixtures/temp-cache-fixture",
"<rootDir>/test/fixtures/temp-",
"<rootDir>/benchmark",
"<rootDir>/examples/*/dist",
"<rootDir>/coverage",
"<rootDir>/.eslintcache"
2018-02-25 08:15:37 +08:00
],
"transformIgnorePatterns": [
"<rootDir>"
2018-02-25 08:46:21 +08:00
],
"coverageDirectory": "<rootDir>/coverage",
2018-03-06 05:48:18 +08:00
"coveragePathIgnorePatterns": [
2018-04-12 05:31:15 +08:00
"\\.runtime\\.js$",
"<rootDir>/test",
"<rootDir>/schemas",
"<rootDir>/node_modules"
2018-03-07 08:15:41 +08:00
],
2018-04-12 05:31:15 +08:00
"testEnvironment": "node",
"coverageReporters": [
2018-04-19 04:58:36 +08:00
"json"
2018-04-12 05:31:15 +08:00
]
}
2022-01-12 16:23:00 +08:00
}