mathjs 10.4.1 → 10.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +17 -0
- package/docs/datatypes/units.md +2 -2
- package/docs/reference/functions/format.md +3 -0
- package/examples/node_modules/.bin/acorn +12 -0
- package/examples/node_modules/.bin/acorn.cmd +17 -0
- package/examples/node_modules/.bin/acorn.ps1 +28 -0
- package/examples/node_modules/.bin/browserslist +12 -0
- package/examples/node_modules/.bin/browserslist.cmd +17 -0
- package/examples/node_modules/.bin/browserslist.ps1 +28 -0
- package/examples/node_modules/.bin/envinfo +2 -5
- package/examples/node_modules/.bin/envinfo.cmd +6 -6
- package/examples/node_modules/.bin/envinfo.ps1 +12 -2
- package/examples/node_modules/.bin/import-local-fixture +2 -5
- package/examples/node_modules/.bin/import-local-fixture.cmd +6 -6
- package/examples/node_modules/.bin/import-local-fixture.ps1 +12 -2
- package/examples/node_modules/.bin/node-which +2 -5
- package/examples/node_modules/.bin/node-which.cmd +6 -6
- package/examples/node_modules/.bin/node-which.ps1 +12 -2
- package/examples/node_modules/.bin/resolve +12 -0
- package/examples/node_modules/.bin/resolve.cmd +17 -0
- package/examples/node_modules/.bin/resolve.ps1 +28 -0
- package/examples/node_modules/.bin/terser +12 -0
- package/examples/node_modules/.bin/terser.cmd +17 -0
- package/examples/node_modules/.bin/terser.ps1 +28 -0
- package/examples/node_modules/.bin/webpack +12 -0
- package/examples/node_modules/.bin/webpack-cli +2 -5
- package/examples/node_modules/.bin/webpack-cli.cmd +6 -6
- package/examples/node_modules/.bin/webpack-cli.ps1 +12 -2
- package/examples/node_modules/.bin/webpack.cmd +17 -0
- package/examples/node_modules/.bin/webpack.ps1 +28 -0
- package/examples/node_modules/.package-lock.json +1407 -0
- package/examples/node_modules/@discoveryjs/json-ext/README.md +2 -1
- package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.js +147 -164
- package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.min.js +1 -1
- package/examples/node_modules/@discoveryjs/json-ext/dist/version.js +1 -0
- package/examples/node_modules/@discoveryjs/json-ext/index.d.ts +31 -0
- package/examples/node_modules/@discoveryjs/json-ext/package.json +53 -90
- package/examples/node_modules/@discoveryjs/json-ext/src/index.js +1 -1
- package/examples/node_modules/@discoveryjs/json-ext/src/parse-chunked.js +89 -44
- package/examples/node_modules/@discoveryjs/json-ext/src/stringify-info.js +11 -4
- package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream.js +17 -3
- package/examples/node_modules/@discoveryjs/json-ext/src/utils.js +6 -5
- package/examples/node_modules/@discoveryjs/json-ext/src/version.js +1 -0
- package/examples/node_modules/@types/eslint/LICENSE +21 -0
- package/examples/node_modules/@types/eslint/README.md +16 -0
- package/examples/node_modules/@types/eslint/helpers.d.ts +3 -0
- package/examples/node_modules/@types/eslint/index.d.ts +953 -0
- package/examples/node_modules/@types/eslint/package.json +65 -0
- package/examples/node_modules/@types/eslint/rules/best-practices.d.ts +931 -0
- package/examples/node_modules/@types/eslint/rules/deprecated.d.ts +267 -0
- package/examples/node_modules/@types/eslint/rules/ecmascript-6.d.ts +502 -0
- package/examples/node_modules/@types/eslint/rules/index.d.ts +21 -0
- package/examples/node_modules/@types/eslint/rules/node-commonjs.d.ts +133 -0
- package/examples/node_modules/@types/eslint/rules/possible-errors.d.ts +484 -0
- package/examples/node_modules/@types/eslint/rules/strict-mode.d.ts +11 -0
- package/examples/node_modules/@types/eslint/rules/stylistic-issues.d.ts +1893 -0
- package/examples/node_modules/@types/eslint/rules/variables.d.ts +187 -0
- package/examples/node_modules/@types/eslint/use-at-your-own-risk.d.ts +8 -0
- package/examples/node_modules/@types/eslint-scope/LICENSE +21 -0
- package/examples/node_modules/@types/eslint-scope/README.md +84 -0
- package/examples/node_modules/@types/eslint-scope/index.d.ts +64 -0
- package/examples/node_modules/@types/eslint-scope/package.json +28 -0
- package/examples/node_modules/@types/estree/LICENSE +21 -0
- package/examples/node_modules/@types/estree/README.md +16 -0
- package/examples/node_modules/@types/estree/flow.d.ts +174 -0
- package/examples/node_modules/@types/estree/index.d.ts +595 -0
- package/examples/node_modules/@types/estree/package.json +25 -0
- package/examples/node_modules/@types/json-schema/LICENSE +21 -0
- package/examples/node_modules/@types/json-schema/README.md +16 -0
- package/examples/node_modules/@types/json-schema/index.d.ts +758 -0
- package/examples/node_modules/@types/json-schema/package.json +40 -0
- package/examples/node_modules/@types/node/LICENSE +21 -0
- package/examples/node_modules/@types/node/README.md +16 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +912 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +501 -0
- package/examples/node_modules/@types/node/buffer.d.ts +2232 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1366 -0
- package/examples/node_modules/@types/node/cluster.d.ts +414 -0
- package/examples/node_modules/@types/node/console.d.ts +412 -0
- package/examples/node_modules/@types/node/constants.d.ts +18 -0
- package/examples/node_modules/@types/node/crypto.d.ts +3307 -0
- package/examples/node_modules/@types/node/dgram.d.ts +545 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +370 -0
- package/examples/node_modules/@types/node/dns.d.ts +659 -0
- package/examples/node_modules/@types/node/domain.d.ts +169 -0
- package/examples/node_modules/@types/node/events.d.ts +651 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1091 -0
- package/examples/node_modules/@types/node/fs.d.ts +3869 -0
- package/examples/node_modules/@types/node/globals.d.ts +284 -0
- package/examples/node_modules/@types/node/globals.global.d.ts +1 -0
- package/examples/node_modules/@types/node/http.d.ts +1396 -0
- package/examples/node_modules/@types/node/http2.d.ts +2100 -0
- package/examples/node_modules/@types/node/https.d.ts +391 -0
- package/examples/node_modules/@types/node/index.d.ts +129 -0
- package/examples/node_modules/@types/node/inspector.d.ts +2744 -0
- package/examples/node_modules/@types/node/module.d.ts +114 -0
- package/examples/node_modules/@types/node/net.d.ts +784 -0
- package/examples/node_modules/@types/node/os.d.ts +455 -0
- package/examples/node_modules/@types/node/package.json +220 -0
- package/examples/node_modules/@types/node/path.d.ts +180 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +557 -0
- package/examples/node_modules/@types/node/process.d.ts +1481 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +131 -0
- package/examples/node_modules/@types/node/readline.d.ts +650 -0
- package/examples/node_modules/@types/node/repl.d.ts +424 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +24 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +330 -0
- package/examples/node_modules/@types/node/stream.d.ts +1249 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +68 -0
- package/examples/node_modules/@types/node/timers.d.ts +94 -0
- package/examples/node_modules/@types/node/tls.d.ts +1020 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +161 -0
- package/examples/node_modules/@types/node/tty.d.ts +204 -0
- package/examples/node_modules/@types/node/url.d.ts +891 -0
- package/examples/node_modules/@types/node/util.d.ts +1594 -0
- package/examples/node_modules/@types/node/v8.d.ts +378 -0
- package/examples/node_modules/@types/node/vm.d.ts +507 -0
- package/examples/node_modules/@types/node/wasi.d.ts +158 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/examples/node_modules/@types/node/zlib.d.ts +517 -0
- package/examples/node_modules/@webassemblyjs/ast/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/ast/README.md +167 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/clone.js +3 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/definitions.js +668 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/index.js +7 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/node-helpers.js +84 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/node-path.js +137 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/nodes.js +925 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/signatures.js +199 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/ast-module-to-module-context/index.js +378 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/denormalize-type-references/index.js +76 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/transform/wast-identifier-to-index/index.js +216 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/traverse.js +96 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-all-lock/pnpm-lock.yaml → @webassemblyjs/ast/esm/types/basic.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-all-lock/yarn.lock → @webassemblyjs/ast/esm/types/nodes.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-npm-and-pnpm/pnpm-lock.yaml → @webassemblyjs/ast/esm/types/traverse.js} +0 -0
- package/examples/node_modules/@webassemblyjs/ast/esm/utils.js +265 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/clone.js +10 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/definitions.js +668 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/index.js +127 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/node-helpers.js +107 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/node-path.js +144 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/nodes.js +1144 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/signatures.js +207 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/ast-module-to-module-context/index.js +389 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/denormalize-type-references/index.js +83 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/transform/wast-identifier-to-index/index.js +225 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/traverse.js +105 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-npm-and-yarn/yarn.lock → @webassemblyjs/ast/lib/types/basic.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-pnpm-lock/pnpm-lock.yaml → @webassemblyjs/ast/lib/types/nodes.js} +0 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/pnpm-lock.yaml → @webassemblyjs/ast/lib/types/traverse.js} +0 -0
- package/examples/node_modules/@webassemblyjs/ast/lib/utils.js +306 -0
- package/examples/node_modules/@webassemblyjs/ast/package.json +32 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/generateNodeUtils.js +219 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/generateTypeDefinitions.js +47 -0
- package/examples/node_modules/@webassemblyjs/ast/scripts/util.js +38 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/README.md +34 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/esm/index.js +42 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/lib/index.js +49 -0
- package/examples/node_modules/@webassemblyjs/floating-point-hex-parser/package.json +24 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/esm/index.js +47 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/lib/index.js +62 -0
- package/examples/node_modules/@webassemblyjs/helper-api-error/package.json +18 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/esm/compare.js +65 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/esm/index.js +67 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/lib/compare.js +73 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/lib/index.js +78 -0
- package/examples/node_modules/@webassemblyjs/helper-buffer/package.json +24 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/esm/index.js +91 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/lib/index.js +116 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/package.json +25 -0
- package/examples/node_modules/@webassemblyjs/helper-numbers/src/index.js +105 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/esm/index.js +391 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/esm/section.js +31 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/index.js +406 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/lib/section.js +38 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-bytecode/package.json +20 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/create.js +107 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/index.js +3 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/remove.js +36 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/esm/resize.js +78 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/create.js +121 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/index.js +35 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/remove.js +45 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/lib/resize.js +90 -0
- package/examples/node_modules/@webassemblyjs/helper-wasm-section/package.json +29 -0
- package/examples/node_modules/@webassemblyjs/ieee754/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/ieee754/esm/index.js +33 -0
- package/examples/node_modules/@webassemblyjs/ieee754/lib/index.js +52 -0
- package/examples/node_modules/@webassemblyjs/ieee754/package.json +23 -0
- package/examples/node_modules/@webassemblyjs/ieee754/src/index.js +47 -0
- package/examples/node_modules/@webassemblyjs/leb128/LICENSE.txt +194 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/bits.js +145 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/bufs.js +218 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/index.js +34 -0
- package/examples/node_modules/@webassemblyjs/leb128/esm/leb.js +316 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/bits.js +156 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/bufs.js +236 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/index.js +59 -0
- package/examples/node_modules/@webassemblyjs/leb128/lib/leb.js +332 -0
- package/examples/node_modules/@webassemblyjs/leb128/package.json +23 -0
- package/examples/node_modules/@webassemblyjs/utf8/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/decoder.js +95 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/encoder.js +46 -0
- package/examples/node_modules/@webassemblyjs/utf8/esm/index.js +2 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/decoder.js +102 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/encoder.js +53 -0
- package/examples/node_modules/@webassemblyjs/utf8/lib/index.js +21 -0
- package/examples/node_modules/@webassemblyjs/utf8/package.json +20 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/decoder.js +86 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/encoder.js +44 -0
- package/examples/node_modules/@webassemblyjs/utf8/src/index.js +4 -0
- package/examples/node_modules/@webassemblyjs/utf8/test/index.js +13 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/README.md +86 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/esm/apply.js +299 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/esm/index.js +114 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/lib/apply.js +311 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/lib/index.js +133 -0
- package/examples/node_modules/@webassemblyjs/wasm-edit/package.json +33 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/esm/encoder/index.js +301 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/esm/index.js +51 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/lib/encoder/index.js +357 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/lib/index.js +64 -0
- package/examples/node_modules/@webassemblyjs/wasm-gen/package.json +27 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/esm/index.js +41 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/esm/leb128.js +47 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/lib/index.js +50 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/lib/leb128.js +56 -0
- package/examples/node_modules/@webassemblyjs/wasm-opt/package.json +26 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/README.md +28 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/esm/decoder.js +1776 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/esm/index.js +247 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/yarn.lock → @webassemblyjs/wasm-parser/esm/types/decoder.js} +0 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js +1792 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/lib/index.js +257 -0
- package/examples/node_modules/{webpack-cli/lib/utils/__tests__/test-yarn-lock/yarn.lock → @webassemblyjs/wasm-parser/lib/types/decoder.js} +0 -0
- package/examples/node_modules/@webassemblyjs/wasm-parser/package.json +44 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/LICENSE +21 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/README.md +17 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/esm/index.js +904 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/lib/index.js +915 -0
- package/examples/node_modules/@webassemblyjs/wast-printer/package.json +36 -0
- package/examples/node_modules/@webpack-cli/configtest/README.md +27 -0
- package/examples/node_modules/@webpack-cli/configtest/lib/index.js +18 -25
- package/examples/node_modules/@webpack-cli/configtest/package.json +14 -36
- package/examples/node_modules/@webpack-cli/info/README.md +6 -5
- package/examples/node_modules/@webpack-cli/info/lib/index.js +57 -38
- package/examples/node_modules/@webpack-cli/info/package.json +19 -37
- package/examples/node_modules/@webpack-cli/serve/README.md +4 -0
- package/examples/node_modules/@webpack-cli/serve/lib/index.js +214 -41
- package/examples/node_modules/@webpack-cli/serve/lib/types.d.ts +62 -19
- package/examples/node_modules/@webpack-cli/serve/lib/types.js +21 -2
- package/examples/node_modules/@webpack-cli/serve/package.json +15 -36
- package/examples/node_modules/@xtuc/ieee754/LICENSE +28 -0
- package/examples/node_modules/@xtuc/ieee754/README.md +51 -0
- package/examples/node_modules/@xtuc/ieee754/dist/.gitkeep +0 -0
- package/examples/node_modules/@xtuc/ieee754/dist/index.cjs.js +96 -0
- package/examples/node_modules/@xtuc/ieee754/index.js +84 -0
- package/examples/node_modules/@xtuc/ieee754/package.json +42 -0
- package/examples/node_modules/@xtuc/long/LICENSE +202 -0
- package/examples/node_modules/@xtuc/long/README.md +257 -0
- package/examples/node_modules/@xtuc/long/dist/long.js +2 -0
- package/examples/node_modules/@xtuc/long/dist/long.js.map +1 -0
- package/examples/node_modules/@xtuc/long/index.d.ts +429 -0
- package/examples/node_modules/@xtuc/long/index.js +1 -0
- package/examples/node_modules/@xtuc/long/package.json +36 -0
- package/examples/node_modules/@xtuc/long/src/long.js +1405 -0
- package/examples/node_modules/acorn/CHANGELOG.md +788 -0
- package/examples/node_modules/acorn/LICENSE +21 -0
- package/examples/node_modules/acorn/README.md +280 -0
- package/examples/node_modules/acorn/bin/acorn +4 -0
- package/examples/node_modules/acorn/dist/acorn.d.ts +214 -0
- package/examples/node_modules/acorn/dist/acorn.js +5619 -0
- package/examples/node_modules/acorn/dist/acorn.mjs +5588 -0
- package/examples/node_modules/acorn/dist/acorn.mjs.d.ts +2 -0
- package/examples/node_modules/acorn/dist/bin.js +91 -0
- package/examples/node_modules/acorn/package.json +46 -0
- package/examples/node_modules/acorn-import-assertions/README.md +15 -0
- package/examples/node_modules/acorn-import-assertions/lib/index.js +287 -0
- package/examples/node_modules/acorn-import-assertions/lib/index.mjs +242 -0
- package/examples/node_modules/acorn-import-assertions/package.json +49 -0
- package/examples/node_modules/acorn-import-assertions/src/index.js +242 -0
- package/examples/node_modules/ajv/.tonic_example.js +20 -0
- package/examples/node_modules/ajv/LICENSE +22 -0
- package/examples/node_modules/ajv/README.md +1497 -0
- package/examples/node_modules/ajv/dist/ajv.bundle.js +7189 -0
- package/examples/node_modules/ajv/dist/ajv.min.js +3 -0
- package/examples/node_modules/ajv/dist/ajv.min.js.map +1 -0
- package/examples/node_modules/ajv/lib/ajv.d.ts +397 -0
- package/examples/node_modules/ajv/lib/ajv.js +506 -0
- package/examples/node_modules/ajv/lib/cache.js +26 -0
- package/examples/node_modules/ajv/lib/compile/async.js +90 -0
- package/examples/node_modules/ajv/lib/compile/equal.js +5 -0
- package/examples/node_modules/ajv/lib/compile/error_classes.js +34 -0
- package/examples/node_modules/ajv/lib/compile/formats.js +142 -0
- package/examples/node_modules/ajv/lib/compile/index.js +387 -0
- package/examples/node_modules/ajv/lib/compile/resolve.js +270 -0
- package/examples/node_modules/ajv/lib/compile/rules.js +66 -0
- package/examples/node_modules/ajv/lib/compile/schema_obj.js +9 -0
- package/examples/node_modules/ajv/lib/compile/ucs2length.js +20 -0
- package/examples/node_modules/ajv/lib/compile/util.js +239 -0
- package/examples/node_modules/ajv/lib/data.js +49 -0
- package/examples/node_modules/ajv/lib/definition_schema.js +37 -0
- package/examples/node_modules/ajv/lib/dot/_limit.jst +113 -0
- package/examples/node_modules/ajv/lib/dot/_limitItems.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/_limitLength.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/_limitProperties.jst +12 -0
- package/examples/node_modules/ajv/lib/dot/allOf.jst +32 -0
- package/examples/node_modules/ajv/lib/dot/anyOf.jst +46 -0
- package/examples/node_modules/ajv/lib/dot/coerce.def +51 -0
- package/examples/node_modules/ajv/lib/dot/comment.jst +9 -0
- package/examples/node_modules/ajv/lib/dot/const.jst +11 -0
- package/examples/node_modules/ajv/lib/dot/contains.jst +55 -0
- package/examples/node_modules/ajv/lib/dot/custom.jst +191 -0
- package/examples/node_modules/ajv/lib/dot/defaults.def +47 -0
- package/examples/node_modules/ajv/lib/dot/definitions.def +203 -0
- package/examples/node_modules/ajv/lib/dot/dependencies.jst +79 -0
- package/examples/node_modules/ajv/lib/dot/enum.jst +30 -0
- package/examples/node_modules/ajv/lib/dot/errors.def +194 -0
- package/examples/node_modules/ajv/lib/dot/format.jst +106 -0
- package/examples/node_modules/ajv/lib/dot/if.jst +73 -0
- package/examples/node_modules/ajv/lib/dot/items.jst +98 -0
- package/examples/node_modules/ajv/lib/dot/missing.def +39 -0
- package/examples/node_modules/ajv/lib/dot/multipleOf.jst +22 -0
- package/examples/node_modules/ajv/lib/dot/not.jst +43 -0
- package/examples/node_modules/ajv/lib/dot/oneOf.jst +54 -0
- package/examples/node_modules/ajv/lib/dot/pattern.jst +14 -0
- package/examples/node_modules/ajv/lib/dot/properties.jst +245 -0
- package/examples/node_modules/ajv/lib/dot/propertyNames.jst +52 -0
- package/examples/node_modules/ajv/lib/dot/ref.jst +85 -0
- package/examples/node_modules/ajv/lib/dot/required.jst +108 -0
- package/examples/node_modules/ajv/lib/dot/uniqueItems.jst +62 -0
- package/examples/node_modules/ajv/lib/dot/validate.jst +276 -0
- package/examples/node_modules/ajv/lib/dotjs/README.md +3 -0
- package/examples/node_modules/ajv/lib/dotjs/_limit.js +163 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitItems.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitLength.js +85 -0
- package/examples/node_modules/ajv/lib/dotjs/_limitProperties.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/allOf.js +42 -0
- package/examples/node_modules/ajv/lib/dotjs/anyOf.js +73 -0
- package/examples/node_modules/ajv/lib/dotjs/comment.js +14 -0
- package/examples/node_modules/ajv/lib/dotjs/const.js +56 -0
- package/examples/node_modules/ajv/lib/dotjs/contains.js +81 -0
- package/examples/node_modules/ajv/lib/dotjs/custom.js +228 -0
- package/examples/node_modules/ajv/lib/dotjs/dependencies.js +168 -0
- package/examples/node_modules/ajv/lib/dotjs/enum.js +66 -0
- package/examples/node_modules/ajv/lib/dotjs/format.js +150 -0
- package/examples/node_modules/ajv/lib/dotjs/if.js +103 -0
- package/examples/node_modules/ajv/lib/dotjs/index.js +33 -0
- package/examples/node_modules/ajv/lib/dotjs/items.js +140 -0
- package/examples/node_modules/ajv/lib/dotjs/multipleOf.js +80 -0
- package/examples/node_modules/ajv/lib/dotjs/not.js +84 -0
- package/examples/node_modules/ajv/lib/dotjs/oneOf.js +73 -0
- package/examples/node_modules/ajv/lib/dotjs/pattern.js +75 -0
- package/examples/node_modules/ajv/lib/dotjs/properties.js +335 -0
- package/examples/node_modules/ajv/lib/dotjs/propertyNames.js +81 -0
- package/examples/node_modules/ajv/lib/dotjs/ref.js +124 -0
- package/examples/node_modules/ajv/lib/dotjs/required.js +270 -0
- package/examples/node_modules/ajv/lib/dotjs/uniqueItems.js +86 -0
- package/examples/node_modules/ajv/lib/dotjs/validate.js +482 -0
- package/examples/node_modules/ajv/lib/keyword.js +146 -0
- package/examples/node_modules/ajv/lib/refs/data.json +17 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-04.json +149 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-06.json +154 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-draft-07.json +168 -0
- package/examples/node_modules/ajv/lib/refs/json-schema-secure.json +94 -0
- package/examples/node_modules/ajv/package.json +106 -0
- package/examples/node_modules/ajv/scripts/.eslintrc.yml +3 -0
- package/examples/node_modules/ajv/scripts/bundle.js +61 -0
- package/examples/node_modules/ajv/scripts/compile-dots.js +73 -0
- package/examples/node_modules/ajv/scripts/info +10 -0
- package/examples/node_modules/ajv/scripts/prepare-tests +12 -0
- package/examples/node_modules/ajv/scripts/publish-built-version +32 -0
- package/examples/node_modules/ajv/scripts/travis-gh-pages +23 -0
- package/examples/node_modules/ajv-keywords/LICENSE +21 -0
- package/examples/node_modules/ajv-keywords/README.md +836 -0
- package/examples/node_modules/ajv-keywords/ajv-keywords.d.ts +7 -0
- package/examples/node_modules/ajv-keywords/index.js +35 -0
- package/examples/node_modules/ajv-keywords/keywords/_formatLimit.js +101 -0
- package/examples/node_modules/ajv-keywords/keywords/_util.js +15 -0
- package/examples/node_modules/ajv-keywords/keywords/allRequired.js +18 -0
- package/examples/node_modules/ajv-keywords/keywords/anyRequired.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/deepProperties.js +54 -0
- package/examples/node_modules/ajv-keywords/keywords/deepRequired.js +57 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/_formatLimit.jst +116 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/patternRequired.jst +33 -0
- package/examples/node_modules/ajv-keywords/keywords/dot/switch.jst +71 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/README.md +3 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/_formatLimit.js +178 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/patternRequired.js +58 -0
- package/examples/node_modules/ajv-keywords/keywords/dotjs/switch.js +129 -0
- package/examples/node_modules/ajv-keywords/keywords/dynamicDefaults.js +72 -0
- package/examples/node_modules/ajv-keywords/keywords/formatMaximum.js +3 -0
- package/examples/node_modules/ajv-keywords/keywords/formatMinimum.js +3 -0
- package/examples/node_modules/ajv-keywords/keywords/index.js +22 -0
- package/examples/node_modules/ajv-keywords/keywords/instanceof.js +58 -0
- package/examples/node_modules/ajv-keywords/keywords/oneRequired.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/patternRequired.js +21 -0
- package/examples/node_modules/ajv-keywords/keywords/prohibited.js +24 -0
- package/examples/node_modules/ajv-keywords/keywords/range.js +36 -0
- package/examples/node_modules/ajv-keywords/keywords/regexp.js +36 -0
- package/examples/node_modules/ajv-keywords/keywords/select.js +79 -0
- package/examples/node_modules/ajv-keywords/keywords/switch.js +38 -0
- package/examples/node_modules/ajv-keywords/keywords/transform.js +80 -0
- package/examples/node_modules/ajv-keywords/keywords/typeof.js +32 -0
- package/examples/node_modules/ajv-keywords/keywords/uniqueItemProperties.js +59 -0
- package/examples/node_modules/ajv-keywords/package.json +53 -0
- package/examples/node_modules/browserslist/LICENSE +20 -0
- package/examples/node_modules/browserslist/README.md +66 -0
- package/examples/node_modules/browserslist/browser.js +50 -0
- package/examples/node_modules/browserslist/cli.js +152 -0
- package/examples/node_modules/browserslist/error.d.ts +7 -0
- package/examples/node_modules/browserslist/error.js +12 -0
- package/examples/node_modules/browserslist/index.d.ts +178 -0
- package/examples/node_modules/browserslist/index.js +1235 -0
- package/examples/node_modules/browserslist/node.js +393 -0
- package/examples/node_modules/browserslist/package.json +41 -0
- package/examples/node_modules/browserslist/update-db.js +317 -0
- package/examples/node_modules/buffer-from/LICENSE +21 -0
- package/examples/node_modules/buffer-from/index.js +72 -0
- package/examples/node_modules/buffer-from/package.json +19 -0
- package/examples/node_modules/buffer-from/readme.md +69 -0
- package/examples/node_modules/caniuse-lite/LICENSE +395 -0
- package/examples/node_modules/caniuse-lite/README.md +92 -0
- package/examples/node_modules/caniuse-lite/data/agents.js +1 -0
- package/examples/node_modules/caniuse-lite/data/browserVersions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/browsers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/aac.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/apng.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-find.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audio.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/av1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/avif.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/beacon.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/bigint.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/border-image.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/brotli.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/calc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/canvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/classlist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/colr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/console-time.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/const.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-all.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-has.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hyphenate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scroll-timeline.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-table.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-touch-action-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/customevent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/datalist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dataset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/datauri.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/decorators.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/details.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dialog.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/domfocusin-domfocusout-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/download.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eme.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eot.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es5.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/es6.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filereader.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flac.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/focusoptions-preventscroll.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-metrics-overrides.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-east-asian.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fontface.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/forms.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/heif.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hevc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/hidden.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/history.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/http3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ime.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/imports.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/innertext.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-event.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-number.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-range.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-search.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/json.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/let.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mathml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/media-session-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/menu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/meter.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/midi.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mp3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/navigator-language.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/notifications.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/object-values.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ogv.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/online-status.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/opus.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/outline.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/path2d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/picture.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ping.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/portals.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/private-class-fields.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/private-methods-and-accessors.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/progress.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/promises.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/proximity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/proxy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/public-class-fields.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/push-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rellist.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rem.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ruby.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/run-in.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/script-async.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sdch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sha-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sni.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/spdy.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/srcset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/stream.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/streams.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/svg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/sxg.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/template.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/temporal.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/text-underline-offset.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/token-binding.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/touch.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/ttf.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/u2f.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/url.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/vibration.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/video.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wasm.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wav.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/web-share.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgl.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webhid.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webm.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webp.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/websockets.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webusb.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webvr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/webxr.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/will-change.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/woff.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/woff2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/word-break.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
- package/examples/node_modules/caniuse-lite/data/features.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/AZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/BZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/CZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/DZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/EG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ER.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ES.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ET.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/FR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/GY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/HU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ID.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/IT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/JP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/KZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/LY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ME.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ML.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MQ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MX.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/MZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NP.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/NZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/OM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/PY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/QA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/RW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SB.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ST.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/SZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TD.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TH.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TJ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TK.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TL.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TO.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TR.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TV.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/TZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/US.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UY.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/UZ.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VC.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VG.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VI.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VN.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/VU.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/WF.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/WS.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/YE.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/YT.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZA.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZM.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/ZW.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-af.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-an.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-as.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-na.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -0
- package/examples/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
- package/examples/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/feature.js +48 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
- package/examples/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
- package/examples/node_modules/caniuse-lite/package.json +34 -0
- package/examples/node_modules/chrome-trace-event/CHANGES.md +26 -0
- package/examples/node_modules/chrome-trace-event/LICENSE.txt +23 -0
- package/examples/node_modules/chrome-trace-event/README.md +31 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.d.ts +52 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.js +170 -0
- package/examples/node_modules/chrome-trace-event/dist/trace-event.js.map +1 -0
- package/examples/node_modules/chrome-trace-event/package.json +38 -0
- package/examples/node_modules/clone-deep/package.json +17 -48
- package/examples/node_modules/colorette/README.md +54 -22
- package/examples/node_modules/colorette/index.cjs +213 -71
- package/examples/node_modules/colorette/index.d.ts +91 -47
- package/examples/node_modules/colorette/index.js +142 -68
- package/examples/node_modules/colorette/package.json +17 -51
- package/examples/node_modules/commander/CHANGELOG.md +339 -360
- package/examples/node_modules/commander/Readme.md +254 -743
- package/examples/node_modules/commander/index.js +1003 -1996
- package/examples/node_modules/commander/package.json +24 -86
- package/examples/node_modules/commander/typings/index.d.ts +153 -470
- package/examples/node_modules/cross-spawn/package.json +40 -71
- package/examples/node_modules/electron-to-chromium/CHANGELOG.md +14 -0
- package/examples/node_modules/electron-to-chromium/LICENSE +5 -0
- package/examples/node_modules/electron-to-chromium/README.md +186 -0
- package/examples/node_modules/electron-to-chromium/chromium-versions.js +45 -0
- package/examples/node_modules/electron-to-chromium/chromium-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/full-chromium-versions.js +1833 -0
- package/examples/node_modules/electron-to-chromium/full-chromium-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/full-versions.js +1335 -0
- package/examples/node_modules/electron-to-chromium/full-versions.json +1 -0
- package/examples/node_modules/electron-to-chromium/index.js +36 -0
- package/examples/node_modules/electron-to-chromium/package.json +42 -0
- package/examples/node_modules/electron-to-chromium/versions.js +89 -0
- package/examples/node_modules/electron-to-chromium/versions.json +1 -0
- package/examples/node_modules/enhanced-resolve/LICENSE +20 -0
- package/examples/node_modules/enhanced-resolve/README.md +167 -0
- package/examples/node_modules/enhanced-resolve/lib/AliasFieldPlugin.js +96 -0
- package/examples/node_modules/enhanced-resolve/lib/AliasPlugin.js +120 -0
- package/examples/node_modules/enhanced-resolve/lib/AppendPlugin.js +47 -0
- package/examples/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js +477 -0
- package/examples/node_modules/enhanced-resolve/lib/CloneBasenamePlugin.js +45 -0
- package/examples/node_modules/enhanced-resolve/lib/ConditionalPlugin.js +59 -0
- package/examples/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js +96 -0
- package/examples/node_modules/enhanced-resolve/lib/DescriptionFileUtils.js +170 -0
- package/examples/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js +63 -0
- package/examples/node_modules/enhanced-resolve/lib/ExportsFieldPlugin.js +149 -0
- package/examples/node_modules/enhanced-resolve/lib/FileExistsPlugin.js +58 -0
- package/examples/node_modules/enhanced-resolve/lib/ImportsFieldPlugin.js +171 -0
- package/examples/node_modules/enhanced-resolve/lib/JoinRequestPartPlugin.js +64 -0
- package/examples/node_modules/enhanced-resolve/lib/JoinRequestPlugin.js +41 -0
- package/examples/node_modules/enhanced-resolve/lib/LogInfoPlugin.js +50 -0
- package/examples/node_modules/enhanced-resolve/lib/MainFieldPlugin.js +81 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInHierachicDirectoriesPlugin.js +9 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInHierarchicalDirectoriesPlugin.js +80 -0
- package/examples/node_modules/enhanced-resolve/lib/ModulesInRootPlugin.js +47 -0
- package/examples/node_modules/enhanced-resolve/lib/NextPlugin.js +33 -0
- package/examples/node_modules/enhanced-resolve/lib/ParsePlugin.js +74 -0
- package/examples/node_modules/enhanced-resolve/lib/PnpPlugin.js +103 -0
- package/examples/node_modules/enhanced-resolve/lib/Resolver.js +500 -0
- package/examples/node_modules/enhanced-resolve/lib/ResolverFactory.js +661 -0
- package/examples/node_modules/enhanced-resolve/lib/RestrictionsPlugin.js +65 -0
- package/examples/node_modules/enhanced-resolve/lib/ResultPlugin.js +42 -0
- package/examples/node_modules/enhanced-resolve/lib/RootsPlugin.js +62 -0
- package/examples/node_modules/enhanced-resolve/lib/SelfReferencePlugin.js +80 -0
- package/examples/node_modules/enhanced-resolve/lib/SymlinkPlugin.js +88 -0
- package/examples/node_modules/enhanced-resolve/lib/SyncAsyncFileSystemDecorator.js +95 -0
- package/examples/node_modules/enhanced-resolve/lib/TryNextPlugin.js +41 -0
- package/examples/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js +99 -0
- package/examples/node_modules/enhanced-resolve/lib/UseFilePlugin.js +49 -0
- package/examples/node_modules/enhanced-resolve/lib/createInnerContext.js +37 -0
- package/examples/node_modules/enhanced-resolve/lib/forEachBail.js +25 -0
- package/examples/node_modules/enhanced-resolve/lib/getInnerRequest.js +27 -0
- package/examples/node_modules/enhanced-resolve/lib/getPaths.js +37 -0
- package/examples/node_modules/enhanced-resolve/lib/index.js +131 -0
- package/examples/node_modules/enhanced-resolve/lib/util/entrypoints.js +667 -0
- package/examples/node_modules/enhanced-resolve/lib/util/identifier.js +26 -0
- package/examples/node_modules/enhanced-resolve/lib/util/path.js +221 -0
- package/examples/node_modules/enhanced-resolve/lib/util/process-browser.js +16 -0
- package/examples/node_modules/enhanced-resolve/package.json +70 -0
- package/examples/node_modules/enhanced-resolve/types.d.ts +506 -0
- package/examples/node_modules/envinfo/dist/cli.js +1 -1
- package/examples/node_modules/envinfo/dist/envinfo.js +1 -1
- package/examples/node_modules/envinfo/package.json +55 -89
- package/examples/node_modules/es-module-lexer/LICENSE +10 -0
- package/examples/node_modules/es-module-lexer/README.md +251 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.asm.js +1 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.cjs +1 -0
- package/examples/node_modules/es-module-lexer/dist/lexer.js +2 -0
- package/examples/node_modules/es-module-lexer/lexer.js +899 -0
- package/examples/node_modules/es-module-lexer/package.json +53 -0
- package/examples/node_modules/es-module-lexer/types/lexer.d.ts +86 -0
- package/examples/node_modules/escalade/dist/index.js +22 -0
- package/examples/node_modules/escalade/dist/index.mjs +22 -0
- package/examples/node_modules/escalade/index.d.ts +3 -0
- package/examples/node_modules/escalade/license +9 -0
- package/examples/node_modules/escalade/package.json +61 -0
- package/examples/node_modules/escalade/readme.md +211 -0
- package/examples/node_modules/escalade/sync/index.d.ts +2 -0
- package/examples/node_modules/escalade/sync/index.js +18 -0
- package/examples/node_modules/escalade/sync/index.mjs +18 -0
- package/examples/node_modules/eslint-scope/CHANGELOG.md +70 -0
- package/examples/node_modules/eslint-scope/LICENSE +22 -0
- package/examples/node_modules/eslint-scope/README.md +54 -0
- package/examples/node_modules/eslint-scope/lib/definition.js +86 -0
- package/examples/node_modules/eslint-scope/lib/index.js +165 -0
- package/examples/node_modules/eslint-scope/lib/pattern-visitor.js +152 -0
- package/examples/node_modules/eslint-scope/lib/reference.js +167 -0
- package/examples/node_modules/eslint-scope/lib/referencer.js +629 -0
- package/examples/node_modules/eslint-scope/lib/scope-manager.js +247 -0
- package/examples/node_modules/eslint-scope/lib/scope.js +748 -0
- package/examples/node_modules/eslint-scope/lib/variable.js +88 -0
- package/examples/node_modules/eslint-scope/package.json +48 -0
- package/examples/node_modules/esrecurse/.babelrc +3 -0
- package/examples/node_modules/esrecurse/README.md +171 -0
- package/examples/node_modules/esrecurse/esrecurse.js +117 -0
- package/examples/node_modules/esrecurse/gulpfile.babel.js +92 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/.jshintrc +16 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD +19 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/README.md +153 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/estraverse.js +805 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/gulpfile.js +70 -0
- package/examples/node_modules/esrecurse/node_modules/estraverse/package.json +40 -0
- package/examples/node_modules/esrecurse/package.json +52 -0
- package/examples/node_modules/estraverse/.jshintrc +16 -0
- package/examples/node_modules/estraverse/LICENSE.BSD +19 -0
- package/examples/node_modules/estraverse/README.md +153 -0
- package/examples/node_modules/estraverse/estraverse.js +782 -0
- package/examples/node_modules/estraverse/gulpfile.js +70 -0
- package/examples/node_modules/estraverse/package.json +40 -0
- package/examples/node_modules/events/.airtap.yml +15 -0
- package/examples/node_modules/events/.github/FUNDING.yml +12 -0
- package/examples/node_modules/events/.travis.yml +18 -0
- package/examples/node_modules/events/History.md +118 -0
- package/examples/node_modules/events/LICENSE +22 -0
- package/examples/node_modules/events/Readme.md +50 -0
- package/examples/node_modules/events/events.js +497 -0
- package/examples/node_modules/events/package.json +37 -0
- package/examples/node_modules/events/security.md +10 -0
- package/examples/node_modules/events/tests/add-listeners.js +111 -0
- package/examples/node_modules/events/tests/check-listener-leaks.js +101 -0
- package/examples/node_modules/events/tests/common.js +104 -0
- package/examples/node_modules/events/tests/errors.js +13 -0
- package/examples/node_modules/events/tests/events-list.js +28 -0
- package/examples/node_modules/events/tests/events-once.js +234 -0
- package/examples/node_modules/events/tests/index.js +64 -0
- package/examples/node_modules/events/tests/legacy-compat.js +16 -0
- package/examples/node_modules/events/tests/listener-count.js +37 -0
- package/examples/node_modules/events/tests/listeners-side-effects.js +56 -0
- package/examples/node_modules/events/tests/listeners.js +168 -0
- package/examples/node_modules/events/tests/max-listeners.js +47 -0
- package/examples/node_modules/events/tests/method-names.js +35 -0
- package/examples/node_modules/events/tests/modify-in-emit.js +90 -0
- package/examples/node_modules/events/tests/num-args.js +60 -0
- package/examples/node_modules/events/tests/once.js +83 -0
- package/examples/node_modules/events/tests/prepend.js +31 -0
- package/examples/node_modules/events/tests/remove-all-listeners.js +133 -0
- package/examples/node_modules/events/tests/remove-listeners.js +212 -0
- package/examples/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
- package/examples/node_modules/events/tests/special-event-names.js +45 -0
- package/examples/node_modules/events/tests/subclass.js +66 -0
- package/examples/node_modules/events/tests/symbols.js +25 -0
- package/examples/node_modules/execa/index.d.ts +12 -2
- package/examples/node_modules/execa/index.js +14 -4
- package/examples/node_modules/execa/lib/command.js +25 -5
- package/examples/node_modules/execa/lib/error.js +2 -0
- package/examples/node_modules/execa/lib/kill.js +7 -4
- package/examples/node_modules/execa/lib/stream.js +1 -1
- package/examples/node_modules/execa/package.json +72 -100
- package/examples/node_modules/execa/readme.md +16 -3
- package/examples/node_modules/fast-deep-equal/LICENSE +21 -0
- package/examples/node_modules/fast-deep-equal/README.md +96 -0
- package/examples/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/examples/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/examples/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/examples/node_modules/fast-deep-equal/index.js +46 -0
- package/examples/node_modules/fast-deep-equal/package.json +61 -0
- package/examples/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/examples/node_modules/fast-deep-equal/react.js +53 -0
- package/examples/node_modules/fast-json-stable-stringify/.eslintrc.yml +26 -0
- package/examples/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +1 -0
- package/examples/node_modules/fast-json-stable-stringify/.travis.yml +8 -0
- package/examples/node_modules/fast-json-stable-stringify/LICENSE +21 -0
- package/examples/node_modules/fast-json-stable-stringify/README.md +131 -0
- package/examples/node_modules/fast-json-stable-stringify/benchmark/index.js +31 -0
- package/examples/node_modules/fast-json-stable-stringify/benchmark/test.json +137 -0
- package/examples/node_modules/fast-json-stable-stringify/example/key_cmp.js +7 -0
- package/examples/node_modules/fast-json-stable-stringify/example/nested.js +3 -0
- package/examples/node_modules/fast-json-stable-stringify/example/str.js +3 -0
- package/examples/node_modules/fast-json-stable-stringify/example/value_cmp.js +7 -0
- package/examples/node_modules/fast-json-stable-stringify/index.d.ts +4 -0
- package/examples/node_modules/fast-json-stable-stringify/index.js +59 -0
- package/examples/node_modules/fast-json-stable-stringify/package.json +52 -0
- package/examples/node_modules/fast-json-stable-stringify/test/cmp.js +13 -0
- package/examples/node_modules/fast-json-stable-stringify/test/nested.js +44 -0
- package/examples/node_modules/fast-json-stable-stringify/test/str.js +46 -0
- package/examples/node_modules/fast-json-stable-stringify/test/to-json.js +22 -0
- package/examples/node_modules/fastest-levenshtein/package.json +33 -60
- package/examples/node_modules/find-up/package.json +51 -83
- package/examples/node_modules/function-bind/package.json +23 -54
- package/examples/node_modules/get-stream/index.d.ts +1 -1
- package/examples/node_modules/get-stream/package.json +45 -77
- package/examples/node_modules/get-stream/readme.md +1 -1
- package/examples/node_modules/glob-to-regexp/.travis.yml +4 -0
- package/examples/node_modules/glob-to-regexp/README.md +75 -0
- package/examples/node_modules/glob-to-regexp/index.js +130 -0
- package/examples/node_modules/glob-to-regexp/package.json +23 -0
- package/examples/node_modules/glob-to-regexp/test.js +235 -0
- package/examples/node_modules/graceful-fs/LICENSE +15 -0
- package/examples/node_modules/graceful-fs/README.md +143 -0
- package/examples/node_modules/graceful-fs/clone.js +23 -0
- package/examples/node_modules/graceful-fs/graceful-fs.js +429 -0
- package/examples/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/examples/node_modules/graceful-fs/package.json +50 -0
- package/examples/node_modules/graceful-fs/polyfills.js +348 -0
- package/examples/node_modules/has/package.json +21 -46
- package/examples/node_modules/has-flag/index.d.ts +39 -0
- package/examples/node_modules/has-flag/index.js +8 -0
- package/examples/node_modules/has-flag/license +9 -0
- package/examples/node_modules/has-flag/package.json +46 -0
- package/examples/node_modules/has-flag/readme.md +89 -0
- package/examples/node_modules/human-signals/package.json +27 -59
- package/examples/node_modules/import-local/index.js +9 -4
- package/examples/node_modules/import-local/package.json +50 -81
- package/examples/node_modules/import-local/readme.md +7 -8
- package/examples/node_modules/interpret/package.json +24 -67
- package/examples/node_modules/is-core-module/.eslintrc +0 -1
- package/examples/node_modules/is-core-module/.nycrc +0 -4
- package/examples/node_modules/is-core-module/CHANGELOG.md +69 -0
- package/examples/node_modules/is-core-module/README.md +6 -3
- package/examples/node_modules/is-core-module/core.json +85 -16
- package/examples/node_modules/is-core-module/index.js +1 -1
- package/examples/node_modules/is-core-module/package.json +67 -92
- package/examples/node_modules/is-core-module/test/index.js +47 -0
- package/examples/node_modules/is-plain-object/package.json +26 -68
- package/examples/node_modules/is-stream/index.d.ts +0 -1
- package/examples/node_modules/is-stream/index.js +1 -2
- package/examples/node_modules/is-stream/license +1 -1
- package/examples/node_modules/is-stream/package.json +40 -71
- package/examples/node_modules/is-stream/readme.md +12 -9
- package/examples/node_modules/isexe/package.json +16 -45
- package/examples/node_modules/isobject/package.json +24 -69
- package/examples/node_modules/jest-worker/LICENSE +21 -0
- package/examples/node_modules/jest-worker/README.md +247 -0
- package/examples/node_modules/jest-worker/build/Farm.d.ts +29 -0
- package/examples/node_modules/jest-worker/build/Farm.js +206 -0
- package/examples/node_modules/jest-worker/build/FifoQueue.d.ts +18 -0
- package/examples/node_modules/jest-worker/build/FifoQueue.js +171 -0
- package/examples/node_modules/jest-worker/build/PriorityQueue.d.ts +41 -0
- package/examples/node_modules/jest-worker/build/PriorityQueue.js +188 -0
- package/examples/node_modules/jest-worker/build/WorkerPool.d.ts +13 -0
- package/examples/node_modules/jest-worker/build/WorkerPool.js +49 -0
- package/examples/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +21 -0
- package/examples/node_modules/jest-worker/build/base/BaseWorkerPool.js +201 -0
- package/examples/node_modules/jest-worker/build/index.d.ts +49 -0
- package/examples/node_modules/jest-worker/build/index.js +223 -0
- package/examples/node_modules/jest-worker/build/types.d.ts +143 -0
- package/examples/node_modules/jest-worker/build/types.js +39 -0
- package/examples/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +51 -0
- package/examples/node_modules/jest-worker/build/workers/ChildProcessWorker.js +333 -0
- package/examples/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +34 -0
- package/examples/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +344 -0
- package/examples/node_modules/jest-worker/build/workers/messageParent.d.ts +8 -0
- package/examples/node_modules/jest-worker/build/workers/messageParent.js +38 -0
- package/examples/node_modules/jest-worker/build/workers/processChild.d.ts +7 -0
- package/examples/node_modules/jest-worker/build/workers/processChild.js +148 -0
- package/examples/node_modules/jest-worker/build/workers/threadChild.d.ts +7 -0
- package/examples/node_modules/jest-worker/build/workers/threadChild.js +159 -0
- package/examples/node_modules/jest-worker/package.json +38 -0
- package/examples/node_modules/json-parse-better-errors/CHANGELOG.md +46 -0
- package/examples/node_modules/json-parse-better-errors/LICENSE.md +7 -0
- package/examples/node_modules/json-parse-better-errors/README.md +46 -0
- package/examples/node_modules/json-parse-better-errors/index.js +38 -0
- package/examples/node_modules/json-parse-better-errors/package.json +45 -0
- package/examples/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/examples/node_modules/json-schema-traverse/.travis.yml +8 -0
- package/examples/node_modules/json-schema-traverse/LICENSE +21 -0
- package/examples/node_modules/json-schema-traverse/README.md +83 -0
- package/examples/node_modules/json-schema-traverse/index.js +89 -0
- package/examples/node_modules/json-schema-traverse/package.json +43 -0
- package/examples/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/examples/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/examples/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/examples/node_modules/kind-of/package.json +27 -83
- package/examples/node_modules/loader-runner/LICENSE +21 -0
- package/examples/node_modules/loader-runner/README.md +53 -0
- package/examples/node_modules/loader-runner/lib/LoaderLoadingError.js +11 -0
- package/examples/node_modules/loader-runner/lib/LoaderRunner.js +415 -0
- package/examples/node_modules/loader-runner/lib/loadLoader.js +54 -0
- package/examples/node_modules/loader-runner/package.json +45 -0
- package/examples/node_modules/locate-path/package.json +43 -75
- package/examples/node_modules/merge-stream/package.json +10 -45
- package/examples/node_modules/mime-db/HISTORY.md +507 -0
- package/examples/node_modules/mime-db/LICENSE +23 -0
- package/examples/node_modules/mime-db/README.md +100 -0
- package/examples/node_modules/mime-db/db.json +8519 -0
- package/examples/node_modules/mime-db/index.js +12 -0
- package/examples/node_modules/mime-db/package.json +60 -0
- package/examples/node_modules/mime-types/HISTORY.md +397 -0
- package/examples/node_modules/mime-types/LICENSE +23 -0
- package/examples/node_modules/mime-types/README.md +113 -0
- package/examples/node_modules/mime-types/index.js +188 -0
- package/examples/node_modules/mime-types/package.json +44 -0
- package/examples/node_modules/mimic-fn/package.json +40 -72
- package/examples/node_modules/neo-async/LICENSE +22 -0
- package/examples/node_modules/neo-async/README.md +273 -0
- package/examples/node_modules/neo-async/all.js +3 -0
- package/examples/node_modules/neo-async/allLimit.js +3 -0
- package/examples/node_modules/neo-async/allSeries.js +3 -0
- package/examples/node_modules/neo-async/angelFall.js +3 -0
- package/examples/node_modules/neo-async/any.js +3 -0
- package/examples/node_modules/neo-async/anyLimit.js +3 -0
- package/examples/node_modules/neo-async/anySeries.js +3 -0
- package/examples/node_modules/neo-async/apply.js +3 -0
- package/examples/node_modules/neo-async/applyEach.js +3 -0
- package/examples/node_modules/neo-async/applyEachSeries.js +3 -0
- package/examples/node_modules/neo-async/async.js +9184 -0
- package/examples/node_modules/neo-async/async.min.js +80 -0
- package/examples/node_modules/neo-async/asyncify.js +3 -0
- package/examples/node_modules/neo-async/auto.js +3 -0
- package/examples/node_modules/neo-async/autoInject.js +3 -0
- package/examples/node_modules/neo-async/cargo.js +3 -0
- package/examples/node_modules/neo-async/compose.js +3 -0
- package/examples/node_modules/neo-async/concat.js +3 -0
- package/examples/node_modules/neo-async/concatLimit.js +3 -0
- package/examples/node_modules/neo-async/concatSeries.js +3 -0
- package/examples/node_modules/neo-async/constant.js +3 -0
- package/examples/node_modules/neo-async/createLogger.js +3 -0
- package/examples/node_modules/neo-async/detect.js +3 -0
- package/examples/node_modules/neo-async/detectLimit.js +3 -0
- package/examples/node_modules/neo-async/detectSeries.js +3 -0
- package/examples/node_modules/neo-async/dir.js +3 -0
- package/examples/node_modules/neo-async/doDuring.js +3 -0
- package/examples/node_modules/neo-async/doUntil.js +3 -0
- package/examples/node_modules/neo-async/doWhilst.js +3 -0
- package/examples/node_modules/neo-async/during.js +3 -0
- package/examples/node_modules/neo-async/each.js +3 -0
- package/examples/node_modules/neo-async/eachLimit.js +3 -0
- package/examples/node_modules/neo-async/eachOf.js +3 -0
- package/examples/node_modules/neo-async/eachOfLimit.js +3 -0
- package/examples/node_modules/neo-async/eachOfSeries.js +3 -0
- package/examples/node_modules/neo-async/eachSeries.js +3 -0
- package/examples/node_modules/neo-async/ensureAsync.js +3 -0
- package/examples/node_modules/neo-async/every.js +3 -0
- package/examples/node_modules/neo-async/everyLimit.js +3 -0
- package/examples/node_modules/neo-async/everySeries.js +3 -0
- package/examples/node_modules/neo-async/fast.js +3 -0
- package/examples/node_modules/neo-async/filter.js +3 -0
- package/examples/node_modules/neo-async/filterLimit.js +3 -0
- package/examples/node_modules/neo-async/filterSeries.js +3 -0
- package/examples/node_modules/neo-async/find.js +3 -0
- package/examples/node_modules/neo-async/findLimit.js +3 -0
- package/examples/node_modules/neo-async/findSeries.js +3 -0
- package/examples/node_modules/neo-async/foldl.js +3 -0
- package/examples/node_modules/neo-async/foldr.js +3 -0
- package/examples/node_modules/neo-async/forEach.js +3 -0
- package/examples/node_modules/neo-async/forEachLimit.js +3 -0
- package/examples/node_modules/neo-async/forEachOf.js +3 -0
- package/examples/node_modules/neo-async/forEachOfLimit.js +3 -0
- package/examples/node_modules/neo-async/forEachOfSeries.js +3 -0
- package/examples/node_modules/neo-async/forEachSeries.js +3 -0
- package/examples/node_modules/neo-async/forever.js +3 -0
- package/examples/node_modules/neo-async/groupBy.js +3 -0
- package/examples/node_modules/neo-async/groupByLimit.js +3 -0
- package/examples/node_modules/neo-async/groupBySeries.js +3 -0
- package/examples/node_modules/neo-async/inject.js +3 -0
- package/examples/node_modules/neo-async/iterator.js +3 -0
- package/examples/node_modules/neo-async/log.js +3 -0
- package/examples/node_modules/neo-async/map.js +3 -0
- package/examples/node_modules/neo-async/mapLimit.js +3 -0
- package/examples/node_modules/neo-async/mapSeries.js +3 -0
- package/examples/node_modules/neo-async/mapValues.js +3 -0
- package/examples/node_modules/neo-async/mapValuesLimit.js +3 -0
- package/examples/node_modules/neo-async/mapValuesSeries.js +3 -0
- package/examples/node_modules/neo-async/memoize.js +3 -0
- package/examples/node_modules/neo-async/nextTick.js +3 -0
- package/examples/node_modules/neo-async/omit.js +3 -0
- package/examples/node_modules/neo-async/omitLimit.js +3 -0
- package/examples/node_modules/neo-async/omitSeries.js +3 -0
- package/examples/node_modules/neo-async/package.json +57 -0
- package/examples/node_modules/neo-async/parallel.js +3 -0
- package/examples/node_modules/neo-async/parallelLimit.js +3 -0
- package/examples/node_modules/neo-async/pick.js +3 -0
- package/examples/node_modules/neo-async/pickLimit.js +3 -0
- package/examples/node_modules/neo-async/pickSeries.js +3 -0
- package/examples/node_modules/neo-async/priorityQueue.js +3 -0
- package/examples/node_modules/neo-async/queue.js +3 -0
- package/examples/node_modules/neo-async/race.js +3 -0
- package/examples/node_modules/neo-async/reduce.js +3 -0
- package/examples/node_modules/neo-async/reduceRight.js +3 -0
- package/examples/node_modules/neo-async/reflect.js +3 -0
- package/examples/node_modules/neo-async/reflectAll.js +3 -0
- package/examples/node_modules/neo-async/reject.js +3 -0
- package/examples/node_modules/neo-async/rejectLimit.js +3 -0
- package/examples/node_modules/neo-async/rejectSeries.js +3 -0
- package/examples/node_modules/neo-async/retry.js +3 -0
- package/examples/node_modules/neo-async/retryable.js +3 -0
- package/examples/node_modules/neo-async/safe.js +3 -0
- package/examples/node_modules/neo-async/select.js +3 -0
- package/examples/node_modules/neo-async/selectLimit.js +3 -0
- package/examples/node_modules/neo-async/selectSeries.js +3 -0
- package/examples/node_modules/neo-async/seq.js +3 -0
- package/examples/node_modules/neo-async/series.js +3 -0
- package/examples/node_modules/neo-async/setImmediate.js +3 -0
- package/examples/node_modules/neo-async/some.js +3 -0
- package/examples/node_modules/neo-async/someLimit.js +3 -0
- package/examples/node_modules/neo-async/someSeries.js +3 -0
- package/examples/node_modules/neo-async/sortBy.js +3 -0
- package/examples/node_modules/neo-async/sortByLimit.js +3 -0
- package/examples/node_modules/neo-async/sortBySeries.js +3 -0
- package/examples/node_modules/neo-async/timeout.js +3 -0
- package/examples/node_modules/neo-async/times.js +3 -0
- package/examples/node_modules/neo-async/timesLimit.js +3 -0
- package/examples/node_modules/neo-async/timesSeries.js +3 -0
- package/examples/node_modules/neo-async/transform.js +3 -0
- package/examples/node_modules/neo-async/transformLimit.js +3 -0
- package/examples/node_modules/neo-async/transformSeries.js +3 -0
- package/examples/node_modules/neo-async/tryEach.js +3 -0
- package/examples/node_modules/neo-async/unmemoize.js +3 -0
- package/examples/node_modules/neo-async/until.js +3 -0
- package/examples/node_modules/neo-async/waterfall.js +3 -0
- package/examples/node_modules/neo-async/whilst.js +3 -0
- package/examples/node_modules/neo-async/wrapSync.js +3 -0
- package/examples/node_modules/node-releases/LICENSE +21 -0
- package/examples/node_modules/node-releases/README.md +31 -0
- package/examples/node_modules/node-releases/data/processed/envs.json +1 -0
- package/examples/node_modules/node-releases/data/release-schedule/release-schedule.json +1 -0
- package/examples/node_modules/node-releases/package.json +18 -0
- package/examples/node_modules/npm-run-path/package.json +42 -74
- package/examples/node_modules/onetime/package.json +41 -73
- package/examples/node_modules/p-limit/package.json +50 -82
- package/examples/node_modules/p-locate/package.json +51 -83
- package/examples/node_modules/p-try/package.json +40 -72
- package/examples/node_modules/path-exists/package.json +37 -69
- package/examples/node_modules/path-key/package.json +37 -70
- package/examples/node_modules/path-parse/index.js +17 -35
- package/examples/node_modules/path-parse/package.json +13 -41
- package/examples/node_modules/picocolors/LICENSE +15 -0
- package/examples/node_modules/picocolors/README.md +21 -0
- package/examples/node_modules/picocolors/package.json +25 -0
- package/examples/node_modules/picocolors/picocolors.browser.js +4 -0
- package/examples/node_modules/picocolors/picocolors.d.ts +5 -0
- package/examples/node_modules/picocolors/picocolors.js +58 -0
- package/examples/node_modules/picocolors/types.ts +30 -0
- package/examples/node_modules/pkg-dir/package.json +54 -86
- package/examples/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/examples/node_modules/punycode/README.md +122 -0
- package/examples/node_modules/punycode/package.json +58 -0
- package/examples/node_modules/punycode/punycode.es6.js +441 -0
- package/examples/node_modules/punycode/punycode.js +440 -0
- package/examples/node_modules/randombytes/.travis.yml +15 -0
- package/examples/node_modules/randombytes/.zuul.yml +1 -0
- package/examples/node_modules/randombytes/LICENSE +21 -0
- package/examples/node_modules/randombytes/README.md +14 -0
- package/examples/node_modules/randombytes/browser.js +50 -0
- package/examples/node_modules/randombytes/index.js +1 -0
- package/examples/node_modules/randombytes/package.json +36 -0
- package/examples/node_modules/randombytes/test.js +81 -0
- package/examples/node_modules/rechoir/README.md +9 -0
- package/examples/node_modules/rechoir/lib/extension.js +35 -10
- package/examples/node_modules/rechoir/package.json +24 -67
- package/examples/node_modules/resolve/.eslintrc +34 -8
- package/examples/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/examples/node_modules/resolve/appveyor.yml +4 -2
- package/examples/node_modules/resolve/async.js +3 -0
- package/examples/node_modules/resolve/bin/resolve +50 -0
- package/examples/node_modules/resolve/lib/async.js +10 -1
- package/examples/node_modules/resolve/lib/core.js +1 -2
- package/examples/node_modules/resolve/lib/core.json +85 -16
- package/examples/node_modules/resolve/lib/homedir.js +24 -0
- package/examples/node_modules/resolve/lib/node-modules-paths.js +1 -1
- package/examples/node_modules/resolve/lib/sync.js +14 -5
- package/examples/node_modules/resolve/package.json +60 -78
- package/examples/node_modules/resolve/readme.markdown +35 -13
- package/examples/node_modules/resolve/sync.js +3 -0
- package/examples/node_modules/resolve/test/home_paths.js +127 -0
- package/examples/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/examples/node_modules/resolve/test/mock_sync.js +2 -4
- package/examples/node_modules/resolve/test/node_path.js +1 -1
- package/examples/node_modules/resolve/test/resolver/invalid_main/package.json +1 -1
- package/examples/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/examples/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/examples/node_modules/resolve/test/resolver.js +99 -3
- package/examples/node_modules/resolve/test/resolver_sync.js +310 -23
- package/examples/node_modules/resolve-cwd/package.json +41 -73
- package/examples/node_modules/resolve-from/package.json +34 -66
- package/examples/node_modules/safe-buffer/LICENSE +21 -0
- package/examples/node_modules/safe-buffer/README.md +584 -0
- package/examples/node_modules/safe-buffer/index.d.ts +187 -0
- package/examples/node_modules/safe-buffer/index.js +65 -0
- package/examples/node_modules/safe-buffer/package.json +51 -0
- package/examples/node_modules/schema-utils/LICENSE +20 -0
- package/examples/node_modules/schema-utils/README.md +290 -0
- package/examples/node_modules/schema-utils/declarations/ValidationError.d.ts +74 -0
- package/examples/node_modules/schema-utils/declarations/index.d.ts +3 -0
- package/examples/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +10 -0
- package/examples/node_modules/schema-utils/declarations/util/Range.d.ts +79 -0
- package/examples/node_modules/schema-utils/declarations/util/hints.d.ts +3 -0
- package/examples/node_modules/schema-utils/declarations/validate.d.ts +37 -0
- package/examples/node_modules/schema-utils/dist/ValidationError.js +1271 -0
- package/examples/node_modules/schema-utils/dist/index.js +11 -0
- package/examples/node_modules/schema-utils/dist/keywords/absolutePath.js +93 -0
- package/examples/node_modules/schema-utils/dist/util/Range.js +163 -0
- package/examples/node_modules/schema-utils/dist/util/hints.js +105 -0
- package/examples/node_modules/schema-utils/dist/validate.js +163 -0
- package/examples/node_modules/schema-utils/package.json +78 -0
- package/examples/node_modules/serialize-javascript/LICENSE +27 -0
- package/examples/node_modules/serialize-javascript/README.md +142 -0
- package/examples/node_modules/serialize-javascript/index.js +268 -0
- package/examples/node_modules/serialize-javascript/package.json +36 -0
- package/examples/node_modules/shallow-clone/package.json +20 -57
- package/examples/node_modules/shebang-command/package.json +32 -64
- package/examples/node_modules/shebang-regex/package.json +33 -65
- package/examples/node_modules/signal-exit/README.md +1 -1
- package/examples/node_modules/signal-exit/index.js +169 -130
- package/examples/node_modules/signal-exit/package.json +24 -52
- package/examples/node_modules/source-map/CHANGELOG.md +301 -0
- package/examples/node_modules/source-map/LICENSE +28 -0
- package/examples/node_modules/source-map/README.md +742 -0
- package/examples/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/examples/node_modules/source-map/dist/source-map.js +3233 -0
- package/examples/node_modules/source-map/dist/source-map.min.js +2 -0
- package/examples/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/examples/node_modules/source-map/lib/array-set.js +121 -0
- package/examples/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/examples/node_modules/source-map/lib/base64.js +67 -0
- package/examples/node_modules/source-map/lib/binary-search.js +111 -0
- package/examples/node_modules/source-map/lib/mapping-list.js +79 -0
- package/examples/node_modules/source-map/lib/quick-sort.js +114 -0
- package/examples/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/examples/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/examples/node_modules/source-map/lib/source-node.js +413 -0
- package/examples/node_modules/source-map/lib/util.js +488 -0
- package/examples/node_modules/source-map/package.json +73 -0
- package/examples/node_modules/source-map/source-map.d.ts +98 -0
- package/examples/node_modules/source-map/source-map.js +8 -0
- package/examples/node_modules/source-map-support/LICENSE.md +21 -0
- package/examples/node_modules/source-map-support/README.md +284 -0
- package/examples/node_modules/source-map-support/browser-source-map-support.js +114 -0
- package/examples/node_modules/source-map-support/package.json +31 -0
- package/examples/node_modules/source-map-support/register-hook-require.js +1 -0
- package/examples/node_modules/source-map-support/register.js +1 -0
- package/examples/node_modules/source-map-support/source-map-support.js +625 -0
- package/examples/node_modules/strip-final-newline/package.json +38 -70
- package/examples/node_modules/supports-color/browser.js +24 -0
- package/examples/node_modules/supports-color/index.js +152 -0
- package/examples/node_modules/supports-color/license +9 -0
- package/examples/node_modules/supports-color/package.json +58 -0
- package/examples/node_modules/supports-color/readme.md +77 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/examples/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/examples/node_modules/tapable/LICENSE +21 -0
- package/examples/node_modules/tapable/README.md +296 -0
- package/examples/node_modules/tapable/lib/AsyncParallelBailHook.js +85 -0
- package/examples/node_modules/tapable/lib/AsyncParallelHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesBailHook.js +42 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesLoopHook.js +37 -0
- package/examples/node_modules/tapable/lib/AsyncSeriesWaterfallHook.js +47 -0
- package/examples/node_modules/tapable/lib/Hook.js +175 -0
- package/examples/node_modules/tapable/lib/HookCodeFactory.js +468 -0
- package/examples/node_modules/tapable/lib/HookMap.js +61 -0
- package/examples/node_modules/tapable/lib/MultiHook.js +54 -0
- package/examples/node_modules/tapable/lib/SyncBailHook.js +51 -0
- package/examples/node_modules/tapable/lib/SyncHook.js +46 -0
- package/examples/node_modules/tapable/lib/SyncLoopHook.js +46 -0
- package/examples/node_modules/tapable/lib/SyncWaterfallHook.js +57 -0
- package/examples/node_modules/tapable/lib/index.js +19 -0
- package/examples/node_modules/tapable/lib/util-browser.js +16 -0
- package/examples/node_modules/tapable/package.json +44 -0
- package/examples/node_modules/tapable/tapable.d.ts +116 -0
- package/examples/node_modules/terser/CHANGELOG.md +480 -0
- package/examples/node_modules/terser/LICENSE +29 -0
- package/examples/node_modules/terser/PATRONS.md +15 -0
- package/examples/node_modules/terser/README.md +1374 -0
- package/examples/node_modules/terser/bin/package.json +10 -0
- package/examples/node_modules/terser/bin/terser +21 -0
- package/examples/node_modules/terser/bin/uglifyjs +10 -0
- package/examples/node_modules/terser/dist/.gitkeep +0 -0
- package/examples/node_modules/terser/dist/bundle.min.js +28332 -0
- package/examples/node_modules/terser/dist/package.json +10 -0
- package/examples/node_modules/terser/lib/ast.js +1858 -0
- package/examples/node_modules/terser/lib/cli.js +479 -0
- package/examples/node_modules/terser/lib/compress/common.js +296 -0
- package/examples/node_modules/terser/lib/compress/compressor-flags.js +63 -0
- package/examples/node_modules/terser/lib/compress/drop-side-effect-free.js +350 -0
- package/examples/node_modules/terser/lib/compress/evaluate.js +461 -0
- package/examples/node_modules/terser/lib/compress/index.js +4667 -0
- package/examples/node_modules/terser/lib/compress/inference.js +948 -0
- package/examples/node_modules/terser/lib/compress/native-objects.js +184 -0
- package/examples/node_modules/terser/lib/compress/reduce-vars.js +675 -0
- package/examples/node_modules/terser/lib/compress/tighten-body.js +1461 -0
- package/examples/node_modules/terser/lib/equivalent-to.js +313 -0
- package/examples/node_modules/terser/lib/minify.js +335 -0
- package/examples/node_modules/terser/lib/mozilla-ast.js +1376 -0
- package/examples/node_modules/terser/lib/output.js +2347 -0
- package/examples/node_modules/terser/lib/parse.js +3362 -0
- package/examples/node_modules/terser/lib/propmangle.js +376 -0
- package/examples/node_modules/terser/lib/scope.js +1042 -0
- package/examples/node_modules/terser/lib/size.js +490 -0
- package/examples/node_modules/terser/lib/sourcemap.js +114 -0
- package/examples/node_modules/terser/lib/transform.js +318 -0
- package/examples/node_modules/terser/lib/utils/first_in_statement.js +50 -0
- package/examples/node_modules/terser/lib/utils/index.js +302 -0
- package/examples/node_modules/terser/main.js +27 -0
- package/examples/node_modules/terser/node_modules/source-map/CHANGELOG.md +344 -0
- package/examples/node_modules/terser/node_modules/source-map/LICENSE +28 -0
- package/examples/node_modules/terser/node_modules/source-map/README.md +822 -0
- package/examples/node_modules/terser/node_modules/source-map/dist/source-map.js +3351 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/array-set.js +100 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/base64-vlq.js +111 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/base64.js +18 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/binary-search.js +107 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/mapping-list.js +80 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/mappings.wasm +0 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/read-wasm.js +40 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-map-consumer.js +1254 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-map-generator.js +413 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/source-node.js +404 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/util.js +546 -0
- package/examples/node_modules/terser/node_modules/source-map/lib/wasm.js +107 -0
- package/examples/node_modules/terser/node_modules/source-map/package.json +90 -0
- package/examples/node_modules/terser/node_modules/source-map/source-map.d.ts +369 -0
- package/examples/node_modules/terser/node_modules/source-map/source-map.js +8 -0
- package/examples/node_modules/terser/package.json +152 -0
- package/examples/node_modules/terser/tools/domprops.js +7771 -0
- package/examples/node_modules/terser/tools/exit.cjs +7 -0
- package/examples/node_modules/terser/tools/props.html +55 -0
- package/examples/node_modules/terser/tools/terser.d.ts +207 -0
- package/examples/node_modules/terser-webpack-plugin/LICENSE +20 -0
- package/examples/node_modules/terser-webpack-plugin/README.md +742 -0
- package/examples/node_modules/terser-webpack-plugin/dist/index.js +798 -0
- package/examples/node_modules/terser-webpack-plugin/dist/minify.js +50 -0
- package/examples/node_modules/terser-webpack-plugin/dist/options.json +164 -0
- package/examples/node_modules/terser-webpack-plugin/dist/utils.js +687 -0
- package/examples/node_modules/terser-webpack-plugin/package.json +114 -0
- package/examples/node_modules/terser-webpack-plugin/types/index.d.ts +329 -0
- package/examples/node_modules/terser-webpack-plugin/types/minify.d.ts +17 -0
- package/examples/node_modules/terser-webpack-plugin/types/utils.d.ts +100 -0
- package/examples/node_modules/uri-js/LICENSE +11 -0
- package/examples/node_modules/uri-js/README.md +203 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.js +1443 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.js.map +1 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.js +3 -0
- package/examples/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/index.d.ts +1 -0
- package/examples/node_modules/uri-js/dist/esnext/index.js +17 -0
- package/examples/node_modules/uri-js/dist/esnext/index.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.js +3 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-iri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.js +42 -0
- package/examples/node_modules/uri-js/dist/esnext/regexps-uri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.js +28 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.js +9 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/https.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.js +148 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +23 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.js +49 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/urn.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
- package/examples/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.d.ts +59 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.js +480 -0
- package/examples/node_modules/uri-js/dist/esnext/uri.js.map +1 -0
- package/examples/node_modules/uri-js/dist/esnext/util.d.ts +6 -0
- package/examples/node_modules/uri-js/dist/esnext/util.js +36 -0
- package/examples/node_modules/uri-js/dist/esnext/util.js.map +1 -0
- package/examples/node_modules/uri-js/package.json +77 -0
- package/examples/node_modules/uri-js/yarn.lock +2558 -0
- package/examples/node_modules/watchpack/LICENSE +20 -0
- package/examples/node_modules/watchpack/README.md +149 -0
- package/examples/node_modules/watchpack/lib/DirectoryWatcher.js +785 -0
- package/examples/node_modules/watchpack/lib/LinkResolver.js +107 -0
- package/examples/node_modules/watchpack/lib/getWatcherManager.js +52 -0
- package/examples/node_modules/watchpack/lib/reducePlan.js +138 -0
- package/examples/node_modules/watchpack/lib/watchEventSource.js +335 -0
- package/examples/node_modules/watchpack/lib/watchpack.js +383 -0
- package/examples/node_modules/watchpack/package.json +49 -0
- package/examples/node_modules/webpack/LICENSE +20 -0
- package/examples/node_modules/webpack/README.md +711 -0
- package/examples/node_modules/webpack/SECURITY.md +9 -0
- package/examples/node_modules/webpack/bin/webpack.js +163 -0
- package/examples/node_modules/webpack/hot/dev-server.js +61 -0
- package/examples/node_modules/webpack/hot/emitter.js +2 -0
- package/examples/node_modules/webpack/hot/lazy-compilation-node.js +40 -0
- package/examples/node_modules/webpack/hot/lazy-compilation-web.js +74 -0
- package/examples/node_modules/webpack/hot/log-apply-result.js +44 -0
- package/examples/node_modules/webpack/hot/log.js +59 -0
- package/examples/node_modules/webpack/hot/only-dev-server.js +102 -0
- package/examples/node_modules/webpack/hot/poll.js +37 -0
- package/examples/node_modules/webpack/hot/signal.js +62 -0
- package/examples/node_modules/webpack/lib/APIPlugin.js +253 -0
- package/examples/node_modules/webpack/lib/AbstractMethodError.js +49 -0
- package/examples/node_modules/webpack/lib/AsyncDependenciesBlock.js +106 -0
- package/examples/node_modules/webpack/lib/AsyncDependencyToInitialChunkError.js +31 -0
- package/examples/node_modules/webpack/lib/AutomaticPrefetchPlugin.js +65 -0
- package/examples/node_modules/webpack/lib/BannerPlugin.js +123 -0
- package/examples/node_modules/webpack/lib/Cache.js +161 -0
- package/examples/node_modules/webpack/lib/CacheFacade.js +345 -0
- package/examples/node_modules/webpack/lib/CaseSensitiveModulesWarning.js +71 -0
- package/examples/node_modules/webpack/lib/Chunk.js +820 -0
- package/examples/node_modules/webpack/lib/ChunkGraph.js +1727 -0
- package/examples/node_modules/webpack/lib/ChunkGroup.js +584 -0
- package/examples/node_modules/webpack/lib/ChunkRenderError.js +31 -0
- package/examples/node_modules/webpack/lib/ChunkTemplate.js +138 -0
- package/examples/node_modules/webpack/lib/CleanPlugin.js +420 -0
- package/examples/node_modules/webpack/lib/CodeGenerationError.js +29 -0
- package/examples/node_modules/webpack/lib/CodeGenerationResults.js +155 -0
- package/examples/node_modules/webpack/lib/CommentCompilationWarning.js +33 -0
- package/examples/node_modules/webpack/lib/CompatibilityPlugin.js +152 -0
- package/examples/node_modules/webpack/lib/Compilation.js +5292 -0
- package/examples/node_modules/webpack/lib/Compiler.js +1217 -0
- package/examples/node_modules/webpack/lib/ConcatenationScope.js +159 -0
- package/examples/node_modules/webpack/lib/ConcurrentCompilationError.js +18 -0
- package/examples/node_modules/webpack/lib/ConditionalInitFragment.js +112 -0
- package/examples/node_modules/webpack/lib/ConstPlugin.js +497 -0
- package/examples/node_modules/webpack/lib/ContextExclusionPlugin.js +32 -0
- package/examples/node_modules/webpack/lib/ContextModule.js +1147 -0
- package/examples/node_modules/webpack/lib/ContextModuleFactory.js +437 -0
- package/examples/node_modules/webpack/lib/ContextReplacementPlugin.js +157 -0
- package/examples/node_modules/webpack/lib/DefinePlugin.js +601 -0
- package/examples/node_modules/webpack/lib/DelegatedModule.js +239 -0
- package/examples/node_modules/webpack/lib/DelegatedModuleFactoryPlugin.js +91 -0
- package/examples/node_modules/webpack/lib/DelegatedPlugin.js +43 -0
- package/examples/node_modules/webpack/lib/DependenciesBlock.js +107 -0
- package/examples/node_modules/webpack/lib/Dependency.js +348 -0
- package/examples/node_modules/webpack/lib/DependencyTemplate.js +57 -0
- package/examples/node_modules/webpack/lib/DependencyTemplates.js +67 -0
- package/examples/node_modules/webpack/lib/DllEntryPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/DllModule.js +157 -0
- package/examples/node_modules/webpack/lib/DllModuleFactory.js +37 -0
- package/examples/node_modules/webpack/lib/DllPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/DllReferencePlugin.js +162 -0
- package/examples/node_modules/webpack/lib/DynamicEntryPlugin.js +79 -0
- package/examples/node_modules/webpack/lib/EntryOptionPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/EntryPlugin.js +67 -0
- package/examples/node_modules/webpack/lib/Entrypoint.js +101 -0
- package/examples/node_modules/webpack/lib/EnvironmentPlugin.js +63 -0
- package/examples/node_modules/webpack/lib/ErrorHelpers.js +61 -0
- package/examples/node_modules/webpack/lib/EvalDevToolModulePlugin.js +117 -0
- package/examples/node_modules/webpack/lib/EvalSourceMapDevToolPlugin.js +206 -0
- package/examples/node_modules/webpack/lib/ExportsInfo.js +1523 -0
- package/examples/node_modules/webpack/lib/ExportsInfoApiPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/ExternalModule.js +758 -0
- package/examples/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js +254 -0
- package/examples/node_modules/webpack/lib/ExternalsPlugin.js +37 -0
- package/examples/node_modules/webpack/lib/FileSystemInfo.js +3559 -0
- package/examples/node_modules/webpack/lib/FlagAllModulesAsUsedPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/FlagDependencyExportsPlugin.js +417 -0
- package/examples/node_modules/webpack/lib/FlagDependencyUsagePlugin.js +347 -0
- package/examples/node_modules/webpack/lib/FlagEntryExportAsUsedPlugin.js +53 -0
- package/examples/node_modules/webpack/lib/Generator.js +149 -0
- package/examples/node_modules/webpack/lib/GraphHelpers.js +37 -0
- package/examples/node_modules/webpack/lib/HarmonyLinkingError.js +16 -0
- package/examples/node_modules/webpack/lib/HookWebpackError.js +93 -0
- package/examples/node_modules/webpack/lib/HotModuleReplacementPlugin.js +778 -0
- package/examples/node_modules/webpack/lib/HotUpdateChunk.js +19 -0
- package/examples/node_modules/webpack/lib/IgnoreErrorModuleFactory.js +39 -0
- package/examples/node_modules/webpack/lib/IgnorePlugin.js +83 -0
- package/examples/node_modules/webpack/lib/IgnoreWarningsPlugin.js +39 -0
- package/examples/node_modules/webpack/lib/InitFragment.js +161 -0
- package/examples/node_modules/webpack/lib/InvalidDependenciesModuleWarning.js +44 -0
- package/examples/node_modules/webpack/lib/JavascriptMetaInfoPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/LibManifestPlugin.js +115 -0
- package/examples/node_modules/webpack/lib/LibraryTemplatePlugin.js +48 -0
- package/examples/node_modules/webpack/lib/LoaderOptionsPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/LoaderTargetPlugin.js +37 -0
- package/examples/node_modules/webpack/lib/MainTemplate.js +329 -0
- package/examples/node_modules/webpack/lib/Module.js +1091 -0
- package/examples/node_modules/webpack/lib/ModuleBuildError.js +77 -0
- package/examples/node_modules/webpack/lib/ModuleDependencyError.js +40 -0
- package/examples/node_modules/webpack/lib/ModuleDependencyWarning.js +45 -0
- package/examples/node_modules/webpack/lib/ModuleError.js +61 -0
- package/examples/node_modules/webpack/lib/ModuleFactory.js +50 -0
- package/examples/node_modules/webpack/lib/ModuleFilenameHelpers.js +277 -0
- package/examples/node_modules/webpack/lib/ModuleGraph.js +856 -0
- package/examples/node_modules/webpack/lib/ModuleGraphConnection.js +191 -0
- package/examples/node_modules/webpack/lib/ModuleHashingError.js +29 -0
- package/examples/node_modules/webpack/lib/ModuleInfoHeaderPlugin.js +255 -0
- package/examples/node_modules/webpack/lib/ModuleNotFoundError.js +86 -0
- package/examples/node_modules/webpack/lib/ModuleParseError.js +109 -0
- package/examples/node_modules/webpack/lib/ModuleProfile.js +107 -0
- package/examples/node_modules/webpack/lib/ModuleRestoreError.js +42 -0
- package/examples/node_modules/webpack/lib/ModuleStoreError.js +42 -0
- package/examples/node_modules/webpack/lib/ModuleTemplate.js +142 -0
- package/examples/node_modules/webpack/lib/ModuleWarning.js +61 -0
- package/examples/node_modules/webpack/lib/MultiCompiler.js +582 -0
- package/examples/node_modules/webpack/lib/MultiStats.js +166 -0
- package/examples/node_modules/webpack/lib/MultiWatching.js +77 -0
- package/examples/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js +28 -0
- package/examples/node_modules/webpack/lib/NoModeWarning.js +22 -0
- package/examples/node_modules/webpack/lib/NodeStuffInWebError.js +34 -0
- package/examples/node_modules/webpack/lib/NodeStuffPlugin.js +186 -0
- package/examples/node_modules/webpack/lib/NormalModule.js +1411 -0
- package/examples/node_modules/webpack/lib/NormalModuleFactory.js +1118 -0
- package/examples/node_modules/webpack/lib/NormalModuleReplacementPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/NullFactory.js +23 -0
- package/examples/node_modules/webpack/lib/OptimizationStages.js +10 -0
- package/examples/node_modules/webpack/lib/OptionsApply.js +11 -0
- package/examples/node_modules/webpack/lib/Parser.js +38 -0
- package/examples/node_modules/webpack/lib/PrefetchPlugin.js +50 -0
- package/examples/node_modules/webpack/lib/ProgressPlugin.js +613 -0
- package/examples/node_modules/webpack/lib/ProvidePlugin.js +101 -0
- package/examples/node_modules/webpack/lib/RawModule.js +152 -0
- package/examples/node_modules/webpack/lib/RecordIdsPlugin.js +238 -0
- package/examples/node_modules/webpack/lib/RequestShortener.js +34 -0
- package/examples/node_modules/webpack/lib/RequireJsStuffPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/ResolverFactory.js +151 -0
- package/examples/node_modules/webpack/lib/RuntimeGlobals.js +381 -0
- package/examples/node_modules/webpack/lib/RuntimeModule.js +213 -0
- package/examples/node_modules/webpack/lib/RuntimePlugin.js +444 -0
- package/examples/node_modules/webpack/lib/RuntimeTemplate.js +1041 -0
- package/examples/node_modules/webpack/lib/SelfModuleFactory.js +21 -0
- package/examples/node_modules/webpack/lib/SingleEntryPlugin.js +8 -0
- package/examples/node_modules/webpack/lib/SizeFormatHelpers.js +27 -0
- package/examples/node_modules/webpack/lib/SourceMapDevToolModuleOptionsPlugin.js +57 -0
- package/examples/node_modules/webpack/lib/SourceMapDevToolPlugin.js +560 -0
- package/examples/node_modules/webpack/lib/Stats.js +84 -0
- package/examples/node_modules/webpack/lib/Template.js +419 -0
- package/examples/node_modules/webpack/lib/TemplatedPathPlugin.js +346 -0
- package/examples/node_modules/webpack/lib/UnhandledSchemeError.js +33 -0
- package/examples/node_modules/webpack/lib/UnsupportedFeatureWarning.js +32 -0
- package/examples/node_modules/webpack/lib/UseStrictPlugin.js +56 -0
- package/examples/node_modules/webpack/lib/WarnCaseSensitiveModulesPlugin.js +53 -0
- package/examples/node_modules/webpack/lib/WarnDeprecatedOptionPlugin.js +54 -0
- package/examples/node_modules/webpack/lib/WarnNoModeSetPlugin.js +25 -0
- package/examples/node_modules/webpack/lib/WatchIgnorePlugin.js +132 -0
- package/examples/node_modules/webpack/lib/Watching.js +479 -0
- package/examples/node_modules/webpack/lib/WebpackError.js +61 -0
- package/examples/node_modules/webpack/lib/WebpackIsIncludedPlugin.js +85 -0
- package/examples/node_modules/webpack/lib/WebpackOptionsApply.js +700 -0
- package/examples/node_modules/webpack/lib/WebpackOptionsDefaulter.js +19 -0
- package/examples/node_modules/webpack/lib/asset/AssetGenerator.js +464 -0
- package/examples/node_modules/webpack/lib/asset/AssetModulesPlugin.js +223 -0
- package/examples/node_modules/webpack/lib/asset/AssetParser.js +56 -0
- package/examples/node_modules/webpack/lib/asset/AssetSourceGenerator.js +71 -0
- package/examples/node_modules/webpack/lib/asset/AssetSourceParser.js +31 -0
- package/examples/node_modules/webpack/lib/asset/RawDataUrlModule.js +148 -0
- package/examples/node_modules/webpack/lib/async-modules/AwaitDependenciesInitFragment.js +69 -0
- package/examples/node_modules/webpack/lib/async-modules/InferAsyncModulesPlugin.js +55 -0
- package/examples/node_modules/webpack/lib/buildChunkGraph.js +1401 -0
- package/examples/node_modules/webpack/lib/cache/AddBuildDependenciesPlugin.js +33 -0
- package/examples/node_modules/webpack/lib/cache/AddManagedPathsPlugin.js +35 -0
- package/examples/node_modules/webpack/lib/cache/IdleFileCachePlugin.js +227 -0
- package/examples/node_modules/webpack/lib/cache/MemoryCachePlugin.js +57 -0
- package/examples/node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js +129 -0
- package/examples/node_modules/webpack/lib/cache/PackFileCacheStrategy.js +1426 -0
- package/examples/node_modules/webpack/lib/cache/ResolverCachePlugin.js +354 -0
- package/examples/node_modules/webpack/lib/cache/getLazyHashedEtag.js +81 -0
- package/examples/node_modules/webpack/lib/cache/mergeEtags.js +74 -0
- package/examples/node_modules/webpack/lib/cli.js +655 -0
- package/examples/node_modules/webpack/lib/config/browserslistTargetHandler.js +333 -0
- package/examples/node_modules/webpack/lib/config/defaults.js +1309 -0
- package/examples/node_modules/webpack/lib/config/normalization.js +529 -0
- package/examples/node_modules/webpack/lib/config/target.js +348 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryDependency.js +47 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryModule.js +283 -0
- package/examples/node_modules/webpack/lib/container/ContainerEntryModuleFactory.js +27 -0
- package/examples/node_modules/webpack/lib/container/ContainerExposedDependency.js +52 -0
- package/examples/node_modules/webpack/lib/container/ContainerPlugin.js +105 -0
- package/examples/node_modules/webpack/lib/container/ContainerReferencePlugin.js +142 -0
- package/examples/node_modules/webpack/lib/container/FallbackDependency.js +51 -0
- package/examples/node_modules/webpack/lib/container/FallbackItemDependency.js +30 -0
- package/examples/node_modules/webpack/lib/container/FallbackModule.js +173 -0
- package/examples/node_modules/webpack/lib/container/FallbackModuleFactory.js +27 -0
- package/examples/node_modules/webpack/lib/container/ModuleFederationPlugin.js +92 -0
- package/examples/node_modules/webpack/lib/container/RemoteModule.js +171 -0
- package/examples/node_modules/webpack/lib/container/RemoteRuntimeModule.js +128 -0
- package/examples/node_modules/webpack/lib/container/RemoteToExternalDependency.js +30 -0
- package/examples/node_modules/webpack/lib/container/options.js +91 -0
- package/examples/node_modules/webpack/lib/css/CssExportsGenerator.js +139 -0
- package/examples/node_modules/webpack/lib/css/CssGenerator.js +109 -0
- package/examples/node_modules/webpack/lib/css/CssLoadingRuntimeModule.js +440 -0
- package/examples/node_modules/webpack/lib/css/CssModulesPlugin.js +462 -0
- package/examples/node_modules/webpack/lib/css/CssParser.js +618 -0
- package/examples/node_modules/webpack/lib/css/walkCssTokens.js +659 -0
- package/examples/node_modules/webpack/lib/debug/ProfilingPlugin.js +454 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDDefineDependency.js +221 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDDefineDependencyParserPlugin.js +354 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDPlugin.js +216 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireArrayDependency.js +99 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireContextDependency.js +53 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependenciesBlock.js +22 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +279 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireDependency.js +174 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRequireItemDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/AMDRuntimeModules.js +48 -0
- package/examples/node_modules/webpack/lib/dependencies/CachedConstDependency.js +106 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsDependencyHelpers.js +49 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportRequireDependency.js +374 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportsDependency.js +160 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsExportsParserPlugin.js +336 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsFullRequireDependency.js +136 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsImportsParserPlugin.js +388 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsPlugin.js +280 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsRequireContextDependency.js +55 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsRequireDependency.js +34 -0
- package/examples/node_modules/webpack/lib/dependencies/CommonJsSelfReferenceDependency.js +141 -0
- package/examples/node_modules/webpack/lib/dependencies/ConstDependency.js +108 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependency.js +147 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyHelpers.js +232 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyTemplateAsId.js +61 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +59 -0
- package/examples/node_modules/webpack/lib/dependencies/ContextElementDependency.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/CreateScriptUrlDependency.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/CriticalDependencyWarning.js +25 -0
- package/examples/node_modules/webpack/lib/dependencies/CssExportDependency.js +85 -0
- package/examples/node_modules/webpack/lib/dependencies/CssImportDependency.js +75 -0
- package/examples/node_modules/webpack/lib/dependencies/CssLocalIdentifierDependency.js +119 -0
- package/examples/node_modules/webpack/lib/dependencies/CssSelfLocalIdentifierDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/CssUrlDependency.js +132 -0
- package/examples/node_modules/webpack/lib/dependencies/DelegatedSourceDependency.js +30 -0
- package/examples/node_modules/webpack/lib/dependencies/DllEntryDependency.js +47 -0
- package/examples/node_modules/webpack/lib/dependencies/DynamicExports.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/EntryDependency.js +30 -0
- package/examples/node_modules/webpack/lib/dependencies/ExportsInfoDependency.js +143 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js +134 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyAcceptImportDependency.js +37 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyCompatibilityDependency.js +91 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyDetectionParserPlugin.js +97 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportDependencyParserPlugin.js +185 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportExpressionDependency.js +190 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportHeaderDependency.js +65 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +1271 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportInitFragment.js +168 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExportSpecifierDependency.js +111 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyExports.js +40 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportDependency.js +359 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportDependencyParserPlugin.js +256 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportSideEffectDependency.js +80 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js +331 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyModulesPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/dependencies/HarmonyTopLevelThisParserPlugin.js +27 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportContextDependency.js +52 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportEagerDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +252 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaContextPlugin.js +59 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaHotAcceptDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaHotDeclineDependency.js +36 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportMetaPlugin.js +203 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportParserPlugin.js +267 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportPlugin.js +82 -0
- package/examples/node_modules/webpack/lib/dependencies/ImportWeakDependency.js +67 -0
- package/examples/node_modules/webpack/lib/dependencies/JsonExportsDependency.js +103 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderDependency.js +27 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderImportDependency.js +28 -0
- package/examples/node_modules/webpack/lib/dependencies/LoaderPlugin.js +261 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModule.js +44 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModuleDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/LocalModulesHelpers.js +50 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDecoratorDependency.js +129 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependency.js +81 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependencyTemplateAsId.js +34 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +38 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleHotAcceptDependency.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/ModuleHotDeclineDependency.js +36 -0
- package/examples/node_modules/webpack/lib/dependencies/NullDependency.js +40 -0
- package/examples/node_modules/webpack/lib/dependencies/PrefetchDependency.js +24 -0
- package/examples/node_modules/webpack/lib/dependencies/ProvidedDependency.js +122 -0
- package/examples/node_modules/webpack/lib/dependencies/PureExpressionDependency.js +128 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextDependency.js +31 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextDependencyParserPlugin.js +58 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireContextPlugin.js +150 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependenciesBlock.js +22 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureDependency.js +101 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsureItemDependency.js +33 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireEnsurePlugin.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireHeaderDependency.js +57 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludeDependency.js +74 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludeDependencyParserPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireIncludePlugin.js +42 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveContextDependency.js +50 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveDependency.js +51 -0
- package/examples/node_modules/webpack/lib/dependencies/RequireResolveHeaderDependency.js +63 -0
- package/examples/node_modules/webpack/lib/dependencies/RuntimeRequirementsDependency.js +77 -0
- package/examples/node_modules/webpack/lib/dependencies/StaticExportsDependency.js +66 -0
- package/examples/node_modules/webpack/lib/dependencies/SystemPlugin.js +140 -0
- package/examples/node_modules/webpack/lib/dependencies/SystemRuntimeModule.js +35 -0
- package/examples/node_modules/webpack/lib/dependencies/URLDependency.js +158 -0
- package/examples/node_modules/webpack/lib/dependencies/URLPlugin.js +114 -0
- package/examples/node_modules/webpack/lib/dependencies/UnsupportedDependency.js +69 -0
- package/examples/node_modules/webpack/lib/dependencies/WebAssemblyExportImportedDependency.js +79 -0
- package/examples/node_modules/webpack/lib/dependencies/WebAssemblyImportDependency.js +100 -0
- package/examples/node_modules/webpack/lib/dependencies/WebpackIsIncludedDependency.js +80 -0
- package/examples/node_modules/webpack/lib/dependencies/WorkerDependency.js +89 -0
- package/examples/node_modules/webpack/lib/dependencies/WorkerPlugin.js +416 -0
- package/examples/node_modules/webpack/lib/dependencies/getFunctionExpression.js +55 -0
- package/examples/node_modules/webpack/lib/dependencies/processExportInfo.js +65 -0
- package/examples/node_modules/webpack/lib/electron/ElectronTargetPlugin.js +68 -0
- package/examples/node_modules/webpack/lib/errors/BuildCycleError.js +27 -0
- package/examples/node_modules/webpack/lib/esm/ExportWebpackRequireRuntimeModule.js +29 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkFormatPlugin.js +202 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkLoadingPlugin.js +76 -0
- package/examples/node_modules/webpack/lib/esm/ModuleChunkLoadingRuntimeModule.js +242 -0
- package/examples/node_modules/webpack/lib/formatLocation.js +68 -0
- package/examples/node_modules/webpack/lib/hmr/HotModuleReplacement.runtime.js +394 -0
- package/examples/node_modules/webpack/lib/hmr/HotModuleReplacementRuntimeModule.js +42 -0
- package/examples/node_modules/webpack/lib/hmr/JavascriptHotModuleReplacement.runtime.js +462 -0
- package/examples/node_modules/webpack/lib/hmr/LazyCompilationPlugin.js +418 -0
- package/examples/node_modules/webpack/lib/hmr/lazyCompilationBackend.js +143 -0
- package/examples/node_modules/webpack/lib/ids/ChunkModuleIdRangePlugin.js +80 -0
- package/examples/node_modules/webpack/lib/ids/DeterministicChunkIdsPlugin.js +70 -0
- package/examples/node_modules/webpack/lib/ids/DeterministicModuleIdsPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js +77 -0
- package/examples/node_modules/webpack/lib/ids/IdHelpers.js +477 -0
- package/examples/node_modules/webpack/lib/ids/NamedChunkIdsPlugin.js +81 -0
- package/examples/node_modules/webpack/lib/ids/NamedModuleIdsPlugin.js +58 -0
- package/examples/node_modules/webpack/lib/ids/NaturalChunkIdsPlugin.js +33 -0
- package/examples/node_modules/webpack/lib/ids/NaturalModuleIdsPlugin.js +39 -0
- package/examples/node_modules/webpack/lib/ids/OccurrenceChunkIdsPlugin.js +80 -0
- package/examples/node_modules/webpack/lib/ids/OccurrenceModuleIdsPlugin.js +159 -0
- package/examples/node_modules/webpack/lib/ids/SyncModuleIdsPlugin.js +140 -0
- package/examples/node_modules/webpack/lib/index.js +579 -0
- package/examples/node_modules/webpack/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +154 -0
- package/examples/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js +480 -0
- package/examples/node_modules/webpack/lib/javascript/ChunkHelpers.js +33 -0
- package/examples/node_modules/webpack/lib/javascript/CommonJsChunkFormatPlugin.js +172 -0
- package/examples/node_modules/webpack/lib/javascript/EnableChunkLoadingPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptGenerator.js +225 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js +1370 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptParser.js +3776 -0
- package/examples/node_modules/webpack/lib/javascript/JavascriptParserHelpers.js +107 -0
- package/examples/node_modules/webpack/lib/javascript/StartupHelpers.js +132 -0
- package/examples/node_modules/webpack/lib/json/JsonData.js +41 -0
- package/examples/node_modules/webpack/lib/json/JsonGenerator.js +191 -0
- package/examples/node_modules/webpack/lib/json/JsonModulesPlugin.js +50 -0
- package/examples/node_modules/webpack/lib/json/JsonParser.js +57 -0
- package/examples/node_modules/webpack/lib/library/AbstractLibraryPlugin.js +297 -0
- package/examples/node_modules/webpack/lib/library/AmdLibraryPlugin.js +162 -0
- package/examples/node_modules/webpack/lib/library/AssignLibraryPlugin.js +375 -0
- package/examples/node_modules/webpack/lib/library/EnableLibraryPlugin.js +248 -0
- package/examples/node_modules/webpack/lib/library/ExportPropertyLibraryPlugin.js +113 -0
- package/examples/node_modules/webpack/lib/library/JsonpLibraryPlugin.js +88 -0
- package/examples/node_modules/webpack/lib/library/ModuleLibraryPlugin.js +104 -0
- package/examples/node_modules/webpack/lib/library/SystemLibraryPlugin.js +233 -0
- package/examples/node_modules/webpack/lib/library/UmdLibraryPlugin.js +324 -0
- package/examples/node_modules/webpack/lib/logging/Logger.js +163 -0
- package/examples/node_modules/webpack/lib/logging/createConsoleLogger.js +228 -0
- package/examples/node_modules/webpack/lib/logging/runtime.js +46 -0
- package/examples/node_modules/webpack/lib/logging/truncateArgs.js +82 -0
- package/examples/node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js +105 -0
- package/examples/node_modules/webpack/lib/node/NodeEnvironmentPlugin.js +60 -0
- package/examples/node_modules/webpack/lib/node/NodeSourcePlugin.js +19 -0
- package/examples/node_modules/webpack/lib/node/NodeTargetPlugin.js +81 -0
- package/examples/node_modules/webpack/lib/node/NodeTemplatePlugin.js +33 -0
- package/examples/node_modules/webpack/lib/node/NodeWatchFileSystem.js +194 -0
- package/examples/node_modules/webpack/lib/node/ReadFileChunkLoadingRuntimeModule.js +291 -0
- package/examples/node_modules/webpack/lib/node/ReadFileCompileAsyncWasmPlugin.js +107 -0
- package/examples/node_modules/webpack/lib/node/ReadFileCompileWasmPlugin.js +93 -0
- package/examples/node_modules/webpack/lib/node/RequireChunkLoadingRuntimeModule.js +238 -0
- package/examples/node_modules/webpack/lib/node/nodeConsole.js +143 -0
- package/examples/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js +92 -0
- package/examples/node_modules/webpack/lib/optimize/AggressiveSplittingPlugin.js +329 -0
- package/examples/node_modules/webpack/lib/optimize/ConcatenatedModule.js +1879 -0
- package/examples/node_modules/webpack/lib/optimize/EnsureChunkConditionsPlugin.js +85 -0
- package/examples/node_modules/webpack/lib/optimize/FlagIncludedChunksPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/optimize/InnerGraph.js +346 -0
- package/examples/node_modules/webpack/lib/optimize/InnerGraphPlugin.js +368 -0
- package/examples/node_modules/webpack/lib/optimize/LimitChunkCountPlugin.js +256 -0
- package/examples/node_modules/webpack/lib/optimize/MangleExportsPlugin.js +177 -0
- package/examples/node_modules/webpack/lib/optimize/MergeDuplicateChunksPlugin.js +115 -0
- package/examples/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js +113 -0
- package/examples/node_modules/webpack/lib/optimize/MinMaxSizeWarning.js +30 -0
- package/examples/node_modules/webpack/lib/optimize/ModuleConcatenationPlugin.js +866 -0
- package/examples/node_modules/webpack/lib/optimize/RealContentHashPlugin.js +408 -0
- package/examples/node_modules/webpack/lib/optimize/RemoveEmptyChunksPlugin.js +57 -0
- package/examples/node_modules/webpack/lib/optimize/RemoveParentModulesPlugin.js +121 -0
- package/examples/node_modules/webpack/lib/optimize/RuntimeChunkPlugin.js +44 -0
- package/examples/node_modules/webpack/lib/optimize/SideEffectsFlagPlugin.js +337 -0
- package/examples/node_modules/webpack/lib/optimize/SplitChunksPlugin.js +1723 -0
- package/examples/node_modules/webpack/lib/performance/AssetsOverSizeLimitWarning.js +32 -0
- package/examples/node_modules/webpack/lib/performance/EntrypointsOverSizeLimitWarning.js +35 -0
- package/examples/node_modules/webpack/lib/performance/NoAsyncChunksWarning.js +20 -0
- package/examples/node_modules/webpack/lib/performance/SizeLimitsPlugin.js +165 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +44 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchPreloadPlugin.js +95 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +52 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +49 -0
- package/examples/node_modules/webpack/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +43 -0
- package/examples/node_modules/webpack/lib/rules/BasicEffectRulePlugin.js +39 -0
- package/examples/node_modules/webpack/lib/rules/BasicMatcherRulePlugin.js +47 -0
- package/examples/node_modules/webpack/lib/rules/ObjectMatcherRulePlugin.js +47 -0
- package/examples/node_modules/webpack/lib/rules/RuleSetCompiler.js +379 -0
- package/examples/node_modules/webpack/lib/rules/UseEffectRulePlugin.js +194 -0
- package/examples/node_modules/webpack/lib/runtime/AsyncModuleRuntimeModule.js +156 -0
- package/examples/node_modules/webpack/lib/runtime/AutoPublicPathRuntimeModule.js +69 -0
- package/examples/node_modules/webpack/lib/runtime/ChunkNameRuntimeModule.js +27 -0
- package/examples/node_modules/webpack/lib/runtime/CompatGetDefaultExportRuntimeModule.js +37 -0
- package/examples/node_modules/webpack/lib/runtime/CompatRuntimeModule.js +78 -0
- package/examples/node_modules/webpack/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +66 -0
- package/examples/node_modules/webpack/lib/runtime/CreateScriptRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/CreateScriptUrlRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/DefinePropertyGettersRuntimeModule.js +39 -0
- package/examples/node_modules/webpack/lib/runtime/EnsureChunkRuntimeModule.js +54 -0
- package/examples/node_modules/webpack/lib/runtime/GetChunkFilenameRuntimeModule.js +282 -0
- package/examples/node_modules/webpack/lib/runtime/GetFullHashRuntimeModule.js +29 -0
- package/examples/node_modules/webpack/lib/runtime/GetMainFilenameRuntimeModule.js +44 -0
- package/examples/node_modules/webpack/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +76 -0
- package/examples/node_modules/webpack/lib/runtime/GlobalRuntimeModule.js +47 -0
- package/examples/node_modules/webpack/lib/runtime/HasOwnPropertyRuntimeModule.js +32 -0
- package/examples/node_modules/webpack/lib/runtime/HelperRuntimeModule.js +18 -0
- package/examples/node_modules/webpack/lib/runtime/LoadScriptRuntimeModule.js +158 -0
- package/examples/node_modules/webpack/lib/runtime/MakeNamespaceObjectRuntimeModule.js +36 -0
- package/examples/node_modules/webpack/lib/runtime/OnChunksLoadedRuntimeModule.js +76 -0
- package/examples/node_modules/webpack/lib/runtime/PublicPathRuntimeModule.js +30 -0
- package/examples/node_modules/webpack/lib/runtime/RelativeUrlRuntimeModule.js +41 -0
- package/examples/node_modules/webpack/lib/runtime/RuntimeIdRuntimeModule.js +28 -0
- package/examples/node_modules/webpack/lib/runtime/StartupChunkDependenciesPlugin.js +74 -0
- package/examples/node_modules/webpack/lib/runtime/StartupChunkDependenciesRuntimeModule.js +67 -0
- package/examples/node_modules/webpack/lib/runtime/StartupEntrypointRuntimeModule.js +50 -0
- package/examples/node_modules/webpack/lib/runtime/SystemContextRuntimeModule.js +25 -0
- package/examples/node_modules/webpack/lib/schemes/DataUriPlugin.js +56 -0
- package/examples/node_modules/webpack/lib/schemes/FileUriPlugin.js +49 -0
- package/examples/node_modules/webpack/lib/schemes/HttpUriPlugin.js +1118 -0
- package/examples/node_modules/webpack/lib/serialization/ArraySerializer.js +22 -0
- package/examples/node_modules/webpack/lib/serialization/BinaryMiddleware.js +950 -0
- package/examples/node_modules/webpack/lib/serialization/DateObjectSerializer.js +16 -0
- package/examples/node_modules/webpack/lib/serialization/ErrorObjectSerializer.js +27 -0
- package/examples/node_modules/webpack/lib/serialization/FileMiddleware.js +665 -0
- package/examples/node_modules/webpack/lib/serialization/MapObjectSerializer.js +31 -0
- package/examples/node_modules/webpack/lib/serialization/NullPrototypeObjectSerializer.js +33 -0
- package/examples/node_modules/webpack/lib/serialization/ObjectMiddleware.js +734 -0
- package/examples/node_modules/webpack/lib/serialization/PlainObjectSerializer.js +80 -0
- package/examples/node_modules/webpack/lib/serialization/RegExpObjectSerializer.js +17 -0
- package/examples/node_modules/webpack/lib/serialization/Serializer.js +46 -0
- package/examples/node_modules/webpack/lib/serialization/SerializerMiddleware.js +153 -0
- package/examples/node_modules/webpack/lib/serialization/SetObjectSerializer.js +24 -0
- package/examples/node_modules/webpack/lib/serialization/SingleItemMiddleware.js +34 -0
- package/examples/node_modules/webpack/lib/serialization/types.js +13 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedFallbackDependency.js +30 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedModule.js +251 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedPlugin.js +319 -0
- package/examples/node_modules/webpack/lib/sharing/ConsumeSharedRuntimeModule.js +360 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideForSharedDependency.js +34 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedDependency.js +63 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedModule.js +184 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedModuleFactory.js +35 -0
- package/examples/node_modules/webpack/lib/sharing/ProvideSharedPlugin.js +237 -0
- package/examples/node_modules/webpack/lib/sharing/SharePlugin.js +92 -0
- package/examples/node_modules/webpack/lib/sharing/ShareRuntimeModule.js +141 -0
- package/examples/node_modules/webpack/lib/sharing/resolveMatchedConfigs.js +91 -0
- package/examples/node_modules/webpack/lib/sharing/utils.js +90 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsFactoryPlugin.js +2398 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsPresetPlugin.js +326 -0
- package/examples/node_modules/webpack/lib/stats/DefaultStatsPrinterPlugin.js +1380 -0
- package/examples/node_modules/webpack/lib/stats/StatsFactory.js +292 -0
- package/examples/node_modules/webpack/lib/stats/StatsPrinter.js +249 -0
- package/examples/node_modules/webpack/lib/util/ArrayHelpers.js +44 -0
- package/examples/node_modules/webpack/lib/util/ArrayQueue.js +111 -0
- package/examples/node_modules/webpack/lib/util/AsyncQueue.js +373 -0
- package/examples/node_modules/webpack/lib/util/Hash.js +35 -0
- package/examples/node_modules/webpack/lib/util/IterableHelpers.js +46 -0
- package/examples/node_modules/webpack/lib/util/LazyBucketSortedSet.js +236 -0
- package/examples/node_modules/webpack/lib/util/LazySet.js +208 -0
- package/examples/node_modules/webpack/lib/util/MapHelpers.js +22 -0
- package/examples/node_modules/webpack/lib/util/ParallelismFactorCalculator.js +59 -0
- package/examples/node_modules/webpack/lib/util/Queue.js +51 -0
- package/examples/node_modules/webpack/lib/util/Semaphore.js +54 -0
- package/examples/node_modules/webpack/lib/util/SetHelpers.js +94 -0
- package/examples/node_modules/webpack/lib/util/SortableSet.js +160 -0
- package/examples/node_modules/webpack/lib/util/StackedCacheMap.js +110 -0
- package/examples/node_modules/webpack/lib/util/StackedMap.js +166 -0
- package/examples/node_modules/webpack/lib/util/StringXor.js +55 -0
- package/examples/node_modules/webpack/lib/util/TupleQueue.js +61 -0
- package/examples/node_modules/webpack/lib/util/TupleSet.js +150 -0
- package/examples/node_modules/webpack/lib/util/URLAbsoluteSpecifier.js +87 -0
- package/examples/node_modules/webpack/lib/util/WeakTupleMap.js +171 -0
- package/examples/node_modules/webpack/lib/util/binarySearchBounds.js +86 -0
- package/examples/node_modules/webpack/lib/util/cleverMerge.js +568 -0
- package/examples/node_modules/webpack/lib/util/comparators.js +459 -0
- package/examples/node_modules/webpack/lib/util/compileBooleanMatcher.js +206 -0
- package/examples/node_modules/webpack/lib/util/create-schema-validation.js +28 -0
- package/examples/node_modules/webpack/lib/util/createHash.js +171 -0
- package/examples/node_modules/webpack/lib/util/deprecation.js +264 -0
- package/examples/node_modules/webpack/lib/util/deterministicGrouping.js +508 -0
- package/examples/node_modules/webpack/lib/util/extractUrlAndGlobal.js +18 -0
- package/examples/node_modules/webpack/lib/util/findGraphRoots.js +229 -0
- package/examples/node_modules/webpack/lib/util/fs.js +337 -0
- package/examples/node_modules/webpack/lib/util/hash/BatchedHash.js +68 -0
- package/examples/node_modules/webpack/lib/util/hash/md4.js +20 -0
- package/examples/node_modules/webpack/lib/util/hash/wasm-hash.js +163 -0
- package/examples/node_modules/webpack/lib/util/hash/xxhash64.js +20 -0
- package/examples/node_modules/webpack/lib/util/identifier.js +377 -0
- package/examples/node_modules/webpack/lib/util/internalSerializables.js +211 -0
- package/examples/node_modules/webpack/lib/util/makeSerializable.js +30 -0
- package/examples/node_modules/webpack/lib/util/memoize.js +32 -0
- package/examples/node_modules/webpack/lib/util/nonNumericOnlyHash.js +22 -0
- package/examples/node_modules/webpack/lib/util/numberHash.js +45 -0
- package/examples/node_modules/webpack/lib/util/objectToMap.js +15 -0
- package/examples/node_modules/webpack/lib/util/processAsyncTree.js +62 -0
- package/examples/node_modules/webpack/lib/util/propertyAccess.js +78 -0
- package/examples/node_modules/webpack/lib/util/registerExternalSerializer.js +337 -0
- package/examples/node_modules/webpack/lib/util/runtime.js +623 -0
- package/examples/node_modules/webpack/lib/util/semver.js +484 -0
- package/examples/node_modules/webpack/lib/util/serialization.js +128 -0
- package/examples/node_modules/webpack/lib/util/smartGrouping.js +206 -0
- package/examples/node_modules/webpack/lib/util/source.js +61 -0
- package/examples/node_modules/webpack/lib/validateSchema.js +175 -0
- package/examples/node_modules/webpack/lib/wasm/EnableWasmLoadingPlugin.js +118 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +78 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyGenerator.js +53 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +194 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +198 -0
- package/examples/node_modules/webpack/lib/wasm-async/AsyncWebAssemblyParser.js +75 -0
- package/examples/node_modules/webpack/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +16 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +372 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WasmFinalizeExportsPlugin.js +82 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyGenerator.js +501 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyInInitialChunkError.js +106 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +216 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyModulesPlugin.js +142 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js +192 -0
- package/examples/node_modules/webpack/lib/wasm-sync/WebAssemblyUtils.js +65 -0
- package/examples/node_modules/webpack/lib/web/FetchCompileAsyncWasmPlugin.js +62 -0
- package/examples/node_modules/webpack/lib/web/FetchCompileWasmPlugin.js +71 -0
- package/examples/node_modules/webpack/lib/web/JsonpChunkLoadingPlugin.js +91 -0
- package/examples/node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js +450 -0
- package/examples/node_modules/webpack/lib/web/JsonpTemplatePlugin.js +38 -0
- package/examples/node_modules/webpack/lib/webpack.js +171 -0
- package/examples/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js +94 -0
- package/examples/node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +238 -0
- package/examples/node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js +25 -0
- package/examples/node_modules/webpack/module.d.ts +215 -0
- package/examples/node_modules/webpack/package.json +242 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/WebpackOptions.json +5321 -0
- package/examples/node_modules/webpack/schemas/_container.json +155 -0
- package/examples/node_modules/webpack/schemas/_sharing.json +118 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/BannerPlugin.json +103 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/DllPlugin.json +36 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/DllReferencePlugin.json +206 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/HashedModuleIdsPlugin.json +44 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/IgnorePlugin.json +34 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/JsonModulesPluginParser.json +12 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/LoaderOptionsPlugin.json +27 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ProgressPlugin.json +65 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/SourceMapDevToolPlugin.json +143 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/WatchIgnorePlugin.json +25 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetInlineGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetParserOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/asset/AssetResourceGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerPlugin.json +286 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ContainerReferencePlugin.json +128 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ExternalsType.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/container/ModuleFederationPlugin.json +513 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssGeneratorOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/css/CssParserOptions.json +3 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/debug/ProfilingPlugin.json +12 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceChunkIdsPlugin.json +11 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/ids/OccurrenceModuleIdsPlugin.json +11 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/AggressiveSplittingPlugin.json +23 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/LimitChunkCountPlugin.json +21 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/optimize/MinChunkSizePlugin.json +20 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/schemes/HttpUriPlugin.json +74 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ConsumeSharedPlugin.json +120 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/ProvideSharedPlugin.json +94 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.check.d.ts +7 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.check.js +6 -0
- package/examples/node_modules/webpack/schemas/plugins/sharing/SharePlugin.json +133 -0
- package/examples/node_modules/webpack/types.d.ts +13072 -0
- package/examples/node_modules/webpack-cli/README.md +45 -14
- package/examples/node_modules/webpack-cli/bin/cli.js +9 -32
- package/examples/node_modules/webpack-cli/lib/bootstrap.js +12 -15
- package/examples/node_modules/webpack-cli/lib/index.js +3 -3
- package/examples/node_modules/webpack-cli/lib/plugins/CLIPlugin.js +101 -68
- package/examples/node_modules/webpack-cli/lib/utils/dynamic-import-loader.js +7 -7
- package/examples/node_modules/webpack-cli/lib/webpack-cli.js +2093 -1553
- package/examples/node_modules/webpack-cli/node_modules/commander/CHANGELOG.md +440 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/LICENSE +22 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/Readme.md +917 -0
- package/examples/node_modules/{commander → webpack-cli/node_modules/commander}/esm.mjs +0 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/index.js +2217 -0
- package/examples/node_modules/{commander → webpack-cli/node_modules/commander}/package-support.json +0 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/package.json +68 -0
- package/examples/node_modules/webpack-cli/node_modules/commander/typings/index.d.ts +627 -0
- package/examples/node_modules/webpack-cli/package.json +30 -63
- package/examples/node_modules/webpack-merge/CHANGELOG.md +5 -0
- package/examples/node_modules/webpack-merge/README.md +3 -3
- package/examples/node_modules/webpack-merge/dist/index.d.ts +4 -4
- package/examples/node_modules/webpack-merge/dist/index.js +8 -7
- package/examples/node_modules/webpack-merge/dist/index.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/join-arrays.js +7 -6
- package/examples/node_modules/webpack-merge/dist/join-arrays.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/types.d.ts +1 -0
- package/examples/node_modules/webpack-merge/dist/unique.js +5 -4
- package/examples/node_modules/webpack-merge/dist/unique.js.map +1 -1
- package/examples/node_modules/webpack-merge/dist/utils.d.ts +1 -1
- package/examples/node_modules/webpack-merge/package.json +37 -65
- package/examples/node_modules/webpack-sources/LICENSE +21 -0
- package/examples/node_modules/webpack-sources/README.md +228 -0
- package/examples/node_modules/webpack-sources/lib/CachedSource.js +274 -0
- package/examples/node_modules/webpack-sources/lib/CompatSource.js +66 -0
- package/examples/node_modules/webpack-sources/lib/ConcatSource.js +319 -0
- package/examples/node_modules/webpack-sources/lib/OriginalSource.js +135 -0
- package/examples/node_modules/webpack-sources/lib/PrefixSource.js +114 -0
- package/examples/node_modules/webpack-sources/lib/RawSource.js +81 -0
- package/examples/node_modules/webpack-sources/lib/ReplaceSource.js +467 -0
- package/examples/node_modules/webpack-sources/lib/SizeOnlySource.js +42 -0
- package/examples/node_modules/webpack-sources/lib/Source.js +38 -0
- package/examples/node_modules/webpack-sources/lib/SourceMapSource.js +247 -0
- package/examples/node_modules/webpack-sources/lib/helpers/createMappingsSerializer.js +206 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js +129 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js +33 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getName.js +14 -0
- package/examples/node_modules/webpack-sources/lib/helpers/getSource.js +17 -0
- package/examples/node_modules/webpack-sources/lib/helpers/readMappings.js +116 -0
- package/examples/node_modules/webpack-sources/lib/helpers/splitIntoLines.js +21 -0
- package/examples/node_modules/webpack-sources/lib/helpers/splitIntoPotentialTokens.js +41 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js +102 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunks.js +36 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js +329 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js +34 -0
- package/examples/node_modules/webpack-sources/lib/helpers/streamChunksOfSourceMap.js +412 -0
- package/examples/node_modules/webpack-sources/lib/index.js +30 -0
- package/examples/node_modules/webpack-sources/package.json +58 -0
- package/examples/node_modules/which/package.json +22 -55
- package/examples/node_modules/wildcard/package.json +22 -51
- package/lib/browser/math.js +6 -6
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/cjs/expression/node/FunctionNode.js +30 -8
- package/lib/cjs/function/arithmetic/sign.js +4 -0
- package/lib/cjs/function/string/format.js +3 -0
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/type/unit/Unit.js +67 -79
- package/lib/cjs/utils/string.js +17 -4
- package/lib/cjs/version.js +1 -1
- package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +1 -1
- package/lib/esm/expression/node/FunctionNode.js +29 -9
- package/lib/esm/function/arithmetic/sign.js +4 -0
- package/lib/esm/function/string/format.js +3 -0
- package/lib/esm/type/unit/Unit.js +67 -79
- package/lib/esm/utils/string.js +18 -4
- package/lib/esm/version.js +1 -1
- package/package.json +2 -2
- package/examples/node_modules/@discoveryjs/json-ext/CHANGELOG.md +0 -42
- package/examples/node_modules/@webpack-cli/configtest/CHANGELOG.md +0 -18
- package/examples/node_modules/@webpack-cli/configtest/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/info/CHANGELOG.md +0 -61
- package/examples/node_modules/@webpack-cli/info/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/serve/CHANGELOG.md +0 -93
- package/examples/node_modules/@webpack-cli/serve/LICENSE +0 -20
- package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.d.ts +0 -12
- package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.js +0 -113
- package/examples/node_modules/ansi-colors/LICENSE +0 -21
- package/examples/node_modules/ansi-colors/README.md +0 -315
- package/examples/node_modules/ansi-colors/index.js +0 -177
- package/examples/node_modules/ansi-colors/package.json +0 -152
- package/examples/node_modules/ansi-colors/symbols.js +0 -70
- package/examples/node_modules/ansi-colors/types/index.d.ts +0 -161
- package/examples/node_modules/enquirer/CHANGELOG.md +0 -135
- package/examples/node_modules/enquirer/LICENSE +0 -21
- package/examples/node_modules/enquirer/README.md +0 -1752
- package/examples/node_modules/enquirer/index.d.ts +0 -151
- package/examples/node_modules/enquirer/index.js +0 -250
- package/examples/node_modules/enquirer/lib/ansi.js +0 -116
- package/examples/node_modules/enquirer/lib/combos.js +0 -75
- package/examples/node_modules/enquirer/lib/completer.js +0 -52
- package/examples/node_modules/enquirer/lib/interpolate.js +0 -266
- package/examples/node_modules/enquirer/lib/keypress.js +0 -243
- package/examples/node_modules/enquirer/lib/placeholder.js +0 -63
- package/examples/node_modules/enquirer/lib/prompt.js +0 -485
- package/examples/node_modules/enquirer/lib/prompts/autocomplete.js +0 -113
- package/examples/node_modules/enquirer/lib/prompts/basicauth.js +0 -41
- package/examples/node_modules/enquirer/lib/prompts/confirm.js +0 -13
- package/examples/node_modules/enquirer/lib/prompts/editable.js +0 -136
- package/examples/node_modules/enquirer/lib/prompts/form.js +0 -196
- package/examples/node_modules/enquirer/lib/prompts/index.js +0 -28
- package/examples/node_modules/enquirer/lib/prompts/input.js +0 -55
- package/examples/node_modules/enquirer/lib/prompts/invisible.js +0 -11
- package/examples/node_modules/enquirer/lib/prompts/list.js +0 -36
- package/examples/node_modules/enquirer/lib/prompts/multiselect.js +0 -11
- package/examples/node_modules/enquirer/lib/prompts/numeral.js +0 -1
- package/examples/node_modules/enquirer/lib/prompts/password.js +0 -18
- package/examples/node_modules/enquirer/lib/prompts/quiz.js +0 -37
- package/examples/node_modules/enquirer/lib/prompts/scale.js +0 -237
- package/examples/node_modules/enquirer/lib/prompts/select.js +0 -139
- package/examples/node_modules/enquirer/lib/prompts/snippet.js +0 -185
- package/examples/node_modules/enquirer/lib/prompts/sort.js +0 -37
- package/examples/node_modules/enquirer/lib/prompts/survey.js +0 -163
- package/examples/node_modules/enquirer/lib/prompts/text.js +0 -1
- package/examples/node_modules/enquirer/lib/prompts/toggle.js +0 -109
- package/examples/node_modules/enquirer/lib/render.js +0 -33
- package/examples/node_modules/enquirer/lib/roles.js +0 -46
- package/examples/node_modules/enquirer/lib/state.js +0 -69
- package/examples/node_modules/enquirer/lib/styles.js +0 -144
- package/examples/node_modules/enquirer/lib/symbols.js +0 -66
- package/examples/node_modules/enquirer/lib/theme.js +0 -11
- package/examples/node_modules/enquirer/lib/timer.js +0 -38
- package/examples/node_modules/enquirer/lib/types/array.js +0 -658
- package/examples/node_modules/enquirer/lib/types/auth.js +0 -29
- package/examples/node_modules/enquirer/lib/types/boolean.js +0 -88
- package/examples/node_modules/enquirer/lib/types/index.js +0 -7
- package/examples/node_modules/enquirer/lib/types/number.js +0 -86
- package/examples/node_modules/enquirer/lib/types/string.js +0 -185
- package/examples/node_modules/enquirer/lib/utils.js +0 -268
- package/examples/node_modules/enquirer/package.json +0 -148
- package/examples/node_modules/is-core-module/.eslintignore +0 -1
- package/examples/node_modules/is-core-module/.github/FUNDING.yml +0 -12
- package/examples/node_modules/is-core-module/.github/workflows/node-4+.yml +0 -54
- package/examples/node_modules/is-core-module/.github/workflows/node-iojs.yml +0 -58
- package/examples/node_modules/is-core-module/.github/workflows/node-pretest.yml +0 -26
- package/examples/node_modules/is-core-module/.github/workflows/node-zero.yml +0 -58
- package/examples/node_modules/is-core-module/.github/workflows/rebase.yml +0 -15
- package/examples/node_modules/is-core-module/.github/workflows/require-allow-edits.yml +0 -14
- package/examples/node_modules/path-parse/.travis.yml +0 -9
- package/examples/node_modules/path-parse/test.js +0 -77
- package/examples/node_modules/resolve/.eslintignore +0 -1
- package/examples/node_modules/resolve/test/.eslintrc +0 -5
- package/examples/node_modules/signal-exit/CHANGELOG.md +0 -35
- package/examples/node_modules/v8-compile-cache/CHANGELOG.md +0 -53
- package/examples/node_modules/v8-compile-cache/LICENSE +0 -21
- package/examples/node_modules/v8-compile-cache/README.md +0 -55
- package/examples/node_modules/v8-compile-cache/package.json +0 -66
- package/examples/node_modules/v8-compile-cache/v8-compile-cache.js +0 -371
- package/examples/node_modules/webpack-cli/CHANGELOG.md +0 -501
- package/examples/node_modules/webpack-cli/LICENSE +0 -20
- package/examples/node_modules/webpack-cli/lib/utils/__tests__/get-package-manager.test.js +0 -108
- package/examples/node_modules/webpack-cli/lib/utils/__tests__/prompt-installation.test.js +0 -118
- package/examples/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js +0 -9
- package/examples/node_modules/webpack-cli/lib/utils/get-package-manager.js +0 -65
- package/examples/node_modules/webpack-cli/lib/utils/index.js +0 -49
- package/examples/node_modules/webpack-cli/lib/utils/logger.js +0 -11
- package/examples/node_modules/webpack-cli/lib/utils/package-exists.js +0 -9
- package/examples/node_modules/webpack-cli/lib/utils/prompt-installation.js +0 -58
- package/examples/node_modules/webpack-cli/lib/utils/run-command.js +0 -13
- package/examples/node_modules/webpack-cli/lib/utils/to-kebab-case.js +0 -5
@@ -1,1803 +1,2343 @@
|
|
1
|
-
const fs = require(
|
2
|
-
const path = require(
|
3
|
-
const { pathToFileURL } = require(
|
4
|
-
const
|
1
|
+
const fs = require("fs");
|
2
|
+
const path = require("path");
|
3
|
+
const { pathToFileURL } = require("url");
|
4
|
+
const util = require("util");
|
5
5
|
|
6
|
-
const { program } = require(
|
7
|
-
|
6
|
+
const { program, Option } = require("commander");
|
7
|
+
|
8
|
+
const WEBPACK_PACKAGE = process.env.WEBPACK_PACKAGE || "webpack";
|
9
|
+
const WEBPACK_DEV_SERVER_PACKAGE = process.env.WEBPACK_DEV_SERVER_PACKAGE || "webpack-dev-server";
|
8
10
|
|
9
11
|
class WebpackCLI {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
constructor() {
|
13
|
+
this.colors = this.createColors();
|
14
|
+
this.logger = this.getLogger();
|
15
|
+
|
16
|
+
// Initialize program
|
17
|
+
this.program = program;
|
18
|
+
this.program.name("webpack");
|
19
|
+
this.program.configureOutput({
|
20
|
+
writeErr: this.logger.error,
|
21
|
+
outputError: (str, write) =>
|
22
|
+
write(`Error: ${this.capitalizeFirstLetter(str.replace(/^error:/, "").trim())}`),
|
23
|
+
});
|
24
|
+
}
|
25
|
+
|
26
|
+
capitalizeFirstLetter(str) {
|
27
|
+
if (typeof str !== "string") {
|
28
|
+
return "";
|
23
29
|
}
|
24
30
|
|
25
|
-
|
26
|
-
|
27
|
-
(command) => command.name() === commandOptions.name || command.aliases().includes(commandOptions.alias),
|
28
|
-
);
|
31
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
32
|
+
}
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
|
34
|
+
toKebabCase(str) {
|
35
|
+
return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
36
|
+
}
|
33
37
|
|
34
|
-
|
35
|
-
|
36
|
-
hidden: commandOptions.hidden,
|
37
|
-
isDefault: commandOptions.isDefault,
|
38
|
-
});
|
38
|
+
createColors(useColor) {
|
39
|
+
const { createColors, isColorSupported } = require("colorette");
|
39
40
|
|
40
|
-
|
41
|
-
command.description(commandOptions.description);
|
42
|
-
}
|
41
|
+
let shouldUseColor;
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
if (useColor) {
|
44
|
+
shouldUseColor = useColor;
|
45
|
+
} else {
|
46
|
+
shouldUseColor = isColorSupported;
|
47
|
+
}
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
return { ...createColors({ useColor: shouldUseColor }), isColorSupported: shouldUseColor };
|
50
|
+
}
|
51
|
+
|
52
|
+
getLogger() {
|
53
|
+
return {
|
54
|
+
error: (val) => console.error(`[webpack-cli] ${this.colors.red(util.format(val))}`),
|
55
|
+
warn: (val) => console.warn(`[webpack-cli] ${this.colors.yellow(val)}`),
|
56
|
+
info: (val) => console.info(`[webpack-cli] ${this.colors.cyan(val)}`),
|
57
|
+
success: (val) => console.log(`[webpack-cli] ${this.colors.green(val)}`),
|
58
|
+
log: (val) => console.log(`[webpack-cli] ${val}`),
|
59
|
+
raw: (val) => console.log(val),
|
60
|
+
};
|
61
|
+
}
|
62
|
+
|
63
|
+
checkPackageExists(packageName) {
|
64
|
+
if (process.versions.pnp) {
|
65
|
+
return true;
|
66
|
+
}
|
53
67
|
|
54
|
-
|
55
|
-
command.pkg = commandOptions.pkg;
|
56
|
-
} else {
|
57
|
-
command.pkg = 'webpack-cli';
|
58
|
-
}
|
68
|
+
let dir = __dirname;
|
59
69
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
if (commandOptions.dependencies && commandOptions.dependencies.length > 0) {
|
65
|
-
for (const dependency of commandOptions.dependencies) {
|
66
|
-
const { packageExists } = this.utils;
|
67
|
-
const isPkgExist = packageExists(dependency);
|
68
|
-
|
69
|
-
if (isPkgExist) {
|
70
|
-
continue;
|
71
|
-
} else if (!isPkgExist && forHelp) {
|
72
|
-
allDependenciesInstalled = false;
|
73
|
-
continue;
|
74
|
-
}
|
75
|
-
|
76
|
-
const { promptInstallation, colors } = this.utils;
|
77
|
-
|
78
|
-
try {
|
79
|
-
await promptInstallation(dependency, () => {
|
80
|
-
this.logger.error(
|
81
|
-
`For using '${colors.green(commandOptions.name.split(' ')[0])}' command you need to install: '${colors.green(
|
82
|
-
dependency,
|
83
|
-
)}' package`,
|
84
|
-
);
|
85
|
-
});
|
86
|
-
} catch (error) {
|
87
|
-
this.logger.error("Action Interrupted, use 'webpack-cli help' to see possible commands.");
|
88
|
-
this.logger.error(error);
|
89
|
-
process.exit(2);
|
90
|
-
}
|
91
|
-
}
|
70
|
+
do {
|
71
|
+
try {
|
72
|
+
if (fs.statSync(path.join(dir, "node_modules", packageName)).isDirectory()) {
|
73
|
+
return true;
|
92
74
|
}
|
75
|
+
} catch (_error) {
|
76
|
+
// Nothing
|
77
|
+
}
|
78
|
+
} while (dir !== (dir = path.dirname(dir)));
|
79
|
+
|
80
|
+
return false;
|
81
|
+
}
|
82
|
+
|
83
|
+
getAvailablePackageManagers() {
|
84
|
+
const { sync } = require("execa");
|
85
|
+
const installers = ["npm", "yarn", "pnpm"];
|
86
|
+
const hasPackageManagerInstalled = (packageManager) => {
|
87
|
+
try {
|
88
|
+
sync(packageManager, ["--version"]);
|
89
|
+
|
90
|
+
return packageManager;
|
91
|
+
} catch (err) {
|
92
|
+
return false;
|
93
|
+
}
|
94
|
+
};
|
95
|
+
const availableInstallers = installers.filter((installer) =>
|
96
|
+
hasPackageManagerInstalled(installer),
|
97
|
+
);
|
98
|
+
|
99
|
+
if (!availableInstallers.length) {
|
100
|
+
this.logger.error("No package manager found.");
|
101
|
+
|
102
|
+
process.exit(2);
|
103
|
+
}
|
93
104
|
|
94
|
-
|
95
|
-
|
96
|
-
if (forHelp && !allDependenciesInstalled) {
|
97
|
-
command.description(
|
98
|
-
`${commandOptions.description} To see all available options you need to install ${commandOptions.dependencies
|
99
|
-
.map((dependency) => `'${dependency}'`)
|
100
|
-
.join(',')}.`,
|
101
|
-
);
|
102
|
-
options = [];
|
103
|
-
} else {
|
104
|
-
options = options();
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
options.forEach((optionForCommand) => {
|
109
|
-
this.makeOption(command, optionForCommand);
|
110
|
-
});
|
111
|
-
}
|
105
|
+
return availableInstallers;
|
106
|
+
}
|
112
107
|
|
113
|
-
|
108
|
+
getDefaultPackageManager() {
|
109
|
+
const { sync } = require("execa");
|
110
|
+
const hasLocalNpm = fs.existsSync(path.resolve(process.cwd(), "package-lock.json"));
|
114
111
|
|
115
|
-
|
112
|
+
if (hasLocalNpm) {
|
113
|
+
return "npm";
|
116
114
|
}
|
117
115
|
|
118
|
-
|
119
|
-
let type = option.type;
|
120
|
-
let isMultipleTypes = Array.isArray(type);
|
121
|
-
let isOptional = false;
|
116
|
+
const hasLocalYarn = fs.existsSync(path.resolve(process.cwd(), "yarn.lock"));
|
122
117
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
isMultipleTypes = false;
|
127
|
-
} else {
|
128
|
-
isOptional = type.includes(Boolean);
|
129
|
-
}
|
130
|
-
}
|
118
|
+
if (hasLocalYarn) {
|
119
|
+
return "yarn";
|
120
|
+
}
|
131
121
|
|
132
|
-
|
133
|
-
const isRequired = type !== Boolean && typeof type !== 'undefined';
|
122
|
+
const hasLocalPnpm = fs.existsSync(path.resolve(process.cwd(), "pnpm-lock.yaml"));
|
134
123
|
|
135
|
-
|
124
|
+
if (hasLocalPnpm) {
|
125
|
+
return "pnpm";
|
126
|
+
}
|
136
127
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
128
|
+
try {
|
129
|
+
// the sync function below will fail if npm is not installed,
|
130
|
+
// an error will be thrown
|
131
|
+
if (sync("npm", ["--version"])) {
|
132
|
+
return "npm";
|
133
|
+
}
|
134
|
+
} catch (e) {
|
135
|
+
// Nothing
|
136
|
+
}
|
144
137
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
command.option(
|
155
|
-
flags,
|
156
|
-
description,
|
157
|
-
(value, prev = []) => {
|
158
|
-
if (defaultValue && isMultiple && skipDefault) {
|
159
|
-
prev = [];
|
160
|
-
skipDefault = false;
|
161
|
-
}
|
162
|
-
|
163
|
-
return isMultiple ? [].concat(prev).concat(Number(value)) : Number(value);
|
164
|
-
},
|
165
|
-
defaultValue,
|
166
|
-
);
|
167
|
-
} else if (type === String) {
|
168
|
-
let skipDefault = true;
|
169
|
-
|
170
|
-
command.option(
|
171
|
-
flags,
|
172
|
-
description,
|
173
|
-
(value, prev = []) => {
|
174
|
-
if (defaultValue && isMultiple && skipDefault) {
|
175
|
-
prev = [];
|
176
|
-
skipDefault = false;
|
177
|
-
}
|
178
|
-
|
179
|
-
return isMultiple ? [].concat(prev).concat(value) : value;
|
180
|
-
},
|
181
|
-
defaultValue,
|
182
|
-
);
|
183
|
-
} else if (isMultipleTypes) {
|
184
|
-
let skipDefault = true;
|
185
|
-
|
186
|
-
command.option(
|
187
|
-
flags,
|
188
|
-
description,
|
189
|
-
(value, prev = []) => {
|
190
|
-
if (defaultValue && isMultiple && skipDefault) {
|
191
|
-
prev = [];
|
192
|
-
skipDefault = false;
|
193
|
-
}
|
194
|
-
|
195
|
-
if (type.includes(Number)) {
|
196
|
-
const numberValue = Number(value);
|
197
|
-
|
198
|
-
if (!isNaN(numberValue)) {
|
199
|
-
return isMultiple ? [].concat(prev).concat(numberValue) : numberValue;
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
if (type.includes(String)) {
|
204
|
-
return isMultiple ? [].concat(prev).concat(value) : value;
|
205
|
-
}
|
206
|
-
|
207
|
-
return value;
|
208
|
-
},
|
209
|
-
defaultValue,
|
210
|
-
);
|
211
|
-
} else {
|
212
|
-
command.option(flags, description, type, defaultValue);
|
213
|
-
}
|
138
|
+
try {
|
139
|
+
// the sync function below will fail if yarn is not installed,
|
140
|
+
// an error will be thrown
|
141
|
+
if (sync("yarn", ["--version"])) {
|
142
|
+
return "yarn";
|
143
|
+
}
|
144
|
+
} catch (e) {
|
145
|
+
// Nothing
|
146
|
+
}
|
214
147
|
|
215
|
-
|
216
|
-
|
217
|
-
|
148
|
+
try {
|
149
|
+
// the sync function below will fail if pnpm is not installed,
|
150
|
+
// an error will be thrown
|
151
|
+
if (sync("pnpm", ["--version"])) {
|
152
|
+
return "pnpm";
|
153
|
+
}
|
154
|
+
} catch (e) {
|
155
|
+
this.logger.error("No package manager found.");
|
218
156
|
|
219
|
-
|
220
|
-
}
|
157
|
+
process.exit(2);
|
221
158
|
}
|
159
|
+
}
|
222
160
|
|
223
|
-
|
224
|
-
|
225
|
-
return this.builtInOptionsCache;
|
226
|
-
}
|
161
|
+
async doInstall(packageName, options = {}) {
|
162
|
+
const packageManager = this.getDefaultPackageManager();
|
227
163
|
|
228
|
-
|
229
|
-
|
230
|
-
'config-name',
|
231
|
-
'merge',
|
232
|
-
'env',
|
233
|
-
'mode',
|
234
|
-
'watch',
|
235
|
-
'watch-options-stdin',
|
236
|
-
'stats',
|
237
|
-
'devtool',
|
238
|
-
'entry',
|
239
|
-
'target',
|
240
|
-
'progress',
|
241
|
-
'json',
|
242
|
-
'name',
|
243
|
-
'output-path',
|
244
|
-
];
|
245
|
-
|
246
|
-
const builtInFlags = [
|
247
|
-
// For configs
|
248
|
-
{
|
249
|
-
name: 'config',
|
250
|
-
alias: 'c',
|
251
|
-
type: String,
|
252
|
-
multiple: true,
|
253
|
-
description: 'Provide path to a webpack configuration file e.g. ./webpack.config.js.',
|
254
|
-
},
|
255
|
-
{
|
256
|
-
name: 'config-name',
|
257
|
-
type: String,
|
258
|
-
multiple: true,
|
259
|
-
description: 'Name of the configuration to use.',
|
260
|
-
},
|
261
|
-
{
|
262
|
-
name: 'merge',
|
263
|
-
alias: 'm',
|
264
|
-
type: Boolean,
|
265
|
-
description: "Merge two or more configurations using 'webpack-merge'.",
|
266
|
-
},
|
267
|
-
// Complex configs
|
268
|
-
{
|
269
|
-
name: 'env',
|
270
|
-
type: (value, previous = {}) => {
|
271
|
-
// This ensures we're only splitting by the first `=`
|
272
|
-
const [allKeys, val] = value.split(/=(.+)/, 2);
|
273
|
-
const splitKeys = allKeys.split(/\.(?!$)/);
|
274
|
-
|
275
|
-
let prevRef = previous;
|
276
|
-
|
277
|
-
splitKeys.forEach((someKey, index) => {
|
278
|
-
if (!prevRef[someKey]) {
|
279
|
-
prevRef[someKey] = {};
|
280
|
-
}
|
281
|
-
|
282
|
-
if (typeof prevRef[someKey] === 'string') {
|
283
|
-
prevRef[someKey] = {};
|
284
|
-
}
|
285
|
-
|
286
|
-
if (index === splitKeys.length - 1) {
|
287
|
-
prevRef[someKey] = val || true;
|
288
|
-
}
|
289
|
-
|
290
|
-
prevRef = prevRef[someKey];
|
291
|
-
});
|
292
|
-
|
293
|
-
return previous;
|
294
|
-
},
|
295
|
-
multiple: true,
|
296
|
-
description: 'Environment passed to the configuration when it is a function.',
|
297
|
-
},
|
298
|
-
{
|
299
|
-
name: 'node-env',
|
300
|
-
type: String,
|
301
|
-
multiple: false,
|
302
|
-
description: 'Sets process.env.NODE_ENV to the specified value',
|
303
|
-
},
|
164
|
+
if (!packageManager) {
|
165
|
+
this.logger.error("Can't find package manager");
|
304
166
|
|
305
|
-
|
306
|
-
|
307
|
-
name: 'hot',
|
308
|
-
alias: 'h',
|
309
|
-
type: Boolean,
|
310
|
-
negative: true,
|
311
|
-
description: 'Enables Hot Module Replacement',
|
312
|
-
negatedDescription: 'Disables Hot Module Replacement.',
|
313
|
-
},
|
314
|
-
{
|
315
|
-
name: 'analyze',
|
316
|
-
type: Boolean,
|
317
|
-
multiple: false,
|
318
|
-
description: 'It invokes webpack-bundle-analyzer plugin to get bundle information.',
|
319
|
-
},
|
320
|
-
{
|
321
|
-
name: 'progress',
|
322
|
-
type: [Boolean, String],
|
323
|
-
description: 'Print compilation progress during build.',
|
324
|
-
},
|
325
|
-
{
|
326
|
-
name: 'prefetch',
|
327
|
-
type: String,
|
328
|
-
description: 'Prefetch this request.',
|
329
|
-
},
|
167
|
+
process.exit(2);
|
168
|
+
}
|
330
169
|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
type: [String, Boolean],
|
335
|
-
alias: 'j',
|
336
|
-
description: 'Prints result as JSON or store it in a file.',
|
337
|
-
},
|
170
|
+
if (options.preMessage) {
|
171
|
+
options.preMessage();
|
172
|
+
}
|
338
173
|
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
negative: true,
|
388
|
-
alias: 'w',
|
389
|
-
description: 'Watch for files changes.',
|
390
|
-
negatedDescription: 'Do not watch for file changes.',
|
391
|
-
},
|
392
|
-
{
|
393
|
-
name: 'watch-options-stdin',
|
394
|
-
type: Boolean,
|
395
|
-
negative: true,
|
396
|
-
description: 'Stop watching when stdin stream has ended.',
|
397
|
-
negatedDescription: 'Do not stop watching when stdin stream has ended.',
|
398
|
-
},
|
399
|
-
];
|
400
|
-
|
401
|
-
// Extract all the flags being exported from core.
|
402
|
-
// A list of cli flags generated by core can be found here https://github.com/webpack/webpack/blob/master/test/__snapshots__/Cli.test.js.snap
|
403
|
-
const coreFlags = this.webpack.cli
|
404
|
-
? Object.entries(this.webpack.cli.getArguments()).map(([flag, meta]) => {
|
405
|
-
if (meta.simpleType === 'string') {
|
406
|
-
meta.type = String;
|
407
|
-
} else if (meta.simpleType === 'number') {
|
408
|
-
meta.type = Number;
|
409
|
-
} else {
|
410
|
-
meta.type = Boolean;
|
411
|
-
meta.negative = !flag.endsWith('-reset');
|
412
|
-
}
|
174
|
+
// yarn uses 'add' command, rest npm and pnpm both use 'install'
|
175
|
+
const commandToBeRun = `${packageManager} ${[
|
176
|
+
packageManager === "yarn" ? "add" : "install",
|
177
|
+
"-D",
|
178
|
+
packageName,
|
179
|
+
].join(" ")}`;
|
180
|
+
|
181
|
+
const prompt = ({ message, defaultResponse, stream }) => {
|
182
|
+
const readline = require("readline");
|
183
|
+
const rl = readline.createInterface({
|
184
|
+
input: process.stdin,
|
185
|
+
output: stream,
|
186
|
+
});
|
187
|
+
|
188
|
+
return new Promise((resolve) => {
|
189
|
+
rl.question(`${message} `, (answer) => {
|
190
|
+
// Close the stream
|
191
|
+
rl.close();
|
192
|
+
|
193
|
+
const response = (answer || defaultResponse).toLowerCase();
|
194
|
+
|
195
|
+
// Resolve with the input response
|
196
|
+
if (response === "y" || response === "yes") {
|
197
|
+
resolve(true);
|
198
|
+
} else {
|
199
|
+
resolve(false);
|
200
|
+
}
|
201
|
+
});
|
202
|
+
});
|
203
|
+
};
|
204
|
+
|
205
|
+
let needInstall;
|
206
|
+
|
207
|
+
try {
|
208
|
+
needInstall = await prompt({
|
209
|
+
message: `[webpack-cli] Would you like to install '${this.colors.green(
|
210
|
+
packageName,
|
211
|
+
)}' package? (That will run '${this.colors.green(commandToBeRun)}') (${this.colors.yellow(
|
212
|
+
"Y/n",
|
213
|
+
)})`,
|
214
|
+
defaultResponse: "Y",
|
215
|
+
stream: process.stderr,
|
216
|
+
});
|
217
|
+
} catch (error) {
|
218
|
+
this.logger.error(error);
|
219
|
+
|
220
|
+
process.exit(error);
|
221
|
+
}
|
413
222
|
|
414
|
-
|
223
|
+
if (needInstall) {
|
224
|
+
const execa = require("execa");
|
415
225
|
|
416
|
-
|
417
|
-
|
418
|
-
|
226
|
+
try {
|
227
|
+
await execa(commandToBeRun, [], { stdio: "inherit", shell: true });
|
228
|
+
} catch (error) {
|
229
|
+
this.logger.error(error);
|
419
230
|
|
420
|
-
|
421
|
-
|
422
|
-
: [];
|
231
|
+
process.exit(2);
|
232
|
+
}
|
423
233
|
|
424
|
-
|
425
|
-
|
426
|
-
.concat(coreFlags)
|
427
|
-
.map((option) => {
|
428
|
-
option.help = minimumHelpFlags.includes(option.name) ? 'minimum' : 'verbose';
|
234
|
+
return packageName;
|
235
|
+
}
|
429
236
|
|
430
|
-
|
431
|
-
|
237
|
+
process.exit(2);
|
238
|
+
}
|
239
|
+
|
240
|
+
async tryRequireThenImport(module, handleError = true) {
|
241
|
+
let result;
|
242
|
+
|
243
|
+
try {
|
244
|
+
result = require(module);
|
245
|
+
} catch (error) {
|
246
|
+
const dynamicImportLoader = require("./utils/dynamic-import-loader")();
|
247
|
+
if (
|
248
|
+
(error.code === "ERR_REQUIRE_ESM" || process.env.WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG) &&
|
249
|
+
pathToFileURL &&
|
250
|
+
dynamicImportLoader
|
251
|
+
) {
|
252
|
+
const urlForConfig = pathToFileURL(module);
|
253
|
+
|
254
|
+
result = await dynamicImportLoader(urlForConfig);
|
255
|
+
result = result.default;
|
256
|
+
|
257
|
+
return result;
|
258
|
+
}
|
259
|
+
|
260
|
+
if (handleError) {
|
261
|
+
this.logger.error(error);
|
262
|
+
process.exit(2);
|
263
|
+
} else {
|
264
|
+
throw error;
|
265
|
+
}
|
266
|
+
}
|
432
267
|
|
433
|
-
|
268
|
+
// For babel/typescript
|
269
|
+
if (result && typeof result === "object" && "default" in result) {
|
270
|
+
result = result.default || {};
|
271
|
+
}
|
434
272
|
|
435
|
-
|
273
|
+
return result || {};
|
274
|
+
}
|
275
|
+
|
276
|
+
loadJSONFile(pathToFile, handleError = true) {
|
277
|
+
let result;
|
278
|
+
|
279
|
+
try {
|
280
|
+
result = require(pathToFile);
|
281
|
+
} catch (error) {
|
282
|
+
if (handleError) {
|
283
|
+
this.logger.error(error);
|
284
|
+
process.exit(2);
|
285
|
+
} else {
|
286
|
+
throw error;
|
287
|
+
}
|
436
288
|
}
|
437
289
|
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
290
|
+
return result;
|
291
|
+
}
|
292
|
+
|
293
|
+
async makeCommand(commandOptions, options, action) {
|
294
|
+
const alreadyLoaded = this.program.commands.find(
|
295
|
+
(command) =>
|
296
|
+
command.name() === commandOptions.name.split(" ")[0] ||
|
297
|
+
command.aliases().includes(commandOptions.alias),
|
298
|
+
);
|
299
|
+
|
300
|
+
if (alreadyLoaded) {
|
301
|
+
return;
|
442
302
|
}
|
443
303
|
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
description: 'Run webpack (default command, can be omitted).',
|
450
|
-
usage: '[entries...] [options]',
|
451
|
-
};
|
452
|
-
const watchCommandOptions = {
|
453
|
-
name: 'watch [entries...]',
|
454
|
-
alias: 'w',
|
455
|
-
description: 'Run webpack and watch for files changes.',
|
456
|
-
usage: '[entries...] [options]',
|
457
|
-
};
|
458
|
-
const versionCommandOptions = {
|
459
|
-
name: 'version [commands...]',
|
460
|
-
alias: 'v',
|
461
|
-
description: "Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.",
|
462
|
-
};
|
463
|
-
const helpCommandOptions = {
|
464
|
-
name: 'help [command] [option]',
|
465
|
-
alias: 'h',
|
466
|
-
description: 'Display help for commands and options.',
|
467
|
-
};
|
468
|
-
// Built-in external commands
|
469
|
-
const externalBuiltInCommandsInfo = [
|
470
|
-
{
|
471
|
-
name: 'serve [entries...]',
|
472
|
-
alias: 's',
|
473
|
-
pkg: '@webpack-cli/serve',
|
474
|
-
},
|
475
|
-
{
|
476
|
-
name: 'info',
|
477
|
-
alias: 'i',
|
478
|
-
pkg: '@webpack-cli/info',
|
479
|
-
},
|
480
|
-
{
|
481
|
-
name: 'init',
|
482
|
-
alias: 'c',
|
483
|
-
pkg: '@webpack-cli/init',
|
484
|
-
},
|
485
|
-
{
|
486
|
-
name: 'loader',
|
487
|
-
alias: 'l',
|
488
|
-
pkg: '@webpack-cli/generators',
|
489
|
-
},
|
490
|
-
{
|
491
|
-
name: 'plugin',
|
492
|
-
alias: 'p',
|
493
|
-
pkg: '@webpack-cli/generators',
|
494
|
-
},
|
495
|
-
{
|
496
|
-
name: 'migrate',
|
497
|
-
alias: 'm',
|
498
|
-
pkg: '@webpack-cli/migrate',
|
499
|
-
},
|
500
|
-
{
|
501
|
-
name: 'configtest [config-path]',
|
502
|
-
alias: 't',
|
503
|
-
pkg: '@webpack-cli/configtest',
|
504
|
-
},
|
505
|
-
];
|
506
|
-
|
507
|
-
const knownCommands = [
|
508
|
-
buildCommandOptions,
|
509
|
-
watchCommandOptions,
|
510
|
-
versionCommandOptions,
|
511
|
-
helpCommandOptions,
|
512
|
-
...externalBuiltInCommandsInfo,
|
513
|
-
];
|
514
|
-
const getCommandName = (name) => name.split(' ')[0];
|
515
|
-
const isKnownCommand = (name) =>
|
516
|
-
knownCommands.find(
|
517
|
-
(command) =>
|
518
|
-
getCommandName(command.name) === name ||
|
519
|
-
(Array.isArray(command.alias) ? command.alias.includes(name) : command.alias === name),
|
520
|
-
);
|
521
|
-
const isCommand = (input, commandOptions) => {
|
522
|
-
const longName = getCommandName(commandOptions.name);
|
304
|
+
const command = this.program.command(commandOptions.name, {
|
305
|
+
noHelp: commandOptions.noHelp,
|
306
|
+
hidden: commandOptions.hidden,
|
307
|
+
isDefault: commandOptions.isDefault,
|
308
|
+
});
|
523
309
|
|
524
|
-
|
525
|
-
|
526
|
-
|
310
|
+
if (commandOptions.description) {
|
311
|
+
command.description(commandOptions.description, commandOptions.argsDescription);
|
312
|
+
}
|
527
313
|
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
} else {
|
532
|
-
return commandOptions.alias === input;
|
533
|
-
}
|
534
|
-
}
|
314
|
+
if (commandOptions.usage) {
|
315
|
+
command.usage(commandOptions.usage);
|
316
|
+
}
|
535
317
|
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
const isGlobalOption = (value) =>
|
542
|
-
value === '--color' ||
|
543
|
-
value === '--no-color' ||
|
544
|
-
value === '-v' ||
|
545
|
-
value === '--version' ||
|
546
|
-
value === '-h' ||
|
547
|
-
value === '--help';
|
548
|
-
|
549
|
-
const loadCommandByName = async (commandName, allowToInstall = false) => {
|
550
|
-
const isBuildCommandUsed = isCommand(commandName, buildCommandOptions);
|
551
|
-
const isWatchCommandUsed = isCommand(commandName, watchCommandOptions);
|
552
|
-
|
553
|
-
if (isBuildCommandUsed || isWatchCommandUsed) {
|
554
|
-
const options = this.getBuiltInOptions();
|
555
|
-
|
556
|
-
await this.makeCommand(
|
557
|
-
isBuildCommandUsed ? buildCommandOptions : watchCommandOptions,
|
558
|
-
isWatchCommandUsed ? options.filter((option) => option.name !== 'watch') : options,
|
559
|
-
async (entries, options) => {
|
560
|
-
if (entries.length > 0) {
|
561
|
-
options.entry = [...entries, ...(options.entry || [])];
|
562
|
-
}
|
563
|
-
|
564
|
-
await this.buildCommand(options, isWatchCommandUsed);
|
565
|
-
},
|
566
|
-
);
|
567
|
-
} else if (isCommand(commandName, helpCommandOptions)) {
|
568
|
-
// Stub for the `help` command
|
569
|
-
this.makeCommand(helpCommandOptions, [], () => {});
|
570
|
-
} else if (isCommand(commandName, versionCommandOptions)) {
|
571
|
-
// Stub for the `help` command
|
572
|
-
this.makeCommand(versionCommandOptions, [], () => {});
|
573
|
-
} else {
|
574
|
-
const builtInExternalCommandInfo = externalBuiltInCommandsInfo.find(
|
575
|
-
(externalBuiltInCommandInfo) =>
|
576
|
-
getCommandName(externalBuiltInCommandInfo.name) === commandName ||
|
577
|
-
(Array.isArray(externalBuiltInCommandInfo.alias)
|
578
|
-
? externalBuiltInCommandInfo.alias.includes(commandName)
|
579
|
-
: externalBuiltInCommandInfo.alias === commandName),
|
580
|
-
);
|
318
|
+
if (Array.isArray(commandOptions.alias)) {
|
319
|
+
command.aliases(commandOptions.alias);
|
320
|
+
} else {
|
321
|
+
command.alias(commandOptions.alias);
|
322
|
+
}
|
581
323
|
|
582
|
-
|
324
|
+
if (commandOptions.pkg) {
|
325
|
+
command.pkg = commandOptions.pkg;
|
326
|
+
} else {
|
327
|
+
command.pkg = "webpack-cli";
|
328
|
+
}
|
583
329
|
|
584
|
-
|
585
|
-
({ pkg } = builtInExternalCommandInfo);
|
586
|
-
} else {
|
587
|
-
pkg = commandName;
|
588
|
-
}
|
330
|
+
const { forHelp } = this.program;
|
589
331
|
|
590
|
-
|
591
|
-
if (!allowToInstall) {
|
592
|
-
return;
|
593
|
-
}
|
332
|
+
let allDependenciesInstalled = true;
|
594
333
|
|
595
|
-
|
334
|
+
if (commandOptions.dependencies && commandOptions.dependencies.length > 0) {
|
335
|
+
for (const dependency of commandOptions.dependencies) {
|
336
|
+
const isPkgExist = this.checkPackageExists(dependency);
|
596
337
|
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
process.exit(2);
|
604
|
-
}
|
605
|
-
}
|
338
|
+
if (isPkgExist) {
|
339
|
+
continue;
|
340
|
+
} else if (!isPkgExist && forHelp) {
|
341
|
+
allDependenciesInstalled = false;
|
342
|
+
continue;
|
343
|
+
}
|
606
344
|
|
607
|
-
|
345
|
+
let skipInstallation = false;
|
608
346
|
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
347
|
+
// Allow to use `./path/to/webpack.js` outside `node_modules`
|
348
|
+
if (dependency === WEBPACK_PACKAGE && fs.existsSync(WEBPACK_PACKAGE)) {
|
349
|
+
skipInstallation = true;
|
350
|
+
}
|
613
351
|
|
614
|
-
|
615
|
-
|
352
|
+
// Allow to use `./path/to/webpack-dev-server.js` outside `node_modules`
|
353
|
+
if (dependency === WEBPACK_DEV_SERVER_PACKAGE && fs.existsSync(WEBPACK_PACKAGE)) {
|
354
|
+
skipInstallation = true;
|
355
|
+
}
|
616
356
|
|
617
|
-
|
618
|
-
|
619
|
-
|
357
|
+
if (skipInstallation) {
|
358
|
+
continue;
|
359
|
+
}
|
620
360
|
|
621
|
-
|
361
|
+
await this.doInstall(dependency, {
|
362
|
+
preMessage: () => {
|
363
|
+
this.logger.error(
|
364
|
+
`For using '${this.colors.green(
|
365
|
+
commandOptions.name.split(" ")[0],
|
366
|
+
)}' command you need to install: '${this.colors.green(dependency)}' package.`,
|
367
|
+
);
|
368
|
+
},
|
369
|
+
});
|
370
|
+
}
|
371
|
+
}
|
622
372
|
|
623
|
-
|
624
|
-
|
373
|
+
if (options) {
|
374
|
+
if (typeof options === "function") {
|
375
|
+
if (forHelp && !allDependenciesInstalled) {
|
376
|
+
command.description(
|
377
|
+
`${
|
378
|
+
commandOptions.description
|
379
|
+
} To see all available options you need to install ${commandOptions.dependencies
|
380
|
+
.map((dependency) => `'${dependency}'`)
|
381
|
+
.join(", ")}.`,
|
382
|
+
);
|
383
|
+
options = [];
|
384
|
+
} else {
|
385
|
+
options = await options();
|
386
|
+
}
|
387
|
+
}
|
625
388
|
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
process.exit(2);
|
631
|
-
}
|
632
|
-
}
|
633
|
-
};
|
389
|
+
options.forEach((optionForCommand) => {
|
390
|
+
this.makeOption(command, optionForCommand);
|
391
|
+
});
|
392
|
+
}
|
634
393
|
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
394
|
+
command.action(action);
|
395
|
+
|
396
|
+
return command;
|
397
|
+
}
|
398
|
+
|
399
|
+
makeOption(command, option) {
|
400
|
+
let mainOption;
|
401
|
+
let negativeOption;
|
402
|
+
|
403
|
+
if (option.configs) {
|
404
|
+
let needNegativeOption = false;
|
405
|
+
let negatedDescription;
|
406
|
+
const mainOptionType = new Set();
|
407
|
+
|
408
|
+
option.configs.forEach((config) => {
|
409
|
+
// Possible value: "enum" | "string" | "path" | "number" | "boolean" | "RegExp" | "reset"
|
410
|
+
switch (config.type) {
|
411
|
+
case "reset":
|
412
|
+
mainOptionType.add(Boolean);
|
413
|
+
break;
|
414
|
+
case "boolean":
|
415
|
+
if (!needNegativeOption) {
|
416
|
+
needNegativeOption = true;
|
417
|
+
negatedDescription = config.negatedDescription;
|
639
418
|
}
|
640
419
|
|
641
|
-
|
642
|
-
|
643
|
-
|
420
|
+
mainOptionType.add(Boolean);
|
421
|
+
break;
|
422
|
+
case "number":
|
423
|
+
mainOptionType.add(Number);
|
424
|
+
break;
|
425
|
+
case "string":
|
426
|
+
case "path":
|
427
|
+
case "RegExp":
|
428
|
+
mainOptionType.add(String);
|
429
|
+
break;
|
430
|
+
case "enum": {
|
431
|
+
let hasFalseEnum = false;
|
432
|
+
|
433
|
+
const enumTypes = config.values.map((value) => {
|
434
|
+
switch (typeof value) {
|
435
|
+
case "string":
|
436
|
+
mainOptionType.add(String);
|
437
|
+
break;
|
438
|
+
case "number":
|
439
|
+
mainOptionType.add(Number);
|
440
|
+
break;
|
441
|
+
case "boolean":
|
442
|
+
if (!hasFalseEnum && value === false) {
|
443
|
+
hasFalseEnum = true;
|
444
|
+
break;
|
445
|
+
}
|
446
|
+
|
447
|
+
mainOptionType.add(Boolean);
|
448
|
+
break;
|
449
|
+
}
|
450
|
+
});
|
644
451
|
|
645
|
-
if (
|
646
|
-
|
452
|
+
if (!needNegativeOption) {
|
453
|
+
needNegativeOption = hasFalseEnum;
|
454
|
+
negatedDescription = config.negatedDescription;
|
647
455
|
}
|
648
456
|
|
649
|
-
|
650
|
-
|
457
|
+
return enumTypes;
|
458
|
+
}
|
459
|
+
}
|
460
|
+
});
|
461
|
+
|
462
|
+
mainOption = {
|
463
|
+
flags: option.alias ? `-${option.alias}, --${option.name}` : `--${option.name}`,
|
464
|
+
description: option.description || "",
|
465
|
+
type: mainOptionType,
|
466
|
+
multiple: option.multiple,
|
467
|
+
defaultValue: option.defaultValue,
|
468
|
+
};
|
469
|
+
|
470
|
+
if (needNegativeOption) {
|
471
|
+
negativeOption = {
|
472
|
+
flags: `--no-${option.name}`,
|
473
|
+
description:
|
474
|
+
negatedDescription || option.negatedDescription || `Negative '${option.name}' option.`,
|
475
|
+
};
|
476
|
+
}
|
477
|
+
} else {
|
478
|
+
mainOption = {
|
479
|
+
flags: option.alias ? `-${option.alias}, --${option.name}` : `--${option.name}`,
|
480
|
+
// TODO `describe` used by `webpack-dev-server@3`
|
481
|
+
description: option.description || option.describe || "",
|
482
|
+
type: option.type
|
483
|
+
? new Set(Array.isArray(option.type) ? option.type : [option.type])
|
484
|
+
: new Set([Boolean]),
|
485
|
+
multiple: option.multiple,
|
486
|
+
defaultValue: option.defaultValue,
|
487
|
+
};
|
488
|
+
|
489
|
+
if (option.negative) {
|
490
|
+
negativeOption = {
|
491
|
+
flags: `--no-${option.name}`,
|
492
|
+
description: option.negatedDescription
|
493
|
+
? option.negatedDescription
|
494
|
+
: `Negative '${option.name}' option.`,
|
495
|
+
};
|
496
|
+
}
|
497
|
+
}
|
651
498
|
|
652
|
-
|
653
|
-
|
499
|
+
if (mainOption.type.size > 1 && mainOption.type.has(Boolean)) {
|
500
|
+
mainOption.flags = `${mainOption.flags} [value${mainOption.multiple ? "..." : ""}]`;
|
501
|
+
} else if (mainOption.type.size > 0 && !mainOption.type.has(Boolean)) {
|
502
|
+
mainOption.flags = `${mainOption.flags} <value${mainOption.multiple ? "..." : ""}>`;
|
503
|
+
}
|
654
504
|
|
655
|
-
|
656
|
-
|
657
|
-
|
505
|
+
if (mainOption.type.size === 1) {
|
506
|
+
if (mainOption.type.has(Number)) {
|
507
|
+
let skipDefault = true;
|
658
508
|
|
659
|
-
|
660
|
-
|
509
|
+
const optionForCommand = new Option(mainOption.flags, mainOption.description)
|
510
|
+
.argParser((value, prev = []) => {
|
511
|
+
if (mainOption.defaultValue && mainOption.multiple && skipDefault) {
|
512
|
+
prev = [];
|
513
|
+
skipDefault = false;
|
514
|
+
}
|
661
515
|
|
662
|
-
|
663
|
-
|
516
|
+
return mainOption.multiple ? [].concat(prev).concat(Number(value)) : Number(value);
|
517
|
+
})
|
518
|
+
.default(mainOption.defaultValue);
|
664
519
|
|
665
|
-
|
666
|
-
this.logger.error(`Can't find and load command '${operand}'`);
|
667
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
668
|
-
process.exit(2);
|
669
|
-
}
|
520
|
+
optionForCommand.helpLevel = option.helpLevel;
|
670
521
|
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
522
|
+
command.addOption(optionForCommand);
|
523
|
+
} else if (mainOption.type.has(String)) {
|
524
|
+
let skipDefault = true;
|
525
|
+
|
526
|
+
const optionForCommand = new Option(mainOption.flags, mainOption.description)
|
527
|
+
.argParser((value, prev = []) => {
|
528
|
+
if (mainOption.defaultValue && mainOption.multiple && skipDefault) {
|
529
|
+
prev = [];
|
530
|
+
skipDefault = false;
|
678
531
|
}
|
679
532
|
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
// - commander.missingMandatoryOptionValue
|
684
|
-
// - commander.optionMissingArgument
|
533
|
+
return mainOption.multiple ? [].concat(prev).concat(value) : value;
|
534
|
+
})
|
535
|
+
.default(mainOption.defaultValue);
|
685
536
|
|
686
|
-
|
687
|
-
process.exit(2);
|
688
|
-
});
|
537
|
+
optionForCommand.helpLevel = option.helpLevel;
|
689
538
|
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
539
|
+
command.addOption(optionForCommand);
|
540
|
+
} else if (mainOption.type.has(Boolean)) {
|
541
|
+
const optionForCommand = new Option(mainOption.flags, mainOption.description).default(
|
542
|
+
mainOption.defaultValue,
|
543
|
+
);
|
695
544
|
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
545
|
+
optionForCommand.helpLevel = option.helpLevel;
|
546
|
+
|
547
|
+
command.addOption(optionForCommand);
|
548
|
+
} else {
|
549
|
+
const optionForCommand = new Option(mainOption.flags, mainOption.description)
|
550
|
+
.argParser(Array.from(mainOption.type)[0])
|
551
|
+
.default(mainOption.defaultValue);
|
552
|
+
|
553
|
+
optionForCommand.helpLevel = option.helpLevel;
|
554
|
+
|
555
|
+
command.addOption(optionForCommand);
|
556
|
+
}
|
557
|
+
} else if (mainOption.type.size > 1) {
|
558
|
+
let skipDefault = true;
|
559
|
+
|
560
|
+
const optionForCommand = new Option(
|
561
|
+
mainOption.flags,
|
562
|
+
mainOption.description,
|
563
|
+
mainOption.defaultValue,
|
564
|
+
)
|
565
|
+
.argParser((value, prev = []) => {
|
566
|
+
if (mainOption.defaultValue && mainOption.multiple && skipDefault) {
|
567
|
+
prev = [];
|
568
|
+
skipDefault = false;
|
569
|
+
}
|
570
|
+
|
571
|
+
if (mainOption.type.has(Number)) {
|
572
|
+
const numberValue = Number(value);
|
573
|
+
|
574
|
+
if (!isNaN(numberValue)) {
|
575
|
+
return mainOption.multiple ? [].concat(prev).concat(numberValue) : numberValue;
|
576
|
+
}
|
577
|
+
}
|
702
578
|
|
703
|
-
|
704
|
-
|
705
|
-
|
579
|
+
if (mainOption.type.has(String)) {
|
580
|
+
return mainOption.multiple ? [].concat(prev).concat(value) : value;
|
581
|
+
}
|
706
582
|
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
// Filter `bundle`, `watch`, `version` and `help` commands
|
711
|
-
const possibleCommandNames = options.filter(
|
712
|
-
(option) =>
|
713
|
-
!isCommand(option, buildCommandOptions) &&
|
714
|
-
!isCommand(option, watchCommandOptions) &&
|
715
|
-
!isCommand(option, versionCommandOptions) &&
|
716
|
-
!isCommand(option, helpCommandOptions),
|
717
|
-
);
|
583
|
+
return value;
|
584
|
+
})
|
585
|
+
.default(mainOption.defaultValue);
|
718
586
|
|
719
|
-
|
720
|
-
if (!isOption(possibleCommandName)) {
|
721
|
-
return;
|
722
|
-
}
|
587
|
+
optionForCommand.helpLevel = option.helpLevel;
|
723
588
|
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
});
|
589
|
+
command.addOption(optionForCommand);
|
590
|
+
} else if (mainOption.type.size === 0 && negativeOption) {
|
591
|
+
const optionForCommand = new Option(mainOption.flags, mainOption.description);
|
728
592
|
|
729
|
-
|
730
|
-
|
593
|
+
// Hide stub option
|
594
|
+
optionForCommand.hideHelp();
|
595
|
+
optionForCommand.helpLevel = option.helpLevel;
|
731
596
|
|
732
|
-
|
733
|
-
|
597
|
+
command.addOption(optionForCommand);
|
598
|
+
}
|
734
599
|
|
735
|
-
|
736
|
-
|
737
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
738
|
-
process.exit(2);
|
739
|
-
}
|
600
|
+
if (negativeOption) {
|
601
|
+
const optionForCommand = new Option(negativeOption.flags, negativeOption.description);
|
740
602
|
|
741
|
-
|
742
|
-
const { name, version } = require(`${foundCommand.pkg}/package.json`);
|
603
|
+
optionForCommand.helpLevel = option.helpLevel;
|
743
604
|
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
process.exit(2);
|
748
|
-
}
|
749
|
-
}
|
750
|
-
}
|
605
|
+
command.addOption(optionForCommand);
|
606
|
+
}
|
607
|
+
}
|
751
608
|
|
752
|
-
|
609
|
+
getBuiltInOptions() {
|
610
|
+
if (this.builtInOptionsCache) {
|
611
|
+
return this.builtInOptionsCache;
|
612
|
+
}
|
753
613
|
|
754
|
-
|
755
|
-
|
614
|
+
const minimumHelpFlags = [
|
615
|
+
"config",
|
616
|
+
"config-name",
|
617
|
+
"merge",
|
618
|
+
"env",
|
619
|
+
"mode",
|
620
|
+
"watch",
|
621
|
+
"watch-options-stdin",
|
622
|
+
"stats",
|
623
|
+
"devtool",
|
624
|
+
"entry",
|
625
|
+
"target",
|
626
|
+
"progress",
|
627
|
+
"json",
|
628
|
+
"name",
|
629
|
+
"output-path",
|
630
|
+
"node-env",
|
631
|
+
];
|
632
|
+
|
633
|
+
const builtInFlags = [
|
634
|
+
// For configs
|
635
|
+
{
|
636
|
+
name: "config",
|
637
|
+
alias: "c",
|
638
|
+
configs: [
|
639
|
+
{
|
640
|
+
type: "string",
|
641
|
+
},
|
642
|
+
],
|
643
|
+
multiple: true,
|
644
|
+
description: "Provide path to a webpack configuration file e.g. ./webpack.config.js.",
|
645
|
+
},
|
646
|
+
{
|
647
|
+
name: "config-name",
|
648
|
+
configs: [
|
649
|
+
{
|
650
|
+
type: "string",
|
651
|
+
},
|
652
|
+
],
|
653
|
+
multiple: true,
|
654
|
+
description: "Name of the configuration to use.",
|
655
|
+
},
|
656
|
+
{
|
657
|
+
name: "merge",
|
658
|
+
alias: "m",
|
659
|
+
configs: [
|
660
|
+
{
|
661
|
+
type: "enum",
|
662
|
+
values: [true],
|
663
|
+
},
|
664
|
+
],
|
665
|
+
description: "Merge two or more configurations using 'webpack-merge'.",
|
666
|
+
},
|
667
|
+
// Complex configs
|
668
|
+
{
|
669
|
+
name: "env",
|
670
|
+
type: (value, previous = {}) => {
|
671
|
+
// for https://github.com/webpack/webpack-cli/issues/2642
|
672
|
+
if (value.endsWith("=")) {
|
673
|
+
value.concat('""');
|
674
|
+
}
|
675
|
+
|
676
|
+
// This ensures we're only splitting by the first `=`
|
677
|
+
const [allKeys, val] = value.split(/=(.+)/, 2);
|
678
|
+
const splitKeys = allKeys.split(/\.(?!$)/);
|
679
|
+
|
680
|
+
let prevRef = previous;
|
681
|
+
|
682
|
+
splitKeys.forEach((someKey, index) => {
|
683
|
+
if (!prevRef[someKey]) {
|
684
|
+
prevRef[someKey] = {};
|
685
|
+
}
|
756
686
|
|
757
|
-
if (
|
758
|
-
|
759
|
-
|
687
|
+
if (typeof prevRef[someKey] === "string") {
|
688
|
+
prevRef[someKey] = {};
|
689
|
+
}
|
760
690
|
|
761
|
-
|
691
|
+
if (index === splitKeys.length - 1) {
|
692
|
+
if (typeof val === "string") {
|
693
|
+
prevRef[someKey] = val;
|
694
|
+
} else {
|
695
|
+
prevRef[someKey] = true;
|
696
|
+
}
|
762
697
|
}
|
763
698
|
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
699
|
+
prevRef = prevRef[someKey];
|
700
|
+
});
|
701
|
+
|
702
|
+
return previous;
|
703
|
+
},
|
704
|
+
multiple: true,
|
705
|
+
description: "Environment passed to the configuration when it is a function.",
|
706
|
+
},
|
707
|
+
{
|
708
|
+
name: "node-env",
|
709
|
+
configs: [
|
710
|
+
{
|
711
|
+
type: "string",
|
712
|
+
},
|
713
|
+
],
|
714
|
+
multiple: false,
|
715
|
+
description: "Sets process.env.NODE_ENV to the specified value.",
|
716
|
+
},
|
717
|
+
|
718
|
+
// Adding more plugins
|
719
|
+
{
|
720
|
+
name: "hot",
|
721
|
+
alias: "h",
|
722
|
+
configs: [
|
723
|
+
{
|
724
|
+
type: "string",
|
725
|
+
},
|
726
|
+
{
|
727
|
+
type: "boolean",
|
728
|
+
},
|
729
|
+
],
|
730
|
+
negative: true,
|
731
|
+
description: "Enables Hot Module Replacement",
|
732
|
+
negatedDescription: "Disables Hot Module Replacement.",
|
733
|
+
},
|
734
|
+
{
|
735
|
+
name: "analyze",
|
736
|
+
configs: [
|
737
|
+
{
|
738
|
+
type: "enum",
|
739
|
+
values: [true],
|
740
|
+
},
|
741
|
+
],
|
742
|
+
multiple: false,
|
743
|
+
description: "It invokes webpack-bundle-analyzer plugin to get bundle information.",
|
744
|
+
},
|
745
|
+
{
|
746
|
+
name: "progress",
|
747
|
+
configs: [
|
748
|
+
{
|
749
|
+
type: "string",
|
750
|
+
},
|
751
|
+
{
|
752
|
+
type: "enum",
|
753
|
+
values: [true],
|
754
|
+
},
|
755
|
+
],
|
756
|
+
description: "Print compilation progress during build.",
|
757
|
+
},
|
758
|
+
{
|
759
|
+
name: "prefetch",
|
760
|
+
configs: [
|
761
|
+
{
|
762
|
+
type: "string",
|
763
|
+
},
|
764
|
+
],
|
765
|
+
description: "Prefetch this request.",
|
766
|
+
},
|
767
|
+
|
768
|
+
// Output options
|
769
|
+
{
|
770
|
+
name: "json",
|
771
|
+
configs: [
|
772
|
+
{
|
773
|
+
type: "string",
|
774
|
+
},
|
775
|
+
{
|
776
|
+
type: "enum",
|
777
|
+
values: [true],
|
778
|
+
},
|
779
|
+
],
|
780
|
+
alias: "j",
|
781
|
+
description: "Prints result as JSON or store it in a file.",
|
782
|
+
},
|
783
|
+
|
784
|
+
// For webpack@4
|
785
|
+
{
|
786
|
+
name: "entry",
|
787
|
+
configs: [
|
788
|
+
{
|
789
|
+
type: "string",
|
790
|
+
},
|
791
|
+
],
|
792
|
+
multiple: true,
|
793
|
+
description: "The entry point(s) of your application e.g. ./src/main.js.",
|
794
|
+
},
|
795
|
+
{
|
796
|
+
name: "output-path",
|
797
|
+
alias: "o",
|
798
|
+
configs: [
|
799
|
+
{
|
800
|
+
type: "string",
|
801
|
+
},
|
802
|
+
],
|
803
|
+
description: "Output location of the file generated by webpack e.g. ./dist/.",
|
804
|
+
},
|
805
|
+
{
|
806
|
+
name: "target",
|
807
|
+
alias: "t",
|
808
|
+
configs: [
|
809
|
+
{
|
810
|
+
type: "string",
|
811
|
+
},
|
812
|
+
],
|
813
|
+
multiple: this.webpack.cli !== undefined,
|
814
|
+
description: "Sets the build target e.g. node.",
|
815
|
+
},
|
816
|
+
{
|
817
|
+
name: "devtool",
|
818
|
+
configs: [
|
819
|
+
{
|
820
|
+
type: "string",
|
821
|
+
},
|
822
|
+
{
|
823
|
+
type: "enum",
|
824
|
+
values: [false],
|
825
|
+
},
|
826
|
+
],
|
827
|
+
negative: true,
|
828
|
+
alias: "d",
|
829
|
+
description: "Determine source maps to use.",
|
830
|
+
negatedDescription: "Do not generate source maps.",
|
831
|
+
},
|
832
|
+
{
|
833
|
+
name: "mode",
|
834
|
+
configs: [
|
835
|
+
{
|
836
|
+
type: "string",
|
837
|
+
},
|
838
|
+
],
|
839
|
+
description: "Defines the mode to pass to webpack.",
|
840
|
+
},
|
841
|
+
{
|
842
|
+
name: "name",
|
843
|
+
configs: [
|
844
|
+
{
|
845
|
+
type: "string",
|
846
|
+
},
|
847
|
+
],
|
848
|
+
description: "Name of the configuration. Used when loading multiple configurations.",
|
849
|
+
},
|
850
|
+
{
|
851
|
+
name: "stats",
|
852
|
+
configs: [
|
853
|
+
{
|
854
|
+
type: "string",
|
855
|
+
},
|
856
|
+
{
|
857
|
+
type: "boolean",
|
858
|
+
},
|
859
|
+
],
|
860
|
+
negative: true,
|
861
|
+
description: "It instructs webpack on how to treat the stats e.g. verbose.",
|
862
|
+
negatedDescription: "Disable stats output.",
|
863
|
+
},
|
864
|
+
{
|
865
|
+
name: "watch",
|
866
|
+
configs: [
|
867
|
+
{
|
868
|
+
type: "boolean",
|
869
|
+
},
|
870
|
+
],
|
871
|
+
negative: true,
|
872
|
+
alias: "w",
|
873
|
+
description: "Watch for files changes.",
|
874
|
+
negatedDescription: "Do not watch for file changes.",
|
875
|
+
},
|
876
|
+
{
|
877
|
+
name: "watch-options-stdin",
|
878
|
+
configs: [
|
879
|
+
{
|
880
|
+
type: "boolean",
|
881
|
+
},
|
882
|
+
],
|
883
|
+
negative: true,
|
884
|
+
description: "Stop watching when stdin stream has ended.",
|
885
|
+
negatedDescription: "Do not stop watching when stdin stream has ended.",
|
886
|
+
},
|
887
|
+
];
|
888
|
+
|
889
|
+
// Extract all the flags being exported from core.
|
890
|
+
// A list of cli flags generated by core can be found here https://github.com/webpack/webpack/blob/master/test/__snapshots__/Cli.test.js.snap
|
891
|
+
const coreFlags = this.webpack.cli
|
892
|
+
? Object.entries(this.webpack.cli.getArguments()).map(([flag, meta]) => {
|
893
|
+
const inBuiltIn = builtInFlags.find((builtInFlag) => builtInFlag.name === flag);
|
894
|
+
|
895
|
+
if (inBuiltIn) {
|
896
|
+
return {
|
897
|
+
...meta,
|
898
|
+
name: flag,
|
899
|
+
group: "core",
|
900
|
+
...inBuiltIn,
|
901
|
+
configs: meta.configs || [],
|
902
|
+
};
|
903
|
+
}
|
904
|
+
|
905
|
+
return { ...meta, name: flag, group: "core" };
|
906
|
+
})
|
907
|
+
: [];
|
908
|
+
|
909
|
+
const options = []
|
910
|
+
.concat(
|
911
|
+
builtInFlags.filter(
|
912
|
+
(builtInFlag) => !coreFlags.find((coreFlag) => builtInFlag.name === coreFlag.name),
|
913
|
+
),
|
914
|
+
)
|
915
|
+
.concat(coreFlags)
|
916
|
+
.map((option) => {
|
917
|
+
option.helpLevel = minimumHelpFlags.includes(option.name) ? "minimum" : "verbose";
|
918
|
+
|
919
|
+
return option;
|
920
|
+
});
|
921
|
+
|
922
|
+
this.builtInOptionsCache = options;
|
923
|
+
|
924
|
+
return options;
|
925
|
+
}
|
926
|
+
|
927
|
+
async loadWebpack(handleError = true) {
|
928
|
+
return this.tryRequireThenImport(WEBPACK_PACKAGE, handleError);
|
929
|
+
}
|
930
|
+
|
931
|
+
async run(args, parseOptions) {
|
932
|
+
// Built-in internal commands
|
933
|
+
const buildCommandOptions = {
|
934
|
+
name: "build [entries...]",
|
935
|
+
alias: ["bundle", "b"],
|
936
|
+
description: "Run webpack (default command, can be omitted).",
|
937
|
+
usage: "[entries...] [options]",
|
938
|
+
dependencies: [WEBPACK_PACKAGE],
|
939
|
+
};
|
940
|
+
const watchCommandOptions = {
|
941
|
+
name: "watch [entries...]",
|
942
|
+
alias: "w",
|
943
|
+
description: "Run webpack and watch for files changes.",
|
944
|
+
usage: "[entries...] [options]",
|
945
|
+
dependencies: [WEBPACK_PACKAGE],
|
946
|
+
};
|
947
|
+
const versionCommandOptions = {
|
948
|
+
name: "version [commands...]",
|
949
|
+
alias: "v",
|
950
|
+
description:
|
951
|
+
"Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.",
|
952
|
+
};
|
953
|
+
const helpCommandOptions = {
|
954
|
+
name: "help [command] [option]",
|
955
|
+
alias: "h",
|
956
|
+
description: "Display help for commands and options.",
|
957
|
+
};
|
958
|
+
// Built-in external commands
|
959
|
+
const externalBuiltInCommandsInfo = [
|
960
|
+
{
|
961
|
+
name: "serve [entries...]",
|
962
|
+
alias: ["server", "s"],
|
963
|
+
pkg: "@webpack-cli/serve",
|
964
|
+
},
|
965
|
+
{
|
966
|
+
name: "info",
|
967
|
+
alias: "i",
|
968
|
+
pkg: "@webpack-cli/info",
|
969
|
+
},
|
970
|
+
{
|
971
|
+
name: "init",
|
972
|
+
alias: ["create", "new", "c", "n"],
|
973
|
+
pkg: "@webpack-cli/generators",
|
974
|
+
},
|
975
|
+
{
|
976
|
+
name: "loader",
|
977
|
+
alias: "l",
|
978
|
+
pkg: "@webpack-cli/generators",
|
979
|
+
},
|
980
|
+
{
|
981
|
+
name: "plugin",
|
982
|
+
alias: "p",
|
983
|
+
pkg: "@webpack-cli/generators",
|
984
|
+
},
|
985
|
+
{
|
986
|
+
name: "migrate",
|
987
|
+
alias: "m",
|
988
|
+
pkg: "@webpack-cli/migrate",
|
989
|
+
},
|
990
|
+
{
|
991
|
+
name: "configtest [config-path]",
|
992
|
+
alias: "t",
|
993
|
+
pkg: "@webpack-cli/configtest",
|
994
|
+
},
|
995
|
+
];
|
996
|
+
|
997
|
+
const knownCommands = [
|
998
|
+
buildCommandOptions,
|
999
|
+
watchCommandOptions,
|
1000
|
+
versionCommandOptions,
|
1001
|
+
helpCommandOptions,
|
1002
|
+
...externalBuiltInCommandsInfo,
|
1003
|
+
];
|
1004
|
+
const getCommandName = (name) => name.split(" ")[0];
|
1005
|
+
const isKnownCommand = (name) =>
|
1006
|
+
knownCommands.find(
|
1007
|
+
(command) =>
|
1008
|
+
getCommandName(command.name) === name ||
|
1009
|
+
(Array.isArray(command.alias) ? command.alias.includes(name) : command.alias === name),
|
1010
|
+
);
|
1011
|
+
const isCommand = (input, commandOptions) => {
|
1012
|
+
const longName = getCommandName(commandOptions.name);
|
1013
|
+
|
1014
|
+
if (input === longName) {
|
1015
|
+
return true;
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
if (commandOptions.alias) {
|
1019
|
+
if (Array.isArray(commandOptions.alias)) {
|
1020
|
+
return commandOptions.alias.includes(input);
|
1021
|
+
} else {
|
1022
|
+
return commandOptions.alias === input;
|
1023
|
+
}
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
return false;
|
1027
|
+
};
|
1028
|
+
const findCommandByName = (name) =>
|
1029
|
+
this.program.commands.find(
|
1030
|
+
(command) => name === command.name() || command.aliases().includes(name),
|
1031
|
+
);
|
1032
|
+
const isOption = (value) => value.startsWith("-");
|
1033
|
+
const isGlobalOption = (value) =>
|
1034
|
+
value === "--color" ||
|
1035
|
+
value === "--no-color" ||
|
1036
|
+
value === "-v" ||
|
1037
|
+
value === "--version" ||
|
1038
|
+
value === "-h" ||
|
1039
|
+
value === "--help";
|
1040
|
+
|
1041
|
+
const loadCommandByName = async (commandName, allowToInstall = false) => {
|
1042
|
+
const isBuildCommandUsed = isCommand(commandName, buildCommandOptions);
|
1043
|
+
const isWatchCommandUsed = isCommand(commandName, watchCommandOptions);
|
1044
|
+
|
1045
|
+
if (isBuildCommandUsed || isWatchCommandUsed) {
|
1046
|
+
await this.makeCommand(
|
1047
|
+
isBuildCommandUsed ? buildCommandOptions : watchCommandOptions,
|
1048
|
+
async () => {
|
1049
|
+
this.webpack = await this.loadWebpack();
|
1050
|
+
|
1051
|
+
return isWatchCommandUsed
|
1052
|
+
? this.getBuiltInOptions().filter((option) => option.name !== "watch")
|
1053
|
+
: this.getBuiltInOptions();
|
1054
|
+
},
|
1055
|
+
async (entries, options) => {
|
1056
|
+
if (entries.length > 0) {
|
1057
|
+
options.entry = [...entries, ...(options.entry || [])];
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
await this.runWebpack(options, isWatchCommandUsed);
|
1061
|
+
},
|
1062
|
+
);
|
1063
|
+
} else if (isCommand(commandName, helpCommandOptions)) {
|
1064
|
+
// Stub for the `help` command
|
1065
|
+
this.makeCommand(helpCommandOptions, [], () => {});
|
1066
|
+
} else if (isCommand(commandName, versionCommandOptions)) {
|
1067
|
+
// Stub for the `version` command
|
1068
|
+
this.makeCommand(versionCommandOptions, [], () => {});
|
1069
|
+
} else {
|
1070
|
+
const builtInExternalCommandInfo = externalBuiltInCommandsInfo.find(
|
1071
|
+
(externalBuiltInCommandInfo) =>
|
1072
|
+
getCommandName(externalBuiltInCommandInfo.name) === commandName ||
|
1073
|
+
(Array.isArray(externalBuiltInCommandInfo.alias)
|
1074
|
+
? externalBuiltInCommandInfo.alias.includes(commandName)
|
1075
|
+
: externalBuiltInCommandInfo.alias === commandName),
|
769
1076
|
);
|
770
1077
|
|
771
|
-
|
772
|
-
const { bold } = this.utils.colors;
|
1078
|
+
let pkg;
|
773
1079
|
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
};
|
1080
|
+
if (builtInExternalCommandInfo) {
|
1081
|
+
({ pkg } = builtInExternalCommandInfo);
|
1082
|
+
} else {
|
1083
|
+
pkg = commandName;
|
1084
|
+
}
|
780
1085
|
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
const cliAPI = this;
|
786
|
-
|
787
|
-
program.configureHelp({
|
788
|
-
sortSubcommands: true,
|
789
|
-
// Support multiple aliases
|
790
|
-
commandUsage: (command) => {
|
791
|
-
let parentCmdNames = '';
|
792
|
-
|
793
|
-
for (let parentCmd = command.parent; parentCmd; parentCmd = parentCmd.parent) {
|
794
|
-
parentCmdNames = `${parentCmd.name()} ${parentCmdNames}`;
|
795
|
-
}
|
796
|
-
|
797
|
-
if (isGlobalHelp) {
|
798
|
-
return `${parentCmdNames}${command.usage()}\n${this.utils.colors.bold(
|
799
|
-
'Alternative usage to run commands:',
|
800
|
-
)} ${parentCmdNames}[command] [options]`;
|
801
|
-
}
|
802
|
-
|
803
|
-
return `${parentCmdNames}${command.name()}|${command.aliases().join('|')} ${command.usage()}`;
|
804
|
-
},
|
805
|
-
// Support multiple aliases
|
806
|
-
subcommandTerm: (command) => {
|
807
|
-
const humanReadableArgumentName = (argument) => {
|
808
|
-
const nameOutput = argument.name + (argument.variadic === true ? '...' : '');
|
809
|
-
|
810
|
-
return argument.required ? '<' + nameOutput + '>' : '[' + nameOutput + ']';
|
811
|
-
};
|
812
|
-
const args = command._args.map((arg) => humanReadableArgumentName(arg)).join(' ');
|
813
|
-
|
814
|
-
return `${command.name()}|${command.aliases().join('|')}${args ? ` ${args}` : ''}${
|
815
|
-
command.options.length > 0 ? ' [options]' : ''
|
816
|
-
}`;
|
817
|
-
},
|
818
|
-
visibleOptions: function visibleOptions(command) {
|
819
|
-
const options = cliAPI.getBuiltInOptions();
|
820
|
-
|
821
|
-
return command.options.filter((option) => {
|
822
|
-
if (option.hidden) {
|
823
|
-
return false;
|
824
|
-
}
|
825
|
-
|
826
|
-
if (!isVerbose) {
|
827
|
-
const foundOption = options.find((flag) => {
|
828
|
-
if (option.negate && flag.negative) {
|
829
|
-
return `no-${flag.name}` === option.name();
|
830
|
-
}
|
831
|
-
|
832
|
-
return flag.name === option.name();
|
833
|
-
});
|
834
|
-
|
835
|
-
if (foundOption) {
|
836
|
-
return foundOption.help === 'minimum';
|
837
|
-
}
|
838
|
-
|
839
|
-
return true;
|
840
|
-
}
|
841
|
-
|
842
|
-
return true;
|
843
|
-
});
|
844
|
-
},
|
845
|
-
padWidth(command, helper) {
|
846
|
-
return Math.max(
|
847
|
-
helper.longestArgumentTermLength(command, helper),
|
848
|
-
helper.longestOptionTermLength(command, helper),
|
849
|
-
// For global options
|
850
|
-
helper.longestOptionTermLength(program, helper),
|
851
|
-
helper.longestSubcommandTermLength(isGlobalHelp ? program : command, helper),
|
852
|
-
);
|
853
|
-
},
|
854
|
-
formatHelp: (command, helper) => {
|
855
|
-
const termWidth = helper.padWidth(command, helper);
|
856
|
-
const helpWidth = helper.helpWidth || 80;
|
857
|
-
const itemIndentWidth = 2;
|
858
|
-
const itemSeparatorWidth = 2; // between term and description
|
859
|
-
|
860
|
-
const formatItem = (term, description) => {
|
861
|
-
if (description) {
|
862
|
-
const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
|
863
|
-
|
864
|
-
return helper.wrap(fullText, helpWidth - itemIndentWidth, termWidth + itemSeparatorWidth);
|
865
|
-
}
|
866
|
-
|
867
|
-
return term;
|
868
|
-
};
|
869
|
-
|
870
|
-
const formatList = (textArray) => textArray.join('\n').replace(/^/gm, ' '.repeat(itemIndentWidth));
|
871
|
-
|
872
|
-
// Usage
|
873
|
-
let output = [`${bold('Usage:')} ${helper.commandUsage(command)}`, ''];
|
874
|
-
|
875
|
-
// Description
|
876
|
-
const commandDescription = isGlobalHelp
|
877
|
-
? 'The build tool for modern web applications.'
|
878
|
-
: helper.commandDescription(command);
|
879
|
-
|
880
|
-
if (commandDescription.length > 0) {
|
881
|
-
output = output.concat([commandDescription, '']);
|
882
|
-
}
|
883
|
-
|
884
|
-
// Arguments
|
885
|
-
const argumentList = helper
|
886
|
-
.visibleArguments(command)
|
887
|
-
.map((argument) => formatItem(argument.term, argument.description));
|
888
|
-
|
889
|
-
if (argumentList.length > 0) {
|
890
|
-
output = output.concat([bold('Arguments:'), formatList(argumentList), '']);
|
891
|
-
}
|
892
|
-
|
893
|
-
// Options
|
894
|
-
const optionList = helper
|
895
|
-
.visibleOptions(command)
|
896
|
-
.map((option) => formatItem(helper.optionTerm(option), helper.optionDescription(option)));
|
897
|
-
|
898
|
-
if (optionList.length > 0) {
|
899
|
-
output = output.concat([bold('Options:'), formatList(optionList), '']);
|
900
|
-
}
|
901
|
-
|
902
|
-
// Global options
|
903
|
-
const globalOptionList = program.options.map((option) =>
|
904
|
-
formatItem(helper.optionTerm(option), helper.optionDescription(option)),
|
905
|
-
);
|
906
|
-
|
907
|
-
if (globalOptionList.length > 0) {
|
908
|
-
output = output.concat([bold('Global options:'), formatList(globalOptionList), '']);
|
909
|
-
}
|
910
|
-
|
911
|
-
// Commands
|
912
|
-
const commandList = helper
|
913
|
-
.visibleCommands(isGlobalHelp ? program : command)
|
914
|
-
.map((command) => formatItem(helper.subcommandTerm(command), helper.subcommandDescription(command)));
|
915
|
-
|
916
|
-
if (commandList.length > 0) {
|
917
|
-
output = output.concat([bold('Commands:'), formatList(commandList), '']);
|
918
|
-
}
|
919
|
-
|
920
|
-
return output.join('\n');
|
921
|
-
},
|
922
|
-
});
|
923
|
-
|
924
|
-
if (isGlobalHelp) {
|
925
|
-
await Promise.all(
|
926
|
-
knownCommands.map((knownCommand) => {
|
927
|
-
return loadCommandByName(getCommandName(knownCommand.name));
|
928
|
-
}),
|
929
|
-
);
|
930
|
-
|
931
|
-
const buildCommand = findCommandByName(getCommandName(buildCommandOptions.name));
|
932
|
-
|
933
|
-
this.logger.raw(buildCommand.helpInformation());
|
934
|
-
} else {
|
935
|
-
const name = options[0];
|
936
|
-
|
937
|
-
await loadCommandByName(name);
|
938
|
-
|
939
|
-
const command = findCommandByName(name);
|
940
|
-
|
941
|
-
if (!command) {
|
942
|
-
this.logger.error(`Can't find and load command '${name}'`);
|
943
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
944
|
-
process.exit(2);
|
945
|
-
}
|
946
|
-
|
947
|
-
this.logger.raw(command.helpInformation());
|
948
|
-
}
|
949
|
-
} else if (isHelpCommandSyntax) {
|
950
|
-
let isCommandSpecified = false;
|
951
|
-
let commandName = getCommandName(buildCommandOptions.name);
|
952
|
-
let optionName;
|
953
|
-
|
954
|
-
if (options.length === 1) {
|
955
|
-
optionName = options[0];
|
956
|
-
} else if (options.length === 2) {
|
957
|
-
isCommandSpecified = true;
|
958
|
-
commandName = options[0];
|
959
|
-
optionName = options[1];
|
960
|
-
|
961
|
-
if (isOption(commandName)) {
|
962
|
-
outputIncorrectUsageOfHelp();
|
963
|
-
}
|
964
|
-
} else {
|
965
|
-
outputIncorrectUsageOfHelp();
|
966
|
-
}
|
967
|
-
|
968
|
-
await loadCommandByName(commandName);
|
969
|
-
|
970
|
-
const command = isGlobalOption(optionName) ? program : findCommandByName(commandName);
|
971
|
-
|
972
|
-
if (!command) {
|
973
|
-
this.logger.error(`Can't find and load command '${commandName}'`);
|
974
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
975
|
-
process.exit(2);
|
976
|
-
}
|
977
|
-
|
978
|
-
const option = command.options.find((option) => option.short === optionName || option.long === optionName);
|
979
|
-
|
980
|
-
if (!option) {
|
981
|
-
this.logger.error(`Unknown option '${optionName}'`);
|
982
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
983
|
-
process.exit(2);
|
984
|
-
}
|
985
|
-
|
986
|
-
const nameOutput =
|
987
|
-
option.flags.replace(/^.+[[<]/, '').replace(/(\.\.\.)?[\]>].*$/, '') + (option.variadic === true ? '...' : '');
|
988
|
-
const value = option.required ? '<' + nameOutput + '>' : option.optional ? '[' + nameOutput + ']' : '';
|
989
|
-
|
990
|
-
this.logger.raw(
|
991
|
-
`${bold('Usage')}: webpack${isCommandSpecified ? ` ${commandName}` : ''} ${option.long}${value ? ` ${value}` : ''}`,
|
992
|
-
);
|
1086
|
+
if (pkg !== "webpack-cli" && !this.checkPackageExists(pkg)) {
|
1087
|
+
if (!allowToInstall) {
|
1088
|
+
return;
|
1089
|
+
}
|
993
1090
|
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1091
|
+
pkg = await this.doInstall(pkg, {
|
1092
|
+
preMessage: () => {
|
1093
|
+
this.logger.error(
|
1094
|
+
`For using this command you need to install: '${this.colors.green(pkg)}' package.`,
|
1095
|
+
);
|
1096
|
+
},
|
1097
|
+
});
|
1098
|
+
}
|
1001
1099
|
|
1002
|
-
|
1003
|
-
this.logger.raw(`${bold('Description:')} ${option.description}`);
|
1004
|
-
}
|
1100
|
+
let loadedCommand;
|
1005
1101
|
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1102
|
+
try {
|
1103
|
+
loadedCommand = await this.tryRequireThenImport(pkg, false);
|
1104
|
+
} catch (error) {
|
1105
|
+
// Ignore, command is not installed
|
1009
1106
|
|
1010
|
-
|
1107
|
+
return;
|
1108
|
+
}
|
1011
1109
|
|
1012
|
-
|
1013
|
-
// logger.raw('Possible values: foo | bar');
|
1014
|
-
// logger.raw('Documentation: https://webpack.js.org/option/name/');
|
1015
|
-
} else {
|
1016
|
-
outputIncorrectUsageOfHelp();
|
1017
|
-
}
|
1110
|
+
let command;
|
1018
1111
|
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1112
|
+
try {
|
1113
|
+
command = new loadedCommand();
|
1114
|
+
|
1115
|
+
await command.apply(this);
|
1116
|
+
} catch (error) {
|
1117
|
+
this.logger.error(`Unable to load '${pkg}' command`);
|
1118
|
+
this.logger.error(error);
|
1119
|
+
process.exit(2);
|
1120
|
+
}
|
1121
|
+
}
|
1122
|
+
};
|
1123
|
+
|
1124
|
+
// Register own exit
|
1125
|
+
this.program.exitOverride(async (error) => {
|
1126
|
+
if (error.exitCode === 0) {
|
1127
|
+
process.exit(0);
|
1128
|
+
}
|
1129
|
+
|
1130
|
+
if (error.code === "executeSubCommandAsync") {
|
1131
|
+
process.exit(2);
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
if (error.code === "commander.help") {
|
1135
|
+
process.exit(0);
|
1136
|
+
}
|
1137
|
+
|
1138
|
+
if (error.code === "commander.unknownOption") {
|
1139
|
+
let name = error.message.match(/'(.+)'/);
|
1140
|
+
|
1141
|
+
if (name) {
|
1142
|
+
name = name[1].substr(2);
|
1143
|
+
|
1144
|
+
if (name.includes("=")) {
|
1145
|
+
name = name.split("=")[0];
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
const { operands } = this.program.parseOptions(this.program.args);
|
1149
|
+
const operand =
|
1150
|
+
typeof operands[0] !== "undefined"
|
1151
|
+
? operands[0]
|
1152
|
+
: getCommandName(buildCommandOptions.name);
|
1153
|
+
|
1154
|
+
if (operand) {
|
1155
|
+
const command = findCommandByName(operand);
|
1156
|
+
|
1157
|
+
if (!command) {
|
1158
|
+
this.logger.error(`Can't find and load command '${operand}'`);
|
1159
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1160
|
+
process.exit(2);
|
1040
1161
|
}
|
1041
1162
|
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1163
|
+
const levenshtein = require("fastest-levenshtein");
|
1164
|
+
|
1165
|
+
command.options.forEach((option) => {
|
1166
|
+
if (!option.hidden && levenshtein.distance(name, option.long.slice(2)) < 3) {
|
1167
|
+
this.logger.error(`Did you mean '--${option.name()}'?`);
|
1168
|
+
}
|
1169
|
+
});
|
1170
|
+
}
|
1171
|
+
}
|
1172
|
+
}
|
1173
|
+
|
1174
|
+
// Codes:
|
1175
|
+
// - commander.unknownCommand
|
1176
|
+
// - commander.missingArgument
|
1177
|
+
// - commander.missingMandatoryOptionValue
|
1178
|
+
// - commander.optionMissingArgument
|
1179
|
+
|
1180
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1181
|
+
process.exit(2);
|
1182
|
+
});
|
1183
|
+
|
1184
|
+
// Default `--color` and `--no-color` options
|
1185
|
+
const cli = this;
|
1186
|
+
this.program.option("--color", "Enable colors on console.");
|
1187
|
+
this.program.on("option:color", function () {
|
1188
|
+
const { color } = this.opts();
|
1189
|
+
|
1190
|
+
cli.isColorSupportChanged = color;
|
1191
|
+
cli.colors = cli.createColors(color);
|
1192
|
+
});
|
1193
|
+
this.program.option("--no-color", "Disable colors on console.");
|
1194
|
+
this.program.on("option:no-color", function () {
|
1195
|
+
const { color } = this.opts();
|
1196
|
+
|
1197
|
+
cli.isColorSupportChanged = color;
|
1198
|
+
cli.colors = cli.createColors(color);
|
1199
|
+
});
|
1200
|
+
|
1201
|
+
// Make `-v, --version` options
|
1202
|
+
// Make `version|v [commands...]` command
|
1203
|
+
const outputVersion = async (options) => {
|
1204
|
+
// Filter `bundle`, `watch`, `version` and `help` commands
|
1205
|
+
const possibleCommandNames = options.filter(
|
1206
|
+
(option) =>
|
1207
|
+
!isCommand(option, buildCommandOptions) &&
|
1208
|
+
!isCommand(option, watchCommandOptions) &&
|
1209
|
+
!isCommand(option, versionCommandOptions) &&
|
1210
|
+
!isCommand(option, helpCommandOptions),
|
1211
|
+
);
|
1212
|
+
|
1213
|
+
possibleCommandNames.forEach((possibleCommandName) => {
|
1214
|
+
if (!isOption(possibleCommandName)) {
|
1215
|
+
return;
|
1216
|
+
}
|
1047
1217
|
|
1048
|
-
|
1218
|
+
this.logger.error(`Unknown option '${possibleCommandName}'`);
|
1219
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1220
|
+
process.exit(2);
|
1221
|
+
});
|
1049
1222
|
|
1050
|
-
|
1051
|
-
|
1223
|
+
if (possibleCommandNames.length > 0) {
|
1224
|
+
await Promise.all(
|
1225
|
+
possibleCommandNames.map((possibleCommand) => loadCommandByName(possibleCommand)),
|
1226
|
+
);
|
1052
1227
|
|
1053
|
-
|
1054
|
-
|
1055
|
-
if (options.help !== 'verbose') {
|
1056
|
-
this.logger.error("Unknown value for '--help' option, please use '--help=verbose'");
|
1057
|
-
process.exit(2);
|
1058
|
-
}
|
1228
|
+
for (const possibleCommandName of possibleCommandNames) {
|
1229
|
+
const foundCommand = findCommandByName(possibleCommandName);
|
1059
1230
|
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1231
|
+
if (!foundCommand) {
|
1232
|
+
this.logger.error(`Unknown command '${possibleCommandName}'`);
|
1233
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1234
|
+
process.exit(2);
|
1235
|
+
}
|
1063
1236
|
|
1064
|
-
|
1237
|
+
try {
|
1238
|
+
const { name, version } = this.loadJSONFile(`${foundCommand.pkg}/package.json`);
|
1065
1239
|
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
.concat(isHelpCommandSyntax && typeof options.version !== 'undefined' ? ['--version'] : []);
|
1240
|
+
this.logger.raw(`${name} ${version}`);
|
1241
|
+
} catch (e) {
|
1242
|
+
this.logger.error(`Error: External package '${foundCommand.pkg}' not found`);
|
1243
|
+
process.exit(2);
|
1244
|
+
}
|
1245
|
+
}
|
1246
|
+
}
|
1074
1247
|
|
1075
|
-
|
1076
|
-
}
|
1248
|
+
let webpack;
|
1077
1249
|
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1250
|
+
try {
|
1251
|
+
webpack = await this.loadWebpack(false);
|
1252
|
+
} catch (_error) {
|
1253
|
+
// Nothing
|
1254
|
+
}
|
1083
1255
|
|
1084
|
-
|
1085
|
-
}
|
1256
|
+
this.logger.raw(`webpack: ${webpack ? webpack.version : "not installed"}`);
|
1086
1257
|
|
1087
|
-
|
1088
|
-
let commandOperands = operands.slice(1);
|
1258
|
+
const pkgJSON = this.loadJSONFile("../package.json");
|
1089
1259
|
|
1090
|
-
|
1091
|
-
await loadCommandByName(commandToRun, true);
|
1092
|
-
} else {
|
1093
|
-
let isEntrySyntax = fs.existsSync(operand);
|
1094
|
-
|
1095
|
-
if (isEntrySyntax) {
|
1096
|
-
commandToRun = defaultCommandToRun;
|
1097
|
-
commandOperands = operands;
|
1098
|
-
|
1099
|
-
await loadCommandByName(commandToRun);
|
1100
|
-
} else {
|
1101
|
-
this.logger.error(`Unknown command or entry '${operand}'`);
|
1102
|
-
|
1103
|
-
const found = knownCommands.find(
|
1104
|
-
(commandOptions) => this.utils.levenshtein.distance(operand, getCommandName(commandOptions.name)) < 3,
|
1105
|
-
);
|
1106
|
-
|
1107
|
-
if (found) {
|
1108
|
-
this.logger.error(
|
1109
|
-
`Did you mean '${getCommandName(found.name)}' (alias '${
|
1110
|
-
Array.isArray(found.alias) ? found.alias.join(', ') : found.alias
|
1111
|
-
}')?`,
|
1112
|
-
);
|
1113
|
-
}
|
1114
|
-
|
1115
|
-
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1116
|
-
process.exit(2);
|
1117
|
-
}
|
1118
|
-
}
|
1260
|
+
this.logger.raw(`webpack-cli: ${pkgJSON.version}`);
|
1119
1261
|
|
1120
|
-
|
1121
|
-
});
|
1262
|
+
let devServer;
|
1122
1263
|
|
1123
|
-
|
1124
|
-
|
1264
|
+
try {
|
1265
|
+
devServer = await this.loadJSONFile("webpack-dev-server/package.json", false);
|
1266
|
+
} catch (_error) {
|
1267
|
+
// Nothing
|
1268
|
+
}
|
1125
1269
|
|
1126
|
-
|
1127
|
-
const loadConfig = async (configPath) => {
|
1128
|
-
const { interpret } = this.utils;
|
1129
|
-
const ext = path.extname(configPath);
|
1130
|
-
const interpreted = Object.keys(interpret.jsVariants).find((variant) => variant === ext);
|
1131
|
-
|
1132
|
-
if (interpreted) {
|
1133
|
-
const { rechoir } = this.utils;
|
1134
|
-
|
1135
|
-
try {
|
1136
|
-
rechoir.prepare(interpret.extensions, configPath);
|
1137
|
-
} catch (error) {
|
1138
|
-
if (error.failures) {
|
1139
|
-
this.logger.error(`Unable load '${configPath}'`);
|
1140
|
-
this.logger.error(error.message);
|
1141
|
-
|
1142
|
-
error.failures.forEach((failure) => {
|
1143
|
-
this.logger.error(failure.error.message);
|
1144
|
-
});
|
1145
|
-
this.logger.error('Please install one of them');
|
1146
|
-
process.exit(2);
|
1147
|
-
}
|
1148
|
-
|
1149
|
-
this.logger.error(error);
|
1150
|
-
process.exit(2);
|
1151
|
-
}
|
1152
|
-
}
|
1270
|
+
this.logger.raw(`webpack-dev-server ${devServer ? devServer.version : "not installed"}`);
|
1153
1271
|
|
1154
|
-
|
1272
|
+
process.exit(0);
|
1273
|
+
};
|
1274
|
+
this.program.option(
|
1275
|
+
"-v, --version",
|
1276
|
+
"Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.",
|
1277
|
+
);
|
1155
1278
|
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1279
|
+
const outputHelp = async (options, isVerbose, isHelpCommandSyntax, program) => {
|
1280
|
+
const { bold } = this.colors;
|
1281
|
+
const outputIncorrectUsageOfHelp = () => {
|
1282
|
+
this.logger.error("Incorrect use of help");
|
1283
|
+
this.logger.error(
|
1284
|
+
"Please use: 'webpack help [command] [option]' | 'webpack [command] --help'",
|
1285
|
+
);
|
1286
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1287
|
+
process.exit(2);
|
1288
|
+
};
|
1289
|
+
|
1290
|
+
const isGlobalHelp = options.length === 0;
|
1291
|
+
const isCommandHelp = options.length === 1 && !isOption(options[0]);
|
1292
|
+
|
1293
|
+
if (isGlobalHelp || isCommandHelp) {
|
1294
|
+
program.configureHelp({
|
1295
|
+
sortSubcommands: true,
|
1296
|
+
// Support multiple aliases
|
1297
|
+
commandUsage: (command) => {
|
1298
|
+
let parentCmdNames = "";
|
1299
|
+
|
1300
|
+
for (let parentCmd = command.parent; parentCmd; parentCmd = parentCmd.parent) {
|
1301
|
+
parentCmdNames = `${parentCmd.name()} ${parentCmdNames}`;
|
1302
|
+
}
|
1161
1303
|
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1304
|
+
if (isGlobalHelp) {
|
1305
|
+
return `${parentCmdNames}${command.usage()}\n${bold(
|
1306
|
+
"Alternative usage to run commands:",
|
1307
|
+
)} ${parentCmdNames}[command] [options]`;
|
1308
|
+
}
|
1165
1309
|
|
1166
|
-
|
1167
|
-
|
1310
|
+
return `${parentCmdNames}${command.name()}|${command
|
1311
|
+
.aliases()
|
1312
|
+
.join("|")} ${command.usage()}`;
|
1313
|
+
},
|
1314
|
+
// Support multiple aliases
|
1315
|
+
subcommandTerm: (command) => {
|
1316
|
+
const humanReadableArgumentName = (argument) => {
|
1317
|
+
const nameOutput = argument.name + (argument.variadic === true ? "..." : "");
|
1168
1318
|
|
1169
|
-
|
1319
|
+
return argument.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
|
1320
|
+
};
|
1321
|
+
const args = command._args.map((arg) => humanReadableArgumentName(arg)).join(" ");
|
1322
|
+
|
1323
|
+
return `${command.name()}|${command.aliases().join("|")}${args ? ` ${args}` : ""}${
|
1324
|
+
command.options.length > 0 ? " [options]" : ""
|
1325
|
+
}`;
|
1326
|
+
},
|
1327
|
+
visibleOptions: function visibleOptions(command) {
|
1328
|
+
return command.options.filter((option) => {
|
1329
|
+
if (option.hidden) {
|
1330
|
+
return false;
|
1331
|
+
}
|
1332
|
+
|
1333
|
+
switch (option.helpLevel) {
|
1334
|
+
case "verbose":
|
1335
|
+
return isVerbose;
|
1336
|
+
case "minimum":
|
1337
|
+
default:
|
1338
|
+
return true;
|
1339
|
+
}
|
1340
|
+
});
|
1341
|
+
},
|
1342
|
+
padWidth(command, helper) {
|
1343
|
+
return Math.max(
|
1344
|
+
helper.longestArgumentTermLength(command, helper),
|
1345
|
+
helper.longestOptionTermLength(command, helper),
|
1346
|
+
// For global options
|
1347
|
+
helper.longestOptionTermLength(program, helper),
|
1348
|
+
helper.longestSubcommandTermLength(isGlobalHelp ? program : command, helper),
|
1349
|
+
);
|
1350
|
+
},
|
1351
|
+
formatHelp: (command, helper) => {
|
1352
|
+
const termWidth = helper.padWidth(command, helper);
|
1353
|
+
const helpWidth = helper.helpWidth || process.env.WEBPACK_CLI_HELP_WIDTH || 80;
|
1354
|
+
const itemIndentWidth = 2;
|
1355
|
+
const itemSeparatorWidth = 2; // between term and description
|
1356
|
+
|
1357
|
+
const formatItem = (term, description) => {
|
1358
|
+
if (description) {
|
1359
|
+
const fullText = `${term.padEnd(termWidth + itemSeparatorWidth)}${description}`;
|
1360
|
+
|
1361
|
+
return helper.wrap(
|
1362
|
+
fullText,
|
1363
|
+
helpWidth - itemIndentWidth,
|
1364
|
+
termWidth + itemSeparatorWidth,
|
1365
|
+
);
|
1366
|
+
}
|
1170
1367
|
|
1171
|
-
|
1172
|
-
|
1173
|
-
}
|
1368
|
+
return term;
|
1369
|
+
};
|
1174
1370
|
|
1175
|
-
|
1176
|
-
|
1177
|
-
pathToFileURL &&
|
1178
|
-
dynamicImportLoader
|
1179
|
-
) {
|
1180
|
-
const urlForConfig = pathToFileURL(configPath);
|
1371
|
+
const formatList = (textArray) =>
|
1372
|
+
textArray.join("\n").replace(/^/gm, " ".repeat(itemIndentWidth));
|
1181
1373
|
|
1182
|
-
|
1183
|
-
|
1374
|
+
// Usage
|
1375
|
+
let output = [`${bold("Usage:")} ${helper.commandUsage(command)}`, ""];
|
1184
1376
|
|
1185
|
-
|
1186
|
-
|
1377
|
+
// Description
|
1378
|
+
const commandDescription = isGlobalHelp
|
1379
|
+
? "The build tool for modern web applications."
|
1380
|
+
: helper.commandDescription(command);
|
1187
1381
|
|
1188
|
-
|
1189
|
-
|
1190
|
-
}
|
1191
|
-
this.logger.error(`Failed to load '${configPath}' config`);
|
1382
|
+
if (commandDescription.length > 0) {
|
1383
|
+
output = output.concat([commandDescription, ""]);
|
1384
|
+
}
|
1192
1385
|
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
}
|
1386
|
+
// Arguments
|
1387
|
+
const argumentList = helper
|
1388
|
+
.visibleArguments(command)
|
1389
|
+
.map((argument) => formatItem(argument.term, argument.description));
|
1198
1390
|
|
1199
|
-
|
1391
|
+
if (argumentList.length > 0) {
|
1392
|
+
output = output.concat([bold("Arguments:"), formatList(argumentList), ""]);
|
1200
1393
|
}
|
1201
1394
|
|
1202
|
-
|
1203
|
-
|
1395
|
+
// Options
|
1396
|
+
const optionList = helper
|
1397
|
+
.visibleOptions(command)
|
1398
|
+
.map((option) =>
|
1399
|
+
formatItem(helper.optionTerm(option), helper.optionDescription(option)),
|
1400
|
+
);
|
1401
|
+
|
1402
|
+
if (optionList.length > 0) {
|
1403
|
+
output = output.concat([bold("Options:"), formatList(optionList), ""]);
|
1204
1404
|
}
|
1205
1405
|
|
1206
|
-
|
1207
|
-
|
1406
|
+
// Global options
|
1407
|
+
const globalOptionList = program.options.map((option) =>
|
1408
|
+
formatItem(helper.optionTerm(option), helper.optionDescription(option)),
|
1409
|
+
);
|
1208
1410
|
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1411
|
+
if (globalOptionList.length > 0) {
|
1412
|
+
output = output.concat([bold("Global options:"), formatList(globalOptionList), ""]);
|
1413
|
+
}
|
1212
1414
|
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1415
|
+
// Commands
|
1416
|
+
const commandList = helper
|
1417
|
+
.visibleCommands(isGlobalHelp ? program : command)
|
1418
|
+
.map((command) =>
|
1419
|
+
formatItem(helper.subcommandTerm(command), helper.subcommandDescription(command)),
|
1420
|
+
);
|
1218
1421
|
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
rawConfig = await rawConfig(argv.env, argv);
|
1223
|
-
}
|
1422
|
+
if (commandList.length > 0) {
|
1423
|
+
output = output.concat([bold("Commands:"), formatList(commandList), ""]);
|
1424
|
+
}
|
1224
1425
|
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1426
|
+
return output.join("\n");
|
1427
|
+
},
|
1428
|
+
});
|
1228
1429
|
|
1229
|
-
|
1430
|
+
if (isGlobalHelp) {
|
1431
|
+
await Promise.all(
|
1432
|
+
knownCommands.map((knownCommand) => {
|
1433
|
+
return loadCommandByName(getCommandName(knownCommand.name));
|
1434
|
+
}),
|
1435
|
+
);
|
1230
1436
|
|
1231
|
-
|
1437
|
+
const buildCommand = findCommandByName(getCommandName(buildCommandOptions.name));
|
1232
1438
|
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
}
|
1439
|
+
this.logger.raw(buildCommand.helpInformation());
|
1440
|
+
} else {
|
1441
|
+
const name = options[0];
|
1237
1442
|
|
1238
|
-
|
1239
|
-
};
|
1443
|
+
await loadCommandByName(name);
|
1240
1444
|
|
1241
|
-
|
1445
|
+
const command = findCommandByName(name);
|
1242
1446
|
|
1243
|
-
|
1244
|
-
const
|
1245
|
-
|
1447
|
+
if (!command) {
|
1448
|
+
const builtInCommandUsed = externalBuiltInCommandsInfo.find(
|
1449
|
+
(command) => command.name.includes(name) || name === command.alias,
|
1246
1450
|
);
|
1451
|
+
if (typeof builtInCommandUsed !== "undefined") {
|
1452
|
+
this.logger.error(
|
1453
|
+
`For using '${name}' command you need to install '${builtInCommandUsed.pkg}' package.`,
|
1454
|
+
);
|
1455
|
+
} else {
|
1456
|
+
this.logger.error(`Can't find and load command '${name}'`);
|
1457
|
+
this.logger.error("Run 'webpack --help' to see available commands and options.");
|
1458
|
+
}
|
1459
|
+
process.exit(2);
|
1460
|
+
}
|
1247
1461
|
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1462
|
+
this.logger.raw(command.helpInformation());
|
1463
|
+
}
|
1464
|
+
} else if (isHelpCommandSyntax) {
|
1465
|
+
let isCommandSpecified = false;
|
1466
|
+
let commandName = getCommandName(buildCommandOptions.name);
|
1467
|
+
let optionName;
|
1468
|
+
|
1469
|
+
if (options.length === 1) {
|
1470
|
+
optionName = options[0];
|
1471
|
+
} else if (options.length === 2) {
|
1472
|
+
isCommandSpecified = true;
|
1473
|
+
commandName = options[0];
|
1474
|
+
optionName = options[1];
|
1475
|
+
|
1476
|
+
if (isOption(commandName)) {
|
1477
|
+
outputIncorrectUsageOfHelp();
|
1478
|
+
}
|
1263
1479
|
} else {
|
1264
|
-
|
1265
|
-
|
1266
|
-
// Order defines the priority, in increasing order
|
1267
|
-
const defaultConfigFiles = ['webpack.config', '.webpack/webpack.config', '.webpack/webpackfile']
|
1268
|
-
.map((filename) =>
|
1269
|
-
// Since .cjs is not available on interpret side add it manually to default config extension list
|
1270
|
-
[...Object.keys(interpret.extensions), '.cjs'].map((ext) => ({
|
1271
|
-
path: path.resolve(filename + ext),
|
1272
|
-
ext: ext,
|
1273
|
-
module: interpret.extensions[ext],
|
1274
|
-
})),
|
1275
|
-
)
|
1276
|
-
.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
|
1277
|
-
|
1278
|
-
let foundDefaultConfigFile;
|
1279
|
-
|
1280
|
-
for (const defaultConfigFile of defaultConfigFiles) {
|
1281
|
-
if (!fs.existsSync(defaultConfigFile.path)) {
|
1282
|
-
continue;
|
1283
|
-
}
|
1284
|
-
|
1285
|
-
foundDefaultConfigFile = defaultConfigFile;
|
1286
|
-
break;
|
1287
|
-
}
|
1480
|
+
outputIncorrectUsageOfHelp();
|
1481
|
+
}
|
1288
1482
|
|
1289
|
-
|
1290
|
-
const loadedConfig = await loadConfig(foundDefaultConfigFile.path);
|
1291
|
-
const evaluatedConfig = await evaluateConfig(loadedConfig, options.argv || {});
|
1483
|
+
await loadCommandByName(commandName);
|
1292
1484
|
|
1293
|
-
|
1485
|
+
const command = isGlobalOption(optionName) ? program : findCommandByName(commandName);
|
1294
1486
|
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
} else {
|
1300
|
-
config.path.set(evaluatedConfig.options, evaluatedConfig.path);
|
1301
|
-
}
|
1302
|
-
}
|
1487
|
+
if (!command) {
|
1488
|
+
this.logger.error(`Can't find and load command '${commandName}'`);
|
1489
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1490
|
+
process.exit(2);
|
1303
1491
|
}
|
1304
1492
|
|
1305
|
-
|
1306
|
-
|
1493
|
+
const option = command.options.find(
|
1494
|
+
(option) => option.short === optionName || option.long === optionName,
|
1495
|
+
);
|
1307
1496
|
|
1308
|
-
|
1309
|
-
|
1497
|
+
if (!option) {
|
1498
|
+
this.logger.error(`Unknown option '${optionName}'`);
|
1499
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1500
|
+
process.exit(2);
|
1501
|
+
}
|
1310
1502
|
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1503
|
+
const nameOutput =
|
1504
|
+
option.flags.replace(/^.+[[<]/, "").replace(/(\.\.\.)?[\]>].*$/, "") +
|
1505
|
+
(option.variadic === true ? "..." : "");
|
1506
|
+
const value = option.required
|
1507
|
+
? "<" + nameOutput + ">"
|
1508
|
+
: option.optional
|
1509
|
+
? "[" + nameOutput + "]"
|
1510
|
+
: "";
|
1511
|
+
|
1512
|
+
this.logger.raw(
|
1513
|
+
`${bold("Usage")}: webpack${isCommandSpecified ? ` ${commandName}` : ""} ${option.long}${
|
1514
|
+
value ? ` ${value}` : ""
|
1515
|
+
}`,
|
1516
|
+
);
|
1316
1517
|
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1518
|
+
if (option.short) {
|
1519
|
+
this.logger.raw(
|
1520
|
+
`${bold("Short:")} webpack${isCommandSpecified ? ` ${commandName}` : ""} ${
|
1521
|
+
option.short
|
1522
|
+
}${value ? ` ${value}` : ""}`,
|
1523
|
+
);
|
1524
|
+
}
|
1320
1525
|
|
1321
|
-
|
1322
|
-
|
1526
|
+
if (option.description) {
|
1527
|
+
this.logger.raw(`${bold("Description:")} ${option.description}`);
|
1528
|
+
}
|
1323
1529
|
|
1324
|
-
|
1325
|
-
|
1326
|
-
notfoundConfigNames.map((configName) => `Configuration with the name "${configName}" was not found.`).join(' '),
|
1327
|
-
);
|
1328
|
-
process.exit(2);
|
1329
|
-
}
|
1530
|
+
if (!option.negate && option.defaultValue) {
|
1531
|
+
this.logger.raw(`${bold("Default value:")} ${JSON.stringify(option.defaultValue)}`);
|
1330
1532
|
}
|
1331
1533
|
|
1332
|
-
|
1333
|
-
const { merge } = require('webpack-merge');
|
1534
|
+
const flag = this.getBuiltInOptions().find((flag) => option.long === `--${flag.name}`);
|
1334
1535
|
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1536
|
+
if (flag && flag.configs) {
|
1537
|
+
const possibleValues = flag.configs.reduce((accumulator, currentValue) => {
|
1538
|
+
if (currentValue.values) {
|
1539
|
+
return accumulator.concat(currentValue.values);
|
1540
|
+
} else {
|
1541
|
+
return accumulator;
|
1341
1542
|
}
|
1543
|
+
}, []);
|
1342
1544
|
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1545
|
+
if (possibleValues.length > 0) {
|
1546
|
+
this.logger.raw(
|
1547
|
+
`${bold("Possible values:")} ${JSON.stringify(possibleValues.join(" | "))}`,
|
1548
|
+
);
|
1549
|
+
}
|
1550
|
+
}
|
1348
1551
|
|
1349
|
-
|
1552
|
+
this.logger.raw("");
|
1553
|
+
|
1554
|
+
// TODO implement this after refactor cli arguments
|
1555
|
+
// logger.raw('Documentation: https://webpack.js.org/option/name/');
|
1556
|
+
} else {
|
1557
|
+
outputIncorrectUsageOfHelp();
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
this.logger.raw(
|
1561
|
+
"To see list of all supported commands and options run 'webpack --help=verbose'.\n",
|
1562
|
+
);
|
1563
|
+
this.logger.raw(`${bold("Webpack documentation:")} https://webpack.js.org/.`);
|
1564
|
+
this.logger.raw(`${bold("CLI documentation:")} https://webpack.js.org/api/cli/.`);
|
1565
|
+
this.logger.raw(`${bold("Made with ♥ by the webpack team")}.`);
|
1566
|
+
process.exit(0);
|
1567
|
+
};
|
1568
|
+
this.program.helpOption(false);
|
1569
|
+
this.program.addHelpCommand(false);
|
1570
|
+
this.program.option("-h, --help [verbose]", "Display help for commands and options.");
|
1571
|
+
|
1572
|
+
let isInternalActionCalled = false;
|
1573
|
+
|
1574
|
+
// Default action
|
1575
|
+
this.program.usage("[options]");
|
1576
|
+
this.program.allowUnknownOption(true);
|
1577
|
+
this.program.action(async (options, program) => {
|
1578
|
+
if (!isInternalActionCalled) {
|
1579
|
+
isInternalActionCalled = true;
|
1580
|
+
} else {
|
1581
|
+
this.logger.error("No commands found to run");
|
1582
|
+
process.exit(2);
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
// Command and options
|
1586
|
+
const { operands, unknown } = this.program.parseOptions(program.args);
|
1587
|
+
const defaultCommandToRun = getCommandName(buildCommandOptions.name);
|
1588
|
+
const hasOperand = typeof operands[0] !== "undefined";
|
1589
|
+
const operand = hasOperand ? operands[0] : defaultCommandToRun;
|
1590
|
+
const isHelpOption = typeof options.help !== "undefined";
|
1591
|
+
const isHelpCommandSyntax = isCommand(operand, helpCommandOptions);
|
1592
|
+
|
1593
|
+
if (isHelpOption || isHelpCommandSyntax) {
|
1594
|
+
let isVerbose = false;
|
1595
|
+
|
1596
|
+
if (isHelpOption) {
|
1597
|
+
if (typeof options.help === "string") {
|
1598
|
+
if (options.help !== "verbose") {
|
1599
|
+
this.logger.error("Unknown value for '--help' option, please use '--help=verbose'");
|
1600
|
+
process.exit(2);
|
1601
|
+
}
|
1350
1602
|
|
1351
|
-
|
1352
|
-
|
1353
|
-
config.path.set(config.options, mergedConfigPaths);
|
1603
|
+
isVerbose = true;
|
1604
|
+
}
|
1354
1605
|
}
|
1355
1606
|
|
1356
|
-
|
1357
|
-
|
1607
|
+
this.program.forHelp = true;
|
1608
|
+
|
1609
|
+
const optionsForHelp = []
|
1610
|
+
.concat(isHelpOption && hasOperand ? [operand] : [])
|
1611
|
+
// Syntax `webpack help [command]`
|
1612
|
+
.concat(operands.slice(1))
|
1613
|
+
// Syntax `webpack help [option]`
|
1614
|
+
.concat(unknown)
|
1615
|
+
.concat(
|
1616
|
+
isHelpCommandSyntax && typeof options.color !== "undefined"
|
1617
|
+
? [options.color ? "--color" : "--no-color"]
|
1618
|
+
: [],
|
1619
|
+
)
|
1620
|
+
.concat(
|
1621
|
+
isHelpCommandSyntax && typeof options.version !== "undefined" ? ["--version"] : [],
|
1622
|
+
);
|
1623
|
+
|
1624
|
+
await outputHelp(optionsForHelp, isVerbose, isHelpCommandSyntax, program);
|
1625
|
+
}
|
1626
|
+
|
1627
|
+
const isVersionOption = typeof options.version !== "undefined";
|
1628
|
+
const isVersionCommandSyntax = isCommand(operand, versionCommandOptions);
|
1629
|
+
|
1630
|
+
if (isVersionOption || isVersionCommandSyntax) {
|
1631
|
+
const optionsForVersion = []
|
1632
|
+
.concat(isVersionOption ? [operand] : [])
|
1633
|
+
.concat(operands.slice(1))
|
1634
|
+
.concat(unknown);
|
1635
|
+
|
1636
|
+
await outputVersion(optionsForVersion, program);
|
1637
|
+
}
|
1638
|
+
|
1639
|
+
let commandToRun = operand;
|
1640
|
+
let commandOperands = operands.slice(1);
|
1641
|
+
|
1642
|
+
if (isKnownCommand(commandToRun)) {
|
1643
|
+
await loadCommandByName(commandToRun, true);
|
1644
|
+
} else {
|
1645
|
+
const isEntrySyntax = fs.existsSync(operand);
|
1646
|
+
|
1647
|
+
if (isEntrySyntax) {
|
1648
|
+
commandToRun = defaultCommandToRun;
|
1649
|
+
commandOperands = operands;
|
1650
|
+
|
1651
|
+
await loadCommandByName(commandToRun);
|
1652
|
+
} else {
|
1653
|
+
this.logger.error(`Unknown command or entry '${operand}'`);
|
1654
|
+
|
1655
|
+
const levenshtein = require("fastest-levenshtein");
|
1656
|
+
const found = knownCommands.find(
|
1657
|
+
(commandOptions) =>
|
1658
|
+
levenshtein.distance(operand, getCommandName(commandOptions.name)) < 3,
|
1659
|
+
);
|
1660
|
+
|
1661
|
+
if (found) {
|
1662
|
+
this.logger.error(
|
1663
|
+
`Did you mean '${getCommandName(found.name)}' (alias '${
|
1664
|
+
Array.isArray(found.alias) ? found.alias.join(", ") : found.alias
|
1665
|
+
}')?`,
|
1666
|
+
);
|
1667
|
+
}
|
1358
1668
|
|
1359
|
-
|
1360
|
-
|
1361
|
-
if (options.analyze) {
|
1362
|
-
if (!this.utils.packageExists('webpack-bundle-analyzer')) {
|
1363
|
-
const { promptInstallation, colors } = this.utils;
|
1364
|
-
|
1365
|
-
try {
|
1366
|
-
await promptInstallation('webpack-bundle-analyzer', () => {
|
1367
|
-
this.logger.error(`It looks like ${colors.yellow('webpack-bundle-analyzer')} is not installed.`);
|
1368
|
-
});
|
1369
|
-
} catch (error) {
|
1370
|
-
this.logger.error(
|
1371
|
-
`Action Interrupted, Please try once again or install ${colors.yellow('webpack-bundle-analyzer')} manually.`,
|
1372
|
-
);
|
1373
|
-
process.exit(2);
|
1374
|
-
}
|
1375
|
-
|
1376
|
-
this.logger.success(`${colors.yellow('webpack-bundle-analyzer')} was installed successfully.`);
|
1377
|
-
}
|
1669
|
+
this.logger.error("Run 'webpack --help' to see available commands and options");
|
1670
|
+
process.exit(2);
|
1378
1671
|
}
|
1672
|
+
}
|
1379
1673
|
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1674
|
+
await this.program.parseAsync([commandToRun, ...commandOperands, ...unknown], {
|
1675
|
+
from: "user",
|
1676
|
+
});
|
1677
|
+
});
|
1384
1678
|
|
1385
|
-
|
1386
|
-
|
1387
|
-
configOptions.watch &&
|
1388
|
-
options.argv &&
|
1389
|
-
options.argv.env &&
|
1390
|
-
(options.argv.env['WEBPACK_WATCH'] || options.argv.env['WEBPACK_SERVE'])
|
1391
|
-
) {
|
1392
|
-
this.logger.warn(
|
1393
|
-
`No need to use the '${
|
1394
|
-
options.argv.env['WEBPACK_WATCH'] ? 'watch' : 'serve'
|
1395
|
-
}' command together with '{ watch: true }' configuration, it does not make sense.`,
|
1396
|
-
);
|
1679
|
+
await this.program.parseAsync(args, parseOptions);
|
1680
|
+
}
|
1397
1681
|
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1682
|
+
async loadConfig(options) {
|
1683
|
+
const interpret = require("interpret");
|
1684
|
+
const loadConfigByPath = async (configPath, argv = {}) => {
|
1685
|
+
const ext = path.extname(configPath);
|
1686
|
+
const interpreted = Object.keys(interpret.jsVariants).find((variant) => variant === ext);
|
1402
1687
|
|
1403
|
-
|
1404
|
-
|
1688
|
+
if (interpreted) {
|
1689
|
+
const rechoir = require("rechoir");
|
1690
|
+
|
1691
|
+
try {
|
1692
|
+
rechoir.prepare(interpret.extensions, configPath);
|
1693
|
+
} catch (error) {
|
1694
|
+
if (error.failures) {
|
1695
|
+
this.logger.error(`Unable load '${configPath}'`);
|
1696
|
+
this.logger.error(error.message);
|
1697
|
+
error.failures.forEach((failure) => {
|
1698
|
+
this.logger.error(failure.error.message);
|
1699
|
+
});
|
1700
|
+
this.logger.error("Please install one of them");
|
1701
|
+
process.exit(2);
|
1702
|
+
}
|
1405
1703
|
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1704
|
+
this.logger.error(error);
|
1705
|
+
process.exit(2);
|
1706
|
+
}
|
1707
|
+
}
|
1409
1708
|
|
1410
|
-
|
1411
|
-
const processArguments = (configOptions) => {
|
1412
|
-
const args = this.getBuiltInOptions()
|
1413
|
-
.filter((flag) => flag.group === 'core')
|
1414
|
-
.reduce((accumulator, flag) => {
|
1415
|
-
accumulator[flag.name] = flag;
|
1709
|
+
let options;
|
1416
1710
|
|
1417
|
-
|
1418
|
-
|
1711
|
+
try {
|
1712
|
+
options = await this.tryRequireThenImport(configPath, false);
|
1713
|
+
} catch (error) {
|
1714
|
+
this.logger.error(`Failed to load '${configPath}' config`);
|
1715
|
+
|
1716
|
+
if (this.isValidationError(error)) {
|
1717
|
+
this.logger.error(error.message);
|
1718
|
+
} else {
|
1719
|
+
this.logger.error(error);
|
1720
|
+
}
|
1419
1721
|
|
1420
|
-
|
1421
|
-
|
1422
|
-
return accumulator;
|
1423
|
-
}
|
1722
|
+
process.exit(2);
|
1723
|
+
}
|
1424
1724
|
|
1425
|
-
|
1725
|
+
if (Array.isArray(options)) {
|
1726
|
+
await Promise.all(
|
1727
|
+
options.map(async (_, i) => {
|
1728
|
+
if (typeof options[i].then === "function") {
|
1729
|
+
options[i] = await options[i];
|
1730
|
+
}
|
1426
1731
|
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1732
|
+
// `Promise` may return `Function`
|
1733
|
+
if (typeof options[i] === "function") {
|
1734
|
+
// when config is a function, pass the env from args to the config function
|
1735
|
+
options[i] = await options[i](argv.env, argv);
|
1736
|
+
}
|
1737
|
+
}),
|
1738
|
+
);
|
1739
|
+
} else {
|
1740
|
+
if (typeof options.then === "function") {
|
1741
|
+
options = await options;
|
1742
|
+
}
|
1430
1743
|
|
1431
|
-
|
1432
|
-
|
1744
|
+
// `Promise` may return `Function`
|
1745
|
+
if (typeof options === "function") {
|
1746
|
+
// when config is a function, pass the env from args to the config function
|
1747
|
+
options = await options(argv.env, argv);
|
1748
|
+
}
|
1749
|
+
}
|
1433
1750
|
|
1434
|
-
|
1751
|
+
const isObject = (value) => typeof value === "object" && value !== null;
|
1435
1752
|
|
1436
|
-
|
1437
|
-
|
1438
|
-
return xs.reduce((rv, x) => {
|
1439
|
-
(rv[x[key]] = rv[x[key]] || []).push(x);
|
1753
|
+
if (!isObject(options) && !Array.isArray(options)) {
|
1754
|
+
this.logger.error(`Invalid configuration in '${configPath}'`);
|
1440
1755
|
|
1441
|
-
|
1442
|
-
|
1443
|
-
};
|
1444
|
-
const problemsByPath = groupBy(problems, 'path');
|
1756
|
+
process.exit(2);
|
1757
|
+
}
|
1445
1758
|
|
1446
|
-
|
1447
|
-
|
1759
|
+
return { options, path: configPath };
|
1760
|
+
};
|
1448
1761
|
|
1449
|
-
|
1450
|
-
this.logger.error(
|
1451
|
-
`${this.utils.capitalizeFirstLetter(problem.type.replace(/-/g, ' '))}${
|
1452
|
-
problem.value ? ` '${problem.value}'` : ''
|
1453
|
-
} for the '--${problem.argument}' option${problem.index ? ` by index '${problem.index}'` : ''}`,
|
1454
|
-
);
|
1762
|
+
const config = { options: {}, path: new WeakMap() };
|
1455
1763
|
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1764
|
+
if (options.config && options.config.length > 0) {
|
1765
|
+
const loadedConfigs = await Promise.all(
|
1766
|
+
options.config.map((configPath) =>
|
1767
|
+
loadConfigByPath(path.resolve(configPath), options.argv),
|
1768
|
+
),
|
1769
|
+
);
|
1461
1770
|
|
1462
|
-
|
1463
|
-
}
|
1771
|
+
config.options = [];
|
1464
1772
|
|
1465
|
-
|
1466
|
-
|
1773
|
+
loadedConfigs.forEach((loadedConfig) => {
|
1774
|
+
const isArray = Array.isArray(loadedConfig.options);
|
1467
1775
|
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
const configPath = config.path.get(configOptions);
|
1476
|
-
|
1477
|
-
if (configPath) {
|
1478
|
-
if (!configOptions.cache.buildDependencies) {
|
1479
|
-
configOptions.cache.buildDependencies = {};
|
1480
|
-
}
|
1481
|
-
|
1482
|
-
if (!configOptions.cache.buildDependencies.defaultConfig) {
|
1483
|
-
configOptions.cache.buildDependencies.defaultConfig = [];
|
1484
|
-
}
|
1485
|
-
|
1486
|
-
if (Array.isArray(configPath)) {
|
1487
|
-
configPath.forEach((item) => {
|
1488
|
-
configOptions.cache.buildDependencies.defaultConfig.push(item);
|
1489
|
-
});
|
1490
|
-
} else {
|
1491
|
-
configOptions.cache.buildDependencies.defaultConfig.push(configPath);
|
1492
|
-
}
|
1493
|
-
}
|
1494
|
-
}
|
1495
|
-
|
1496
|
-
return configOptions;
|
1497
|
-
};
|
1776
|
+
// TODO we should run webpack multiple times when the `--config` options have multiple values with `--merge`, need to solve for the next major release
|
1777
|
+
if (config.options.length === 0) {
|
1778
|
+
config.options = loadedConfig.options;
|
1779
|
+
} else {
|
1780
|
+
if (!Array.isArray(config.options)) {
|
1781
|
+
config.options = [config.options];
|
1782
|
+
}
|
1498
1783
|
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1784
|
+
if (isArray) {
|
1785
|
+
loadedConfig.options.forEach((item) => {
|
1786
|
+
config.options.push(item);
|
1787
|
+
});
|
1788
|
+
} else {
|
1789
|
+
config.options.push(loadedConfig.options);
|
1790
|
+
}
|
1502
1791
|
}
|
1503
1792
|
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1793
|
+
if (isArray) {
|
1794
|
+
loadedConfig.options.forEach((options) => {
|
1795
|
+
config.path.set(options, loadedConfig.path);
|
1796
|
+
});
|
1797
|
+
} else {
|
1798
|
+
config.path.set(loadedConfig.options, loadedConfig.path);
|
1799
|
+
}
|
1800
|
+
});
|
1801
|
+
|
1802
|
+
config.options = config.options.length === 1 ? config.options[0] : config.options;
|
1803
|
+
} else {
|
1804
|
+
// Order defines the priority, in decreasing order
|
1805
|
+
const defaultConfigFiles = [
|
1806
|
+
"webpack.config",
|
1807
|
+
".webpack/webpack.config",
|
1808
|
+
".webpack/webpackfile",
|
1809
|
+
]
|
1810
|
+
.map((filename) =>
|
1811
|
+
// Since .cjs is not available on interpret side add it manually to default config extension list
|
1812
|
+
[...Object.keys(interpret.extensions), ".cjs"].map((ext) => ({
|
1813
|
+
path: path.resolve(filename + ext),
|
1814
|
+
ext: ext,
|
1815
|
+
module: interpret.extensions[ext],
|
1816
|
+
})),
|
1817
|
+
)
|
1818
|
+
.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
|
1819
|
+
|
1820
|
+
let foundDefaultConfigFile;
|
1821
|
+
|
1822
|
+
for (const defaultConfigFile of defaultConfigFiles) {
|
1823
|
+
if (!fs.existsSync(defaultConfigFile.path)) {
|
1824
|
+
continue;
|
1825
|
+
}
|
1510
1826
|
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
...{ path: path.resolve(options.outputPath) },
|
1515
|
-
};
|
1516
|
-
}
|
1827
|
+
foundDefaultConfigFile = defaultConfigFile;
|
1828
|
+
break;
|
1829
|
+
}
|
1517
1830
|
|
1518
|
-
|
1519
|
-
|
1520
|
-
}
|
1831
|
+
if (foundDefaultConfigFile) {
|
1832
|
+
const loadedConfig = await loadConfigByPath(foundDefaultConfigFile.path, options.argv);
|
1521
1833
|
|
1522
|
-
|
1523
|
-
configOptions.devtool = options.devtool;
|
1524
|
-
}
|
1834
|
+
config.options = loadedConfig.options;
|
1525
1835
|
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
}
|
1836
|
+
if (Array.isArray(config.options)) {
|
1837
|
+
config.options.forEach((item) => {
|
1838
|
+
config.path.set(item, loadedConfig.path);
|
1839
|
+
});
|
1840
|
+
} else {
|
1841
|
+
config.path.set(loadedConfig.options, loadedConfig.path);
|
1842
|
+
}
|
1843
|
+
}
|
1844
|
+
}
|
1536
1845
|
|
1537
|
-
|
1538
|
-
|
1539
|
-
}
|
1846
|
+
if (options.configName) {
|
1847
|
+
const notFoundConfigNames = [];
|
1540
1848
|
|
1541
|
-
|
1542
|
-
|
1543
|
-
}
|
1849
|
+
config.options = options.configName.map((configName) => {
|
1850
|
+
let found;
|
1544
1851
|
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1852
|
+
if (Array.isArray(config.options)) {
|
1853
|
+
found = config.options.find((options) => options.name === configName);
|
1854
|
+
} else {
|
1855
|
+
found = config.options.name === configName ? config.options : undefined;
|
1856
|
+
}
|
1548
1857
|
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
...{ stdin: options.watchOptionsStdin },
|
1553
|
-
};
|
1554
|
-
}
|
1858
|
+
if (!found) {
|
1859
|
+
notFoundConfigNames.push(configName);
|
1860
|
+
}
|
1555
1861
|
|
1556
|
-
|
1557
|
-
|
1862
|
+
return found;
|
1863
|
+
});
|
1558
1864
|
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
if (statsForWebpack4) {
|
1569
|
-
if (typeof configOptions.stats === 'undefined') {
|
1570
|
-
configOptions.stats = {};
|
1571
|
-
} else if (typeof configOptions.stats === 'boolean' || typeof configOptions.stats === 'string') {
|
1572
|
-
if (
|
1573
|
-
typeof configOptions.stats === 'string' &&
|
1574
|
-
configOptions.stats !== 'none' &&
|
1575
|
-
configOptions.stats !== 'verbose' &&
|
1576
|
-
configOptions.stats !== 'detailed' &&
|
1577
|
-
configOptions.stats !== 'minimal' &&
|
1578
|
-
configOptions.stats !== 'errors-only' &&
|
1579
|
-
configOptions.stats !== 'errors-warnings'
|
1580
|
-
) {
|
1581
|
-
return configOptions;
|
1582
|
-
}
|
1583
|
-
|
1584
|
-
configOptions.stats = this.webpack.Stats.presetToOptions(configOptions.stats);
|
1585
|
-
}
|
1586
|
-
} else {
|
1587
|
-
if (typeof configOptions.stats === 'undefined') {
|
1588
|
-
configOptions.stats = { preset: 'normal' };
|
1589
|
-
} else if (typeof configOptions.stats === 'boolean') {
|
1590
|
-
configOptions.stats = configOptions.stats ? { preset: 'normal' } : { preset: 'none' };
|
1591
|
-
} else if (typeof configOptions.stats === 'string') {
|
1592
|
-
configOptions.stats = { preset: configOptions.stats };
|
1593
|
-
}
|
1594
|
-
}
|
1865
|
+
if (notFoundConfigNames.length > 0) {
|
1866
|
+
this.logger.error(
|
1867
|
+
notFoundConfigNames
|
1868
|
+
.map((configName) => `Configuration with the name "${configName}" was not found.`)
|
1869
|
+
.join(" "),
|
1870
|
+
);
|
1871
|
+
process.exit(2);
|
1872
|
+
}
|
1873
|
+
}
|
1595
1874
|
|
1596
|
-
|
1875
|
+
if (options.merge) {
|
1876
|
+
const merge = await this.tryRequireThenImport("webpack-merge");
|
1597
1877
|
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1605
|
-
}
|
1606
|
-
// Default
|
1607
|
-
else {
|
1608
|
-
colors = Boolean(this.utils.colors.options.enabled);
|
1609
|
-
}
|
1878
|
+
// we can only merge when there are multiple configurations
|
1879
|
+
// either by passing multiple configs by flags or passing a
|
1880
|
+
// single config exporting an array
|
1881
|
+
if (!Array.isArray(config.options) || config.options.length <= 1) {
|
1882
|
+
this.logger.error("At least two configurations are required for merge.");
|
1883
|
+
process.exit(2);
|
1884
|
+
}
|
1610
1885
|
|
1611
|
-
|
1886
|
+
const mergedConfigPaths = [];
|
1612
1887
|
|
1613
|
-
|
1614
|
-
|
1888
|
+
config.options = config.options.reduce((accumulator, options) => {
|
1889
|
+
const configPath = config.path.get(options);
|
1890
|
+
const mergedOptions = merge(accumulator, options);
|
1615
1891
|
|
1616
|
-
|
1617
|
-
? config.options.map((options) => applyStatsColors(options))
|
1618
|
-
: applyStatsColors(config.options);
|
1892
|
+
mergedConfigPaths.push(configPath);
|
1619
1893
|
|
1620
|
-
return
|
1894
|
+
return mergedOptions;
|
1895
|
+
}, {});
|
1896
|
+
config.path.set(config.options, mergedConfigPaths);
|
1621
1897
|
}
|
1622
1898
|
|
1623
|
-
|
1624
|
-
|
1625
|
-
if (!configOptions.plugins) {
|
1626
|
-
configOptions.plugins = [];
|
1627
|
-
}
|
1899
|
+
return config;
|
1900
|
+
}
|
1628
1901
|
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1902
|
+
async buildConfig(config, options) {
|
1903
|
+
const runFunctionOnEachConfig = (options, fn) => {
|
1904
|
+
if (Array.isArray(options)) {
|
1905
|
+
for (let item of options) {
|
1906
|
+
item = fn(item);
|
1907
|
+
}
|
1908
|
+
} else {
|
1909
|
+
options = fn(options);
|
1910
|
+
}
|
1911
|
+
|
1912
|
+
return options;
|
1913
|
+
};
|
1914
|
+
|
1915
|
+
if (options.analyze) {
|
1916
|
+
if (!this.checkPackageExists("webpack-bundle-analyzer")) {
|
1917
|
+
await this.doInstall("webpack-bundle-analyzer", {
|
1918
|
+
preMessage: () => {
|
1919
|
+
this.logger.error(
|
1920
|
+
`It looks like ${this.colors.yellow("webpack-bundle-analyzer")} is not installed.`,
|
1640
1921
|
);
|
1922
|
+
},
|
1923
|
+
});
|
1641
1924
|
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1925
|
+
this.logger.success(
|
1926
|
+
`${this.colors.yellow("webpack-bundle-analyzer")} was installed successfully.`,
|
1927
|
+
);
|
1928
|
+
}
|
1929
|
+
}
|
1930
|
+
|
1931
|
+
if (typeof options.progress === "string" && options.progress !== "profile") {
|
1932
|
+
this.logger.error(
|
1933
|
+
`'${options.progress}' is an invalid value for the --progress option. Only 'profile' is allowed.`,
|
1934
|
+
);
|
1935
|
+
process.exit(2);
|
1936
|
+
}
|
1647
1937
|
|
1648
|
-
|
1938
|
+
if (typeof options.hot === "string" && options.hot !== "only") {
|
1939
|
+
this.logger.error(
|
1940
|
+
`'${options.hot}' is an invalid value for the --hot option. Use 'only' instead.`,
|
1941
|
+
);
|
1942
|
+
process.exit(2);
|
1649
1943
|
}
|
1650
1944
|
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1945
|
+
const CLIPlugin = await this.tryRequireThenImport("./plugins/CLIPlugin");
|
1946
|
+
|
1947
|
+
const internalBuildConfig = (item) => {
|
1948
|
+
// Output warnings
|
1949
|
+
if (
|
1950
|
+
item.watch &&
|
1951
|
+
options.argv &&
|
1952
|
+
options.argv.env &&
|
1953
|
+
(options.argv.env["WEBPACK_WATCH"] || options.argv.env["WEBPACK_SERVE"])
|
1954
|
+
) {
|
1955
|
+
this.logger.warn(
|
1956
|
+
`No need to use the '${
|
1957
|
+
options.argv.env["WEBPACK_WATCH"] ? "watch" : "serve"
|
1958
|
+
}' command together with '{ watch: true }' configuration, it does not make sense.`,
|
1959
|
+
);
|
1960
|
+
|
1961
|
+
if (options.argv.env["WEBPACK_SERVE"]) {
|
1962
|
+
item.watch = false;
|
1654
1963
|
}
|
1964
|
+
}
|
1655
1965
|
|
1656
|
-
|
1657
|
-
|
1966
|
+
// Apply options
|
1967
|
+
if (this.webpack.cli) {
|
1968
|
+
const args = this.getBuiltInOptions()
|
1969
|
+
.filter((flag) => flag.group === "core")
|
1970
|
+
.reduce((accumulator, flag) => {
|
1971
|
+
accumulator[flag.name] = flag;
|
1658
1972
|
|
1659
|
-
|
1660
|
-
|
1661
|
-
// https://github.com/webpack/webpack/blob/v4.44.2/lib/webpack.js#L90
|
1662
|
-
const ValidationError = this.webpack.ValidationError || this.webpack.WebpackOptionsValidationError;
|
1973
|
+
return accumulator;
|
1974
|
+
}, {});
|
1663
1975
|
|
1664
|
-
|
1665
|
-
|
1976
|
+
const values = Object.keys(options).reduce((accumulator, name) => {
|
1977
|
+
if (name === "argv") {
|
1978
|
+
return accumulator;
|
1979
|
+
}
|
1666
1980
|
|
1667
|
-
|
1668
|
-
this.applyNodeEnv(options);
|
1981
|
+
const kebabName = this.toKebabCase(name);
|
1669
1982
|
|
1670
|
-
|
1983
|
+
if (args[kebabName]) {
|
1984
|
+
accumulator[kebabName] = options[name];
|
1985
|
+
}
|
1671
1986
|
|
1672
|
-
|
1673
|
-
|
1987
|
+
return accumulator;
|
1988
|
+
}, {});
|
1674
1989
|
|
1675
|
-
|
1990
|
+
const problems = this.webpack.cli.processArguments(args, item, values);
|
1676
1991
|
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
? (error, stats) => {
|
1682
|
-
if (error && this.isValidationError(error)) {
|
1683
|
-
this.logger.error(error.message);
|
1684
|
-
process.exit(2);
|
1685
|
-
}
|
1686
|
-
|
1687
|
-
callback(error, stats);
|
1688
|
-
}
|
1689
|
-
: callback,
|
1690
|
-
);
|
1691
|
-
} catch (error) {
|
1692
|
-
if (this.isValidationError(error)) {
|
1693
|
-
this.logger.error(error.message);
|
1694
|
-
} else {
|
1695
|
-
this.logger.error(error);
|
1696
|
-
}
|
1992
|
+
if (problems) {
|
1993
|
+
const groupBy = (xs, key) => {
|
1994
|
+
return xs.reduce((rv, x) => {
|
1995
|
+
(rv[x[key]] = rv[x[key]] || []).push(x);
|
1697
1996
|
|
1698
|
-
|
1699
|
-
|
1997
|
+
return rv;
|
1998
|
+
}, {});
|
1999
|
+
};
|
2000
|
+
const problemsByPath = groupBy(problems, "path");
|
2001
|
+
|
2002
|
+
for (const path in problemsByPath) {
|
2003
|
+
const problems = problemsByPath[path];
|
2004
|
+
|
2005
|
+
problems.forEach((problem) => {
|
2006
|
+
this.logger.error(
|
2007
|
+
`${this.capitalizeFirstLetter(problem.type.replace(/-/g, " "))}${
|
2008
|
+
problem.value ? ` '${problem.value}'` : ""
|
2009
|
+
} for the '--${problem.argument}' option${
|
2010
|
+
problem.index ? ` by index '${problem.index}'` : ""
|
2011
|
+
}`,
|
2012
|
+
);
|
2013
|
+
|
2014
|
+
if (problem.expected) {
|
2015
|
+
this.logger.error(`Expected: '${problem.expected}'`);
|
2016
|
+
}
|
2017
|
+
});
|
2018
|
+
}
|
1700
2019
|
|
1701
|
-
|
1702
|
-
if (compiler && compiler.compiler) {
|
1703
|
-
compiler = compiler.compiler;
|
2020
|
+
process.exit(2);
|
1704
2021
|
}
|
1705
2022
|
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1709
|
-
async buildCommand(options, isWatchCommand) {
|
1710
|
-
let compiler;
|
2023
|
+
// Setup default cache options
|
2024
|
+
if (item.cache && item.cache.type === "filesystem") {
|
2025
|
+
const configPath = config.path.get(item);
|
1711
2026
|
|
1712
|
-
|
1713
|
-
if (
|
1714
|
-
|
1715
|
-
process.exit(2);
|
2027
|
+
if (configPath) {
|
2028
|
+
if (!item.cache.buildDependencies) {
|
2029
|
+
item.cache.buildDependencies = {};
|
1716
2030
|
}
|
1717
2031
|
|
1718
|
-
if (
|
1719
|
-
|
2032
|
+
if (!item.cache.buildDependencies.defaultConfig) {
|
2033
|
+
item.cache.buildDependencies.defaultConfig = [];
|
1720
2034
|
}
|
1721
2035
|
|
1722
|
-
if (
|
1723
|
-
|
2036
|
+
if (Array.isArray(configPath)) {
|
2037
|
+
configPath.forEach((oneOfConfigPath) => {
|
2038
|
+
item.cache.buildDependencies.defaultConfig.push(oneOfConfigPath);
|
2039
|
+
});
|
2040
|
+
} else {
|
2041
|
+
item.cache.buildDependencies.defaultConfig.push(configPath);
|
1724
2042
|
}
|
2043
|
+
}
|
2044
|
+
}
|
2045
|
+
}
|
2046
|
+
|
2047
|
+
// Setup legacy logic for webpack@4
|
2048
|
+
// TODO respect `--entry-reset` in th next major release
|
2049
|
+
// TODO drop in the next major release
|
2050
|
+
if (options.entry) {
|
2051
|
+
item.entry = options.entry;
|
2052
|
+
}
|
2053
|
+
|
2054
|
+
if (options.outputPath) {
|
2055
|
+
item.output = { ...item.output, ...{ path: path.resolve(options.outputPath) } };
|
2056
|
+
}
|
2057
|
+
|
2058
|
+
if (options.target) {
|
2059
|
+
item.target = options.target;
|
2060
|
+
}
|
2061
|
+
|
2062
|
+
if (typeof options.devtool !== "undefined") {
|
2063
|
+
item.devtool = options.devtool;
|
2064
|
+
}
|
2065
|
+
|
2066
|
+
if (options.name) {
|
2067
|
+
item.name = options.name;
|
2068
|
+
}
|
2069
|
+
|
2070
|
+
if (typeof options.stats !== "undefined") {
|
2071
|
+
item.stats = options.stats;
|
2072
|
+
}
|
2073
|
+
|
2074
|
+
if (typeof options.watch !== "undefined") {
|
2075
|
+
item.watch = options.watch;
|
2076
|
+
}
|
2077
|
+
|
2078
|
+
if (typeof options.watchOptionsStdin !== "undefined") {
|
2079
|
+
item.watchOptions = { ...item.watchOptions, ...{ stdin: options.watchOptionsStdin } };
|
2080
|
+
}
|
2081
|
+
|
2082
|
+
if (options.mode) {
|
2083
|
+
item.mode = options.mode;
|
2084
|
+
}
|
2085
|
+
|
2086
|
+
// Respect `process.env.NODE_ENV`
|
2087
|
+
if (
|
2088
|
+
!item.mode &&
|
2089
|
+
process.env &&
|
2090
|
+
process.env.NODE_ENV &&
|
2091
|
+
(process.env.NODE_ENV === "development" ||
|
2092
|
+
process.env.NODE_ENV === "production" ||
|
2093
|
+
process.env.NODE_ENV === "none")
|
2094
|
+
) {
|
2095
|
+
item.mode = process.env.NODE_ENV;
|
2096
|
+
}
|
2097
|
+
|
2098
|
+
// Setup stats
|
2099
|
+
// TODO remove after drop webpack@4
|
2100
|
+
const statsForWebpack4 = this.webpack.Stats && this.webpack.Stats.presetToOptions;
|
2101
|
+
|
2102
|
+
if (statsForWebpack4) {
|
2103
|
+
if (typeof item.stats === "undefined") {
|
2104
|
+
item.stats = {};
|
2105
|
+
} else if (typeof item.stats === "boolean") {
|
2106
|
+
item.stats = this.webpack.Stats.presetToOptions(item.stats);
|
2107
|
+
} else if (
|
2108
|
+
typeof item.stats === "string" &&
|
2109
|
+
(item.stats === "none" ||
|
2110
|
+
item.stats === "verbose" ||
|
2111
|
+
item.stats === "detailed" ||
|
2112
|
+
item.stats === "normal" ||
|
2113
|
+
item.stats === "minimal" ||
|
2114
|
+
item.stats === "errors-only" ||
|
2115
|
+
item.stats === "errors-warnings")
|
2116
|
+
) {
|
2117
|
+
item.stats = this.webpack.Stats.presetToOptions(item.stats);
|
2118
|
+
}
|
2119
|
+
} else {
|
2120
|
+
if (typeof item.stats === "undefined") {
|
2121
|
+
item.stats = { preset: "normal" };
|
2122
|
+
} else if (typeof item.stats === "boolean") {
|
2123
|
+
item.stats = item.stats ? { preset: "normal" } : { preset: "none" };
|
2124
|
+
} else if (typeof item.stats === "string") {
|
2125
|
+
item.stats = { preset: item.stats };
|
2126
|
+
}
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
let colors;
|
2130
|
+
|
2131
|
+
// From arguments
|
2132
|
+
if (typeof this.isColorSupportChanged !== "undefined") {
|
2133
|
+
colors = Boolean(this.isColorSupportChanged);
|
2134
|
+
}
|
2135
|
+
// From stats
|
2136
|
+
else if (typeof item.stats.colors !== "undefined") {
|
2137
|
+
colors = item.stats.colors;
|
2138
|
+
}
|
2139
|
+
// Default
|
2140
|
+
else {
|
2141
|
+
colors = Boolean(this.colors.isColorSupported);
|
2142
|
+
}
|
2143
|
+
|
2144
|
+
// TODO remove after drop webpack v4
|
2145
|
+
if (typeof item.stats === "object" && item.stats !== null) {
|
2146
|
+
item.stats.colors = colors;
|
2147
|
+
}
|
2148
|
+
|
2149
|
+
// Apply CLI plugin
|
2150
|
+
if (!item.plugins) {
|
2151
|
+
item.plugins = [];
|
2152
|
+
}
|
2153
|
+
|
2154
|
+
item.plugins.unshift(
|
2155
|
+
new CLIPlugin({
|
2156
|
+
configPath: config.path.get(item),
|
2157
|
+
helpfulOutput: !options.json,
|
2158
|
+
hot: options.hot,
|
2159
|
+
progress: options.progress,
|
2160
|
+
prefetch: options.prefetch,
|
2161
|
+
analyze: options.analyze,
|
2162
|
+
}),
|
2163
|
+
);
|
2164
|
+
|
2165
|
+
return options;
|
2166
|
+
};
|
2167
|
+
|
2168
|
+
runFunctionOnEachConfig(config.options, internalBuildConfig);
|
2169
|
+
|
2170
|
+
return config;
|
2171
|
+
}
|
2172
|
+
|
2173
|
+
isValidationError(error) {
|
2174
|
+
// https://github.com/webpack/webpack/blob/master/lib/index.js#L267
|
2175
|
+
// https://github.com/webpack/webpack/blob/v4.44.2/lib/webpack.js#L90
|
2176
|
+
const ValidationError =
|
2177
|
+
this.webpack.ValidationError || this.webpack.WebpackOptionsValidationError;
|
2178
|
+
|
2179
|
+
return error instanceof ValidationError || error.name === "ValidationError";
|
2180
|
+
}
|
2181
|
+
|
2182
|
+
async createCompiler(options, callback) {
|
2183
|
+
if (typeof options.nodeEnv === "string") {
|
2184
|
+
process.env.NODE_ENV = options.nodeEnv;
|
2185
|
+
}
|
2186
|
+
|
2187
|
+
let config = await this.loadConfig(options);
|
2188
|
+
config = await this.buildConfig(config, options);
|
1725
2189
|
|
1726
|
-
|
1727
|
-
? { children: compiler.compilers.map((compiler) => (compiler.options ? compiler.options.stats : undefined)) }
|
1728
|
-
: compiler.options
|
1729
|
-
? compiler.options.stats
|
1730
|
-
: undefined;
|
2190
|
+
let compiler;
|
1731
2191
|
|
1732
|
-
|
1733
|
-
|
2192
|
+
try {
|
2193
|
+
compiler = this.webpack(
|
2194
|
+
config.options,
|
2195
|
+
callback
|
2196
|
+
? (error, stats) => {
|
2197
|
+
if (error && this.isValidationError(error)) {
|
2198
|
+
this.logger.error(error.message);
|
2199
|
+
process.exit(2);
|
2200
|
+
}
|
1734
2201
|
|
1735
|
-
|
1736
|
-
statsOptions.colors = statsOptions.children.some((child) => child.colors);
|
2202
|
+
callback(error, stats);
|
1737
2203
|
}
|
2204
|
+
: callback,
|
2205
|
+
);
|
2206
|
+
} catch (error) {
|
2207
|
+
if (this.isValidationError(error)) {
|
2208
|
+
this.logger.error(error.message);
|
2209
|
+
} else {
|
2210
|
+
this.logger.error(error);
|
2211
|
+
}
|
2212
|
+
|
2213
|
+
process.exit(2);
|
2214
|
+
}
|
1738
2215
|
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
process.exit(2);
|
1744
|
-
};
|
1745
|
-
|
1746
|
-
if (options.json === true) {
|
1747
|
-
createJsonStringifyStream(stats.toJson(statsOptions))
|
1748
|
-
.on('error', handleWriteError)
|
1749
|
-
.pipe(process.stdout)
|
1750
|
-
.on('error', handleWriteError)
|
1751
|
-
.on('close', () => process.stdout.write('\n'));
|
1752
|
-
} else {
|
1753
|
-
createJsonStringifyStream(stats.toJson(statsOptions))
|
1754
|
-
.on('error', handleWriteError)
|
1755
|
-
.pipe(fs.createWriteStream(options.json))
|
1756
|
-
.on('error', handleWriteError)
|
1757
|
-
// Use stderr to logging
|
1758
|
-
.on('close', () =>
|
1759
|
-
process.stderr.write(
|
1760
|
-
`[webpack-cli] ${this.utils.colors.green(`stats are successfully stored as json to ${options.json}`)}\n`,
|
1761
|
-
),
|
1762
|
-
);
|
1763
|
-
}
|
1764
|
-
} else {
|
1765
|
-
const printedStats = stats.toString(statsOptions);
|
2216
|
+
// TODO webpack@4 return Watching and MultiWatching instead Compiler and MultiCompiler, remove this after drop webpack@4
|
2217
|
+
if (compiler && compiler.compiler) {
|
2218
|
+
compiler = compiler.compiler;
|
2219
|
+
}
|
1766
2220
|
|
1767
|
-
|
1768
|
-
|
1769
|
-
this.logger.raw(printedStats);
|
1770
|
-
}
|
1771
|
-
}
|
1772
|
-
};
|
2221
|
+
return compiler;
|
2222
|
+
}
|
1773
2223
|
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
2224
|
+
needWatchStdin(compiler) {
|
2225
|
+
if (compiler.compilers) {
|
2226
|
+
return compiler.compilers.some(
|
2227
|
+
(compiler) => compiler.options.watchOptions && compiler.options.watchOptions.stdin,
|
2228
|
+
);
|
2229
|
+
}
|
1778
2230
|
|
1779
|
-
|
2231
|
+
return compiler.options.watchOptions && compiler.options.watchOptions.stdin;
|
2232
|
+
}
|
1780
2233
|
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
2234
|
+
async runWebpack(options, isWatchCommand) {
|
2235
|
+
// eslint-disable-next-line prefer-const
|
2236
|
+
let compiler;
|
2237
|
+
let createJsonStringifyStream;
|
1784
2238
|
|
1785
|
-
|
2239
|
+
if (options.json) {
|
2240
|
+
const jsonExt = await this.tryRequireThenImport("@discoveryjs/json-ext");
|
1786
2241
|
|
1787
|
-
|
1788
|
-
|
1789
|
-
}
|
2242
|
+
createJsonStringifyStream = jsonExt.stringifyStream;
|
2243
|
+
}
|
1790
2244
|
|
1791
|
-
|
1792
|
-
|
2245
|
+
const callback = (error, stats) => {
|
2246
|
+
if (error) {
|
2247
|
+
this.logger.error(error);
|
2248
|
+
process.exit(2);
|
2249
|
+
}
|
2250
|
+
|
2251
|
+
if (stats.hasErrors()) {
|
2252
|
+
process.exitCode = 1;
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
if (!compiler) {
|
2256
|
+
return;
|
2257
|
+
}
|
2258
|
+
|
2259
|
+
const statsOptions = compiler.compilers
|
2260
|
+
? {
|
2261
|
+
children: compiler.compilers.map((compiler) =>
|
2262
|
+
compiler.options ? compiler.options.stats : undefined,
|
2263
|
+
),
|
2264
|
+
}
|
2265
|
+
: compiler.options
|
2266
|
+
? compiler.options.stats
|
2267
|
+
: undefined;
|
2268
|
+
|
2269
|
+
// TODO webpack@4 doesn't support `{ children: [{ colors: true }, { colors: true }] }` for stats
|
2270
|
+
const statsForWebpack4 = this.webpack.Stats && this.webpack.Stats.presetToOptions;
|
2271
|
+
|
2272
|
+
if (compiler.compilers && statsForWebpack4) {
|
2273
|
+
statsOptions.colors = statsOptions.children.some((child) => child.colors);
|
2274
|
+
}
|
2275
|
+
|
2276
|
+
if (options.json && createJsonStringifyStream) {
|
2277
|
+
const handleWriteError = (error) => {
|
2278
|
+
this.logger.error(error);
|
2279
|
+
process.exit(2);
|
2280
|
+
};
|
1793
2281
|
|
1794
|
-
if (
|
1795
|
-
|
1796
|
-
|
2282
|
+
if (options.json === true) {
|
2283
|
+
createJsonStringifyStream(stats.toJson(statsOptions))
|
2284
|
+
.on("error", handleWriteError)
|
2285
|
+
.pipe(process.stdout)
|
2286
|
+
.on("error", handleWriteError)
|
2287
|
+
.on("close", () => process.stdout.write("\n"));
|
2288
|
+
} else {
|
2289
|
+
createJsonStringifyStream(stats.toJson(statsOptions))
|
2290
|
+
.on("error", handleWriteError)
|
2291
|
+
.pipe(fs.createWriteStream(options.json))
|
2292
|
+
.on("error", handleWriteError)
|
2293
|
+
// Use stderr to logging
|
2294
|
+
.on("close", () => {
|
2295
|
+
process.stderr.write(
|
2296
|
+
`[webpack-cli] ${this.colors.green(
|
2297
|
+
`stats are successfully stored as json to ${options.json}`,
|
2298
|
+
)}\n`,
|
2299
|
+
);
|
1797
2300
|
});
|
1798
|
-
process.stdin.resume();
|
1799
2301
|
}
|
2302
|
+
} else {
|
2303
|
+
const printedStats = stats.toString(statsOptions);
|
2304
|
+
|
2305
|
+
// Avoid extra empty line when `stats: 'none'`
|
2306
|
+
if (printedStats) {
|
2307
|
+
this.logger.raw(printedStats);
|
2308
|
+
}
|
2309
|
+
}
|
2310
|
+
};
|
2311
|
+
|
2312
|
+
const env =
|
2313
|
+
isWatchCommand || options.watch
|
2314
|
+
? { WEBPACK_WATCH: true, ...options.env }
|
2315
|
+
: { WEBPACK_BUNDLE: true, WEBPACK_BUILD: true, ...options.env };
|
2316
|
+
|
2317
|
+
options.argv = { ...options, env };
|
2318
|
+
|
2319
|
+
if (isWatchCommand) {
|
2320
|
+
options.watch = true;
|
2321
|
+
}
|
2322
|
+
|
2323
|
+
compiler = await this.createCompiler(options, callback);
|
2324
|
+
|
2325
|
+
if (!compiler) {
|
2326
|
+
return;
|
2327
|
+
}
|
2328
|
+
|
2329
|
+
const isWatch = (compiler) =>
|
2330
|
+
compiler.compilers
|
2331
|
+
? compiler.compilers.some((compiler) => compiler.options.watch)
|
2332
|
+
: compiler.options.watch;
|
2333
|
+
|
2334
|
+
if (isWatch(compiler) && this.needWatchStdin(compiler)) {
|
2335
|
+
process.stdin.on("end", () => {
|
2336
|
+
process.exit(0);
|
2337
|
+
});
|
2338
|
+
process.stdin.resume();
|
1800
2339
|
}
|
2340
|
+
}
|
1801
2341
|
}
|
1802
2342
|
|
1803
2343
|
module.exports = WebpackCLI;
|