mathjs 10.4.1 → 10.4.2

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