@rsbuild/core 1.0.0 → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/README.md +1 -1
  2. package/bin/rsbuild.js +4 -2
  3. package/compiled/autoprefixer/index.d.ts +95 -0
  4. package/compiled/autoprefixer/index.js +7000 -0
  5. package/compiled/autoprefixer/license +20 -0
  6. package/compiled/autoprefixer/package.json +1 -0
  7. package/compiled/browserslist/index.d.ts +201 -0
  8. package/compiled/browserslist/index.js +1867 -0
  9. package/compiled/browserslist/license +20 -0
  10. package/compiled/browserslist/package.json +1 -0
  11. package/compiled/chokidar/index.d.ts +198 -0
  12. package/compiled/chokidar/index.js +5139 -0
  13. package/compiled/chokidar/license +21 -0
  14. package/compiled/chokidar/package.json +1 -0
  15. package/compiled/commander/{typings/index.d.ts → index.d.ts} +184 -102
  16. package/compiled/commander/index.js +2190 -1
  17. package/compiled/commander/package.json +1 -1
  18. package/compiled/connect/index.d.ts +90 -0
  19. package/compiled/connect/index.js +1240 -0
  20. package/compiled/connect/license +25 -0
  21. package/compiled/connect/package.json +1 -0
  22. package/compiled/connect-history-api-fallback/index.js +149 -1
  23. package/compiled/connect-history-api-fallback/package.json +1 -1
  24. package/compiled/css-loader/api.js +85 -0
  25. package/compiled/css-loader/getUrl.js +26 -0
  26. package/compiled/css-loader/index.d.ts +1 -0
  27. package/compiled/css-loader/index.js +7541 -0
  28. package/compiled/css-loader/license +20 -0
  29. package/compiled/css-loader/noSourceMaps.js +5 -0
  30. package/compiled/css-loader/package.json +1 -0
  31. package/compiled/css-loader/semver.js +1 -0
  32. package/compiled/css-loader/sourceMaps.js +16 -0
  33. package/compiled/dotenv/{lib/main.d.ts → index.d.ts} +25 -24
  34. package/compiled/dotenv/index.js +336 -1
  35. package/compiled/dotenv/package.json +1 -1
  36. package/compiled/dotenv-expand/index.d.ts +52 -0
  37. package/compiled/dotenv-expand/index.js +105 -1
  38. package/compiled/dotenv-expand/package.json +1 -1
  39. package/compiled/html-rspack-plugin/default_index.ejs +9 -0
  40. package/compiled/html-rspack-plugin/index.d.ts +284 -0
  41. package/compiled/html-rspack-plugin/index.js +1574 -0
  42. package/compiled/html-rspack-plugin/license +20 -0
  43. package/compiled/html-rspack-plugin/loader.js +173 -0
  44. package/compiled/html-rspack-plugin/package.json +1 -0
  45. package/compiled/http-compression/index.js +134 -1
  46. package/compiled/http-compression/package.json +1 -1
  47. package/compiled/http-proxy-middleware/index.d.ts +315 -0
  48. package/compiled/http-proxy-middleware/index.js +5251 -0
  49. package/compiled/http-proxy-middleware/license +22 -0
  50. package/compiled/http-proxy-middleware/package.json +1 -0
  51. package/compiled/jiti/index.d.ts +1 -0
  52. package/compiled/jiti/index.js +254 -1748
  53. package/compiled/jiti/package.json +1 -1
  54. package/compiled/launch-editor-middleware/index.d.ts +1 -0
  55. package/compiled/launch-editor-middleware/index.js +696 -0
  56. package/compiled/launch-editor-middleware/license +21 -0
  57. package/compiled/launch-editor-middleware/package.json +1 -0
  58. package/compiled/on-finished/index.d.ts +13 -0
  59. package/compiled/on-finished/index.js +197 -0
  60. package/compiled/on-finished/license +23 -0
  61. package/compiled/on-finished/package.json +1 -0
  62. package/compiled/open/index.d.ts +1 -153
  63. package/compiled/open/index.js +409 -1
  64. package/compiled/open/package.json +1 -1
  65. package/compiled/picocolors/index.d.ts +34 -0
  66. package/compiled/picocolors/index.js +97 -0
  67. package/compiled/picocolors/license +15 -0
  68. package/compiled/picocolors/package.json +1 -0
  69. package/compiled/postcss-load-config/index.d.ts +1 -0
  70. package/compiled/postcss-load-config/index.js +751 -0
  71. package/compiled/postcss-load-config/license +20 -0
  72. package/compiled/postcss-load-config/package.json +1 -0
  73. package/compiled/postcss-loader/index.d.ts +1 -0
  74. package/compiled/postcss-loader/index.js +8423 -0
  75. package/compiled/postcss-loader/license +20 -0
  76. package/compiled/postcss-loader/package.json +1 -0
  77. package/compiled/postcss-loader/semver.js +1 -0
  78. package/compiled/postcss-value-parser/index.d.ts +1 -0
  79. package/compiled/postcss-value-parser/index.js +495 -0
  80. package/compiled/postcss-value-parser/license +22 -0
  81. package/compiled/postcss-value-parser/package.json +1 -0
  82. package/compiled/rslog/index.d.ts +66 -0
  83. package/compiled/rslog/index.js +334 -0
  84. package/compiled/rslog/license +21 -0
  85. package/compiled/rslog/package.json +1 -0
  86. package/compiled/rspack-chain/index.d.ts +601 -0
  87. package/compiled/rspack-chain/index.js +1702 -0
  88. package/compiled/rspack-chain/license +373 -0
  89. package/compiled/rspack-chain/package.json +1 -0
  90. package/compiled/rspack-manifest-plugin/index.d.ts +1 -0
  91. package/compiled/rspack-manifest-plugin/index.js +5884 -0
  92. package/compiled/rspack-manifest-plugin/license +21 -0
  93. package/compiled/rspack-manifest-plugin/package.json +1 -0
  94. package/compiled/sirv/index.d.ts +1 -0
  95. package/compiled/sirv/index.js +701 -1
  96. package/compiled/sirv/package.json +1 -1
  97. package/compiled/style-loader/index.d.ts +1 -0
  98. package/compiled/style-loader/index.js +427 -0
  99. package/compiled/style-loader/license +20 -0
  100. package/compiled/style-loader/package.json +1 -0
  101. package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
  102. package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
  103. package/compiled/style-loader/runtime/insertBySelector.js +34 -0
  104. package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
  105. package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
  106. package/compiled/style-loader/runtime/isOldIE.js +17 -0
  107. package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
  108. package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
  109. package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
  110. package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
  111. package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
  112. package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
  113. package/compiled/webpack-bundle-analyzer/index.d.ts +160 -0
  114. package/compiled/webpack-bundle-analyzer/index.js +13352 -0
  115. package/compiled/webpack-bundle-analyzer/license +20 -0
  116. package/compiled/webpack-bundle-analyzer/package.json +1 -0
  117. package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
  118. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
  119. package/compiled/webpack-dev-middleware/index.d.ts +1 -0
  120. package/compiled/webpack-dev-middleware/index.js +5672 -0
  121. package/compiled/webpack-dev-middleware/license +20 -0
  122. package/compiled/webpack-dev-middleware/package.json +1 -0
  123. package/compiled/webpack-dev-middleware/schema-utils.js +1 -0
  124. package/compiled/webpack-merge/index.d.ts +31 -0
  125. package/compiled/webpack-merge/index.js +1200 -0
  126. package/compiled/webpack-merge/license +20 -0
  127. package/compiled/webpack-merge/package.json +1 -0
  128. package/compiled/ws/index.d.ts +402 -0
  129. package/compiled/ws/index.js +3153 -0
  130. package/compiled/ws/license +20 -0
  131. package/compiled/ws/package.json +1 -0
  132. package/dist/client/hmr.js +249 -405
  133. package/dist/client/overlay.js +221 -0
  134. package/dist/{rspack-provider/plugins/basic.js → ignoreCssLoader.cjs} +12 -14
  135. package/dist/index.cjs +9004 -0
  136. package/dist/index.js +9075 -16
  137. package/dist/transformLoader.cjs +54 -0
  138. package/dist/transformRawLoader.cjs +65 -0
  139. package/dist-types/cli/commands.d.ts +20 -0
  140. package/dist-types/cli/init.d.ts +6 -0
  141. package/dist-types/cli/prepare.d.ts +1 -0
  142. package/dist-types/client/format.d.ts +5 -0
  143. package/dist-types/client/hmr.d.ts +1 -0
  144. package/dist-types/client/overlay.d.ts +1 -0
  145. package/dist-types/config.d.ts +63 -0
  146. package/dist-types/configChain.d.ts +162 -0
  147. package/dist-types/constants.d.ts +32 -0
  148. package/dist-types/createContext.d.ts +11 -0
  149. package/dist-types/createRsbuild.d.ts +2 -0
  150. package/dist-types/helpers/path.d.ts +10 -0
  151. package/dist-types/helpers.d.ts +57 -0
  152. package/dist-types/index.d.ts +24 -0
  153. package/dist-types/initHooks.d.ts +23 -0
  154. package/dist-types/initPlugins.d.ts +6 -0
  155. package/dist-types/internal.d.ts +20 -0
  156. package/dist-types/loadEnv.d.ts +27 -0
  157. package/dist-types/loader/ignoreCssLoader.d.ts +2 -0
  158. package/dist-types/loader/transformLoader.d.ts +5 -0
  159. package/dist-types/loader/transformRawLoader.d.ts +3 -0
  160. package/dist-types/logger.d.ts +4 -0
  161. package/dist-types/mergeConfig.d.ts +2 -0
  162. package/dist-types/package.json +1 -0
  163. package/dist-types/pluginHelper.d.ts +12 -0
  164. package/dist-types/pluginManager.d.ts +7 -0
  165. package/{dist → dist-types}/plugins/asset.d.ts +1 -1
  166. package/dist-types/plugins/basic.d.ts +5 -0
  167. package/dist-types/plugins/bundleAnalyzer.d.ts +2 -0
  168. package/dist-types/plugins/cache.d.ts +2 -0
  169. package/dist-types/plugins/cleanOutput.d.ts +2 -0
  170. package/dist-types/plugins/css.d.ts +10 -0
  171. package/dist-types/plugins/define.d.ts +2 -0
  172. package/dist-types/plugins/entry.d.ts +2 -0
  173. package/dist-types/plugins/externals.d.ts +2 -0
  174. package/{dist → dist-types}/plugins/fileSize.d.ts +1 -1
  175. package/dist-types/plugins/html.d.ts +9 -0
  176. package/dist-types/plugins/inlineChunk.d.ts +2 -0
  177. package/dist-types/plugins/lazyCompilation.d.ts +2 -0
  178. package/dist-types/plugins/manifest.d.ts +2 -0
  179. package/dist-types/plugins/minimize.d.ts +10 -0
  180. package/dist-types/plugins/moduleFederation.d.ts +2 -0
  181. package/dist-types/plugins/moment.d.ts +2 -0
  182. package/dist-types/plugins/nodeAddons.d.ts +2 -0
  183. package/dist-types/plugins/nonce.d.ts +2 -0
  184. package/{dist/plugins/startUrl.d.ts → dist-types/plugins/open.d.ts} +2 -1
  185. package/dist-types/plugins/output.d.ts +2 -0
  186. package/{dist → dist-types}/plugins/performance.d.ts +1 -1
  187. package/dist-types/plugins/progress.d.ts +2 -0
  188. package/dist-types/plugins/resolve.d.ts +2 -0
  189. package/dist-types/plugins/resourceHints.d.ts +2 -0
  190. package/dist-types/plugins/rsdoctor.d.ts +2 -0
  191. package/dist-types/plugins/rspackProfile.d.ts +2 -0
  192. package/dist-types/plugins/server.d.ts +2 -0
  193. package/dist-types/plugins/splitChunks.d.ts +4 -0
  194. package/dist-types/plugins/sri.d.ts +2 -0
  195. package/dist-types/plugins/swc.d.ts +7 -0
  196. package/dist-types/plugins/target.d.ts +2 -0
  197. package/dist-types/plugins/wasm.d.ts +2 -0
  198. package/dist-types/provider/build.d.ts +3 -0
  199. package/dist-types/provider/createCompiler.d.ts +33 -0
  200. package/dist-types/provider/initConfigs.d.ts +10 -0
  201. package/dist-types/provider/inspectConfig.d.ts +6 -0
  202. package/dist-types/provider/provider.d.ts +2 -0
  203. package/dist-types/provider/rspackConfig.d.ts +8 -0
  204. package/dist-types/rspack/HtmlAppIconPlugin.d.ts +13 -0
  205. package/dist-types/rspack/HtmlBasicPlugin.d.ts +37 -0
  206. package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +29 -0
  207. package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +29 -0
  208. package/dist-types/rspack/preload/helpers/determineAsValue.d.ts +22 -0
  209. package/dist-types/rspack/preload/helpers/doesChunkBelongToHtml.d.ts +29 -0
  210. package/dist-types/rspack/preload/helpers/extractChunks.d.ts +28 -0
  211. package/dist-types/rspack/preload/helpers/index.d.ts +4 -0
  212. package/dist-types/rspack/preload/helpers/type.d.ts +13 -0
  213. package/dist-types/server/compilerDevMiddleware.d.ts +30 -0
  214. package/dist-types/server/devMiddleware.d.ts +39 -0
  215. package/dist-types/server/devServer.d.ts +50 -0
  216. package/dist-types/server/environment.d.ts +7 -0
  217. package/dist-types/server/getDevMiddlewares.d.ts +25 -0
  218. package/dist-types/server/helper.d.ts +59 -0
  219. package/dist-types/server/httpServer.d.ts +8 -0
  220. package/dist-types/server/middlewares.d.ts +22 -0
  221. package/dist-types/server/prodServer.d.ts +25 -0
  222. package/dist-types/server/proxy.d.ts +6 -0
  223. package/dist-types/server/restart.d.ts +9 -0
  224. package/dist-types/server/runner/asModule.d.ts +2 -0
  225. package/dist-types/server/runner/basic.d.ts +25 -0
  226. package/dist-types/server/runner/cjs.d.ts +10 -0
  227. package/dist-types/server/runner/esm.d.ts +6 -0
  228. package/dist-types/server/runner/index.d.ts +8 -0
  229. package/dist-types/server/runner/type.d.ts +36 -0
  230. package/dist-types/server/socketServer.d.ts +22 -0
  231. package/dist-types/server/watchFiles.d.ts +11 -0
  232. package/dist-types/types/config/dev.d.ts +88 -0
  233. package/dist-types/types/config/html.d.ts +107 -0
  234. package/dist-types/types/config/index.d.ts +134 -0
  235. package/dist-types/types/config/output.d.ts +297 -0
  236. package/dist-types/types/config/performance.d.ts +123 -0
  237. package/dist-types/types/config/security.d.ts +18 -0
  238. package/dist-types/types/config/server.d.ts +106 -0
  239. package/dist-types/types/config/source.d.ts +79 -0
  240. package/dist-types/types/config/tools.d.ts +85 -0
  241. package/dist-types/types/context.d.ts +38 -0
  242. package/dist-types/types/hooks.d.ts +125 -0
  243. package/dist-types/types/index.d.ts +9 -0
  244. package/dist-types/types/plugin.d.ts +197 -0
  245. package/dist-types/types/rsbuild.d.ts +109 -0
  246. package/dist-types/types/rspack.d.ts +28 -0
  247. package/dist-types/types/stats.d.ts +17 -0
  248. package/dist-types/types/thirdParty.d.ts +168 -0
  249. package/dist-types/types/utils.d.ts +13 -0
  250. package/package.json +73 -43
  251. package/types.d.ts +36 -4
  252. package/compiled/dotenv-expand/lib/main.d.ts +0 -29
  253. package/compiled/jiti/types/jiti.d.ts +0 -19
  254. package/compiled/jiti/types/types.d.ts +0 -31
  255. package/compiled/open/license +0 -9
  256. package/compiled/sirv/sirv.d.ts +0 -27
  257. package/dist/cli/commands.d.ts +0 -20
  258. package/dist/cli/commands.js +0 -131
  259. package/dist/cli/config.d.ts +0 -9
  260. package/dist/cli/config.js +0 -110
  261. package/dist/cli/prepare.d.ts +0 -1
  262. package/dist/cli/prepare.js +0 -43
  263. package/dist/client/hmr/createSocketUrl.d.ts +0 -16
  264. package/dist/client/hmr/index.d.ts +0 -1
  265. package/dist/createRsbuild.d.ts +0 -10
  266. package/dist/createRsbuild.js +0 -100
  267. package/dist/index.d.ts +0 -10
  268. package/dist/loadEnv.d.ts +0 -5
  269. package/dist/loadEnv.js +0 -58
  270. package/dist/plugins/asset.js +0 -73
  271. package/dist/plugins/bundleAnalyzer.d.ts +0 -2
  272. package/dist/plugins/bundleAnalyzer.js +0 -59
  273. package/dist/plugins/cache.d.ts +0 -2
  274. package/dist/plugins/cache.js +0 -112
  275. package/dist/plugins/cleanOutput.d.ts +0 -2
  276. package/dist/plugins/cleanOutput.js +0 -47
  277. package/dist/plugins/define.d.ts +0 -2
  278. package/dist/plugins/define.js +0 -47
  279. package/dist/plugins/devtool.d.ts +0 -2
  280. package/dist/plugins/devtool.js +0 -46
  281. package/dist/plugins/entry.d.ts +0 -2
  282. package/dist/plugins/entry.js +0 -53
  283. package/dist/plugins/externals.d.ts +0 -2
  284. package/dist/plugins/externals.js +0 -48
  285. package/dist/plugins/fileSize.js +0 -158
  286. package/dist/plugins/html.d.ts +0 -15
  287. package/dist/plugins/html.js +0 -270
  288. package/dist/plugins/index.d.ts +0 -2
  289. package/dist/plugins/index.js +0 -61
  290. package/dist/plugins/inlineChunk.d.ts +0 -2
  291. package/dist/plugins/inlineChunk.js +0 -76
  292. package/dist/plugins/moment.d.ts +0 -2
  293. package/dist/plugins/moment.js +0 -68
  294. package/dist/plugins/networkPerformance.d.ts +0 -2
  295. package/dist/plugins/networkPerformance.js +0 -58
  296. package/dist/plugins/nodeAddons.d.ts +0 -2
  297. package/dist/plugins/nodeAddons.js +0 -70
  298. package/dist/plugins/performance.js +0 -63
  299. package/dist/plugins/preloadOrPrefetch.d.ts +0 -2
  300. package/dist/plugins/preloadOrPrefetch.js +0 -61
  301. package/dist/plugins/splitChunks.d.ts +0 -2
  302. package/dist/plugins/splitChunks.js +0 -228
  303. package/dist/plugins/startUrl.js +0 -148
  304. package/dist/plugins/target.d.ts +0 -2
  305. package/dist/plugins/target.js +0 -53
  306. package/dist/plugins/toml.d.ts +0 -2
  307. package/dist/plugins/toml.js +0 -36
  308. package/dist/plugins/wasm.d.ts +0 -2
  309. package/dist/plugins/wasm.js +0 -51
  310. package/dist/plugins/yaml.d.ts +0 -2
  311. package/dist/plugins/yaml.js +0 -36
  312. package/dist/rspack-plugins/HtmlBasicPlugin.d.ts +0 -19
  313. package/dist/rspack-plugins/HtmlBasicPlugin.js +0 -87
  314. package/dist/rspack-plugins/RemoveCssSourcemapPlugin.d.ts +0 -8
  315. package/dist/rspack-plugins/RemoveCssSourcemapPlugin.js +0 -51
  316. package/dist/rspack-provider/config.d.ts +0 -9
  317. package/dist/rspack-provider/config.js +0 -47
  318. package/dist/rspack-provider/core/build.d.ts +0 -19
  319. package/dist/rspack-provider/core/build.js +0 -79
  320. package/dist/rspack-provider/core/createCompiler.d.ts +0 -11
  321. package/dist/rspack-provider/core/createCompiler.js +0 -112
  322. package/dist/rspack-provider/core/createContext.d.ts +0 -13
  323. package/dist/rspack-provider/core/createContext.js +0 -133
  324. package/dist/rspack-provider/core/devMiddleware.d.ts +0 -3
  325. package/dist/rspack-provider/core/devMiddleware.js +0 -65
  326. package/dist/rspack-provider/core/initConfigs.d.ts +0 -14
  327. package/dist/rspack-provider/core/initConfigs.js +0 -78
  328. package/dist/rspack-provider/core/initHooks.d.ts +0 -19
  329. package/dist/rspack-provider/core/initHooks.js +0 -45
  330. package/dist/rspack-provider/core/initPlugins.d.ts +0 -9
  331. package/dist/rspack-provider/core/initPlugins.js +0 -87
  332. package/dist/rspack-provider/core/inspectConfig.d.ts +0 -19
  333. package/dist/rspack-provider/core/inspectConfig.js +0 -81
  334. package/dist/rspack-provider/core/rspackConfig.d.ts +0 -9
  335. package/dist/rspack-provider/core/rspackConfig.js +0 -132
  336. package/dist/rspack-provider/css-modules-typescript-pre-loader/index.d.ts +0 -6
  337. package/dist/rspack-provider/css-modules-typescript-pre-loader/index.js +0 -84
  338. package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.d.ts +0 -11
  339. package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.js +0 -67
  340. package/dist/rspack-provider/index.d.ts +0 -5
  341. package/dist/rspack-provider/index.js +0 -38
  342. package/dist/rspack-provider/plugins/basic.d.ts +0 -5
  343. package/dist/rspack-provider/plugins/css.d.ts +0 -29
  344. package/dist/rspack-provider/plugins/css.js +0 -199
  345. package/dist/rspack-provider/plugins/hmr.d.ts +0 -2
  346. package/dist/rspack-provider/plugins/hmr.js +0 -38
  347. package/dist/rspack-provider/plugins/less.d.ts +0 -2
  348. package/dist/rspack-provider/plugins/less.js +0 -78
  349. package/dist/rspack-provider/plugins/minimize.d.ts +0 -5
  350. package/dist/rspack-provider/plugins/minimize.js +0 -77
  351. package/dist/rspack-provider/plugins/output.d.ts +0 -2
  352. package/dist/rspack-provider/plugins/output.js +0 -65
  353. package/dist/rspack-provider/plugins/progress.d.ts +0 -2
  354. package/dist/rspack-provider/plugins/progress.js +0 -61
  355. package/dist/rspack-provider/plugins/resolve.d.ts +0 -2
  356. package/dist/rspack-provider/plugins/resolve.js +0 -54
  357. package/dist/rspack-provider/plugins/rspackProfile.d.ts +0 -5
  358. package/dist/rspack-provider/plugins/rspackProfile.js +0 -107
  359. package/dist/rspack-provider/plugins/sass.d.ts +0 -2
  360. package/dist/rspack-provider/plugins/sass.js +0 -83
  361. package/dist/rspack-provider/plugins/swc.d.ts +0 -7
  362. package/dist/rspack-provider/plugins/swc.js +0 -147
  363. package/dist/rspack-provider/plugins/transition.d.ts +0 -5
  364. package/dist/rspack-provider/plugins/transition.js +0 -42
  365. package/dist/rspack-provider/provider.d.ts +0 -8
  366. package/dist/rspack-provider/provider.js +0 -117
  367. package/dist/rspack-provider/shared.d.ts +0 -8
  368. package/dist/rspack-provider/shared.js +0 -116
  369. package/dist/server/dev-middleware/index.d.ts +0 -24
  370. package/dist/server/dev-middleware/index.js +0 -91
  371. package/dist/server/dev-middleware/socketServer.d.ts +0 -22
  372. package/dist/server/dev-middleware/socketServer.js +0 -164
  373. package/dist/server/devServer.d.ts +0 -34
  374. package/dist/server/devServer.js +0 -252
  375. package/dist/server/index.d.ts +0 -2
  376. package/dist/server/index.js +0 -31
  377. package/dist/server/middlewares.d.ts +0 -9
  378. package/dist/server/middlewares.js +0 -115
  379. package/dist/server/prodServer.d.ts +0 -33
  380. package/dist/server/prodServer.js +0 -197
  381. package/dist/server/proxy.d.ts +0 -9
  382. package/dist/server/proxy.js +0 -90
  383. package/dist/server/restart.d.ts +0 -11
  384. package/dist/server/restart.js +0 -65
  385. package/dist/types.d.ts +0 -19
  386. package/dist/types.js +0 -16
  387. package/static/template.html +0 -7
@@ -1 +1 @@
1
- {"name":"sirv","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"version":"2.0.3","license":"MIT","types":"sirv.d.ts"}
1
+ {"name":"sirv","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"version":"2.0.4","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1 @@
1
+ export = any;
@@ -0,0 +1,427 @@
1
+ (() => {
2
+ "use strict";
3
+ var __webpack_modules__ = {
4
+ 19: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ const loader = __nccwpck_require__(677);
6
+ module.exports = loader.default;
7
+ },
8
+ 677: (__unused_webpack_module, exports, __nccwpck_require__) => {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports["default"] = void 0;
11
+ var _path = _interopRequireDefault(__nccwpck_require__(17));
12
+ var _utils = __nccwpck_require__(54);
13
+ var _options = _interopRequireDefault(__nccwpck_require__(65));
14
+ function _interopRequireDefault(obj) {
15
+ return obj && obj.__esModule ? obj : { default: obj };
16
+ }
17
+ const loader = function loader(content) {
18
+ if (
19
+ this._compiler &&
20
+ this._compiler.options &&
21
+ this._compiler.options.experiments &&
22
+ this._compiler.options.experiments.css &&
23
+ this._module &&
24
+ (this._module.type === "css" ||
25
+ this._module.type === "css/global" ||
26
+ this._module.type === "css/module" ||
27
+ this._module.type === "css/auto")
28
+ ) {
29
+ return content;
30
+ }
31
+ };
32
+ loader.pitch = function pitch(request) {
33
+ if (
34
+ this._compiler &&
35
+ this._compiler.options &&
36
+ this._compiler.options.experiments &&
37
+ this._compiler.options.experiments.css &&
38
+ this._module &&
39
+ (this._module.type === "css" ||
40
+ this._module.type === "css/global" ||
41
+ this._module.type === "css/module" ||
42
+ this._module.type === "css/auto")
43
+ ) {
44
+ this.emitWarning(
45
+ new Error(
46
+ 'You can\'t use `experiments.css` (`experiments.futureDefaults` enable built-in CSS support by default) and `style-loader` together, please set `experiments.css` to `false` or set `{ type: "javascript/auto" }` for rules with `style-loader` in your webpack config (now `style-loader` does nothing).',
47
+ ),
48
+ );
49
+ return;
50
+ }
51
+ const options = this.getOptions(_options.default);
52
+ const injectType = options.injectType || "styleTag";
53
+ const esModule =
54
+ typeof options.esModule !== "undefined" ? options.esModule : true;
55
+ const runtimeOptions = {};
56
+ if (options.attributes) {
57
+ runtimeOptions.attributes = options.attributes;
58
+ }
59
+ if (options.base) {
60
+ runtimeOptions.base = options.base;
61
+ }
62
+ const insertType =
63
+ typeof options.insert === "function"
64
+ ? "function"
65
+ : options.insert && _path.default.isAbsolute(options.insert)
66
+ ? "module-path"
67
+ : "selector";
68
+ const styleTagTransformType =
69
+ typeof options.styleTagTransform === "function"
70
+ ? "function"
71
+ : options.styleTagTransform &&
72
+ _path.default.isAbsolute(options.styleTagTransform)
73
+ ? "module-path"
74
+ : "default";
75
+ switch (injectType) {
76
+ case "linkTag": {
77
+ const hmrCode = this.hot
78
+ ? (0, _utils.getLinkHmrCode)(esModule, this, request)
79
+ : "";
80
+ return `\n ${(0, _utils.getImportLinkAPICode)(esModule, this)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getImportLinkContentCode)(esModule, this, request)}\n ${esModule ? "" : `content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(runtimeOptions)};\n\n${(0, _utils.getInsertOptionCode)(insertType, options)}\n\nvar update = API(content, options);\n\n${hmrCode}\n\n${esModule ? "export default {}" : ""}`;
81
+ }
82
+ case "lazyStyleTag":
83
+ case "lazyAutoStyleTag":
84
+ case "lazySingletonStyleTag": {
85
+ const isSingleton = injectType === "lazySingletonStyleTag";
86
+ const isAuto = injectType === "lazyAutoStyleTag";
87
+ const hmrCode = this.hot
88
+ ? (0, _utils.getStyleHmrCode)(esModule, this, request, true)
89
+ : "";
90
+ return `\n var exported = {};\n\n ${(0, _utils.getImportStyleAPICode)(esModule, this)}\n ${(0, _utils.getImportStyleDomAPICode)(esModule, this, isSingleton, isAuto)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getSetAttributesCode)(esModule, this, options)}\n ${(0, _utils.getImportInsertStyleElementCode)(esModule, this)}\n ${(0, _utils.getStyleTagTransformFnCode)(esModule, this, options, isSingleton, styleTagTransformType)}\n ${(0, _utils.getImportStyleContentCode)(esModule, this, request)}\n ${isAuto ? (0, _utils.getImportIsOldIECode)(esModule, this) : ""}\n ${esModule ? `if (content && content.locals) {\n exported.locals = content.locals;\n }\n ` : `content = content.__esModule ? content.default : content;\n\n exported.locals = content.locals || {};`}\n\nvar refs = 0;\nvar update;\nvar options = ${JSON.stringify(runtimeOptions)};\n\n${(0, _utils.getStyleTagTransformFn)(options, isSingleton)};\noptions.setAttributes = setAttributes;\n${(0, _utils.getInsertOptionCode)(insertType, options)}\noptions.domAPI = ${(0, _utils.getdomAPI)(isAuto)};\noptions.insertStyleElement = insertStyleElement;\n\nexported.use = function(insertOptions) {\n options.options = insertOptions || {};\n\n if (!(refs++)) {\n update = API(content, options);\n }\n\n return exported;\n};\nexported.unuse = function() {\n if (refs > 0 && !--refs) {\n update();\n update = null;\n }\n};\n\n${hmrCode}\n\n${(0, _utils.getExportLazyStyleCode)(esModule, this, request)}\n`;
91
+ }
92
+ case "styleTag":
93
+ case "autoStyleTag":
94
+ case "singletonStyleTag":
95
+ default: {
96
+ const isSingleton = injectType === "singletonStyleTag";
97
+ const isAuto = injectType === "autoStyleTag";
98
+ const hmrCode = this.hot
99
+ ? (0, _utils.getStyleHmrCode)(esModule, this, request, false)
100
+ : "";
101
+ return `\n ${(0, _utils.getImportStyleAPICode)(esModule, this)}\n ${(0, _utils.getImportStyleDomAPICode)(esModule, this, isSingleton, isAuto)}\n ${(0, _utils.getImportInsertBySelectorCode)(esModule, this, insertType, options)}\n ${(0, _utils.getSetAttributesCode)(esModule, this, options)}\n ${(0, _utils.getImportInsertStyleElementCode)(esModule, this)}\n ${(0, _utils.getStyleTagTransformFnCode)(esModule, this, options, isSingleton, styleTagTransformType)}\n ${(0, _utils.getImportStyleContentCode)(esModule, this, request)}\n ${isAuto ? (0, _utils.getImportIsOldIECode)(esModule, this) : ""}\n ${esModule ? "" : `content = content.__esModule ? content.default : content;`}\n\nvar options = ${JSON.stringify(runtimeOptions)};\n\n${(0, _utils.getStyleTagTransformFn)(options, isSingleton)};\noptions.setAttributes = setAttributes;\n${(0, _utils.getInsertOptionCode)(insertType, options)}\noptions.domAPI = ${(0, _utils.getdomAPI)(isAuto)};\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n${hmrCode}\n\n${(0, _utils.getExportStyleCode)(esModule, this, request)}\n`;
102
+ }
103
+ }
104
+ };
105
+ var _default = (exports["default"] = loader);
106
+ },
107
+ 418: (module) => {
108
+ function isEqualLocals(a, b, isNamedExport) {
109
+ if ((!a && b) || (a && !b)) {
110
+ return false;
111
+ }
112
+ var p;
113
+ for (p in a) {
114
+ if (isNamedExport && p === "default") {
115
+ continue;
116
+ }
117
+ if (a[p] !== b[p]) {
118
+ return false;
119
+ }
120
+ }
121
+ for (p in b) {
122
+ if (isNamedExport && p === "default") {
123
+ continue;
124
+ }
125
+ if (!a[p]) {
126
+ return false;
127
+ }
128
+ }
129
+ return true;
130
+ }
131
+ module.exports = isEqualLocals;
132
+ },
133
+ 54: (__unused_webpack_module, exports, __nccwpck_require__) => {
134
+ Object.defineProperty(exports, "__esModule", { value: true });
135
+ exports.getExportLazyStyleCode = getExportLazyStyleCode;
136
+ exports.getExportStyleCode = getExportStyleCode;
137
+ exports.getImportInsertBySelectorCode = getImportInsertBySelectorCode;
138
+ exports.getImportInsertStyleElementCode = getImportInsertStyleElementCode;
139
+ exports.getImportIsOldIECode = getImportIsOldIECode;
140
+ exports.getImportLinkAPICode = getImportLinkAPICode;
141
+ exports.getImportLinkContentCode = getImportLinkContentCode;
142
+ exports.getImportStyleAPICode = getImportStyleAPICode;
143
+ exports.getImportStyleContentCode = getImportStyleContentCode;
144
+ exports.getImportStyleDomAPICode = getImportStyleDomAPICode;
145
+ exports.getInsertOptionCode = getInsertOptionCode;
146
+ exports.getLinkHmrCode = getLinkHmrCode;
147
+ exports.getSetAttributesCode = getSetAttributesCode;
148
+ exports.getStyleHmrCode = getStyleHmrCode;
149
+ exports.getStyleTagTransformFn = getStyleTagTransformFn;
150
+ exports.getStyleTagTransformFnCode = getStyleTagTransformFnCode;
151
+ exports.getdomAPI = getdomAPI;
152
+ exports.stringifyRequest = stringifyRequest;
153
+ var _path = _interopRequireDefault(__nccwpck_require__(17));
154
+ var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(418));
155
+ function _interopRequireDefault(obj) {
156
+ return obj && obj.__esModule ? obj : { default: obj };
157
+ }
158
+ const matchRelativePath = /^\.\.?[/\\]/;
159
+ function isAbsolutePath(str) {
160
+ return (
161
+ _path.default.posix.isAbsolute(str) ||
162
+ _path.default.win32.isAbsolute(str)
163
+ );
164
+ }
165
+ function isRelativePath(str) {
166
+ return matchRelativePath.test(str);
167
+ }
168
+ function stringifyRequest(loaderContext, request) {
169
+ if (
170
+ typeof loaderContext.utils !== "undefined" &&
171
+ typeof loaderContext.utils.contextify === "function"
172
+ ) {
173
+ return JSON.stringify(
174
+ loaderContext.utils.contextify(loaderContext.context, request),
175
+ );
176
+ }
177
+ const splitted = request.split("!");
178
+ const { context } = loaderContext;
179
+ return JSON.stringify(
180
+ splitted
181
+ .map((part) => {
182
+ const splittedPart = part.match(/^(.*?)(\?.*)/);
183
+ const query = splittedPart ? splittedPart[2] : "";
184
+ let singlePath = splittedPart ? splittedPart[1] : part;
185
+ if (isAbsolutePath(singlePath) && context) {
186
+ singlePath = _path.default.relative(context, singlePath);
187
+ if (isAbsolutePath(singlePath)) {
188
+ return singlePath + query;
189
+ }
190
+ if (isRelativePath(singlePath) === false) {
191
+ singlePath = `./${singlePath}`;
192
+ }
193
+ }
194
+ return singlePath.replace(/\\/g, "/") + query;
195
+ })
196
+ .join("!"),
197
+ );
198
+ }
199
+ function getImportLinkAPICode(esModule, loaderContext) {
200
+ const modulePath = stringifyRequest(
201
+ loaderContext,
202
+ `!${_path.default.join(__dirname, "runtime/injectStylesIntoLinkTag.js")}`,
203
+ );
204
+ return esModule
205
+ ? `import API from ${modulePath};`
206
+ : `var API = require(${modulePath});`;
207
+ }
208
+ function getImportLinkContentCode(esModule, loaderContext, request) {
209
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
210
+ return esModule
211
+ ? `import content from ${modulePath};`
212
+ : `var content = require(${modulePath});`;
213
+ }
214
+ function getImportStyleAPICode(esModule, loaderContext) {
215
+ const modulePath = stringifyRequest(
216
+ loaderContext,
217
+ `!${_path.default.join(__dirname, "runtime/injectStylesIntoStyleTag.js")}`,
218
+ );
219
+ return esModule
220
+ ? `import API from ${modulePath};`
221
+ : `var API = require(${modulePath});`;
222
+ }
223
+ function getImportStyleDomAPICode(
224
+ esModule,
225
+ loaderContext,
226
+ isSingleton,
227
+ isAuto,
228
+ ) {
229
+ const styleAPI = stringifyRequest(
230
+ loaderContext,
231
+ `!${_path.default.join(__dirname, "runtime/styleDomAPI.js")}`,
232
+ );
233
+ const singletonAPI = stringifyRequest(
234
+ loaderContext,
235
+ `!${_path.default.join(__dirname, "runtime/singletonStyleDomAPI.js")}`,
236
+ );
237
+ if (isAuto) {
238
+ return esModule
239
+ ? `import domAPI from ${styleAPI};\n import domAPISingleton from ${singletonAPI};`
240
+ : `var domAPI = require(${styleAPI});\n var domAPISingleton = require(${singletonAPI});`;
241
+ }
242
+ return esModule
243
+ ? `import domAPI from ${isSingleton ? singletonAPI : styleAPI};`
244
+ : `var domAPI = require(${isSingleton ? singletonAPI : styleAPI});`;
245
+ }
246
+ function getImportStyleContentCode(esModule, loaderContext, request) {
247
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
248
+ return esModule
249
+ ? `import content, * as namedExport from ${modulePath};`
250
+ : `var content = require(${modulePath});`;
251
+ }
252
+ function getImportInsertBySelectorCode(
253
+ esModule,
254
+ loaderContext,
255
+ insertType,
256
+ options,
257
+ ) {
258
+ if (insertType === "selector") {
259
+ const modulePath = stringifyRequest(
260
+ loaderContext,
261
+ `!${_path.default.join(__dirname, "runtime/insertBySelector.js")}`,
262
+ );
263
+ return esModule
264
+ ? `import insertFn from ${modulePath};`
265
+ : `var insertFn = require(${modulePath});`;
266
+ }
267
+ if (insertType === "module-path") {
268
+ const modulePath = stringifyRequest(
269
+ loaderContext,
270
+ `${options.insert}`,
271
+ );
272
+ loaderContext.addBuildDependency(options.insert);
273
+ return esModule
274
+ ? `import insertFn from ${modulePath};`
275
+ : `var insertFn = require(${modulePath});`;
276
+ }
277
+ return "";
278
+ }
279
+ function getInsertOptionCode(insertType, options) {
280
+ if (insertType === "selector") {
281
+ const insert = options.insert
282
+ ? JSON.stringify(options.insert)
283
+ : '"head"';
284
+ return `\n options.insert = insertFn.bind(null, ${insert});\n `;
285
+ }
286
+ if (insertType === "module-path") {
287
+ return `options.insert = insertFn;`;
288
+ }
289
+ return `options.insert = ${options.insert.toString()};`;
290
+ }
291
+ function getImportInsertStyleElementCode(esModule, loaderContext) {
292
+ const modulePath = stringifyRequest(
293
+ loaderContext,
294
+ `!${_path.default.join(__dirname, "runtime/insertStyleElement.js")}`,
295
+ );
296
+ return esModule
297
+ ? `import insertStyleElement from ${modulePath};`
298
+ : `var insertStyleElement = require(${modulePath});`;
299
+ }
300
+ function getStyleHmrCode(esModule, loaderContext, request, lazy) {
301
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
302
+ return `\nif (module.hot) {\n if (!content.locals || module.hot.invalidate) {\n var isEqualLocals = ${_isEqualLocals.default.toString()};\n var isNamedExport = ${esModule ? "!content.locals" : false};\n var oldLocals = isNamedExport ? namedExport : content.locals;\n\n module.hot.accept(\n ${modulePath},\n function () {\n ${esModule ? `if (!isEqualLocals(oldLocals, isNamedExport ? namedExport : content.locals, isNamedExport)) {\n module.hot.invalidate();\n\n return;\n }\n\n oldLocals = isNamedExport ? namedExport : content.locals;\n\n ${lazy ? `if (update && refs > 0) {\n update(content);\n }` : `update(content);`}` : `content = require(${modulePath});\n\n content = content.__esModule ? content.default : content;\n\n ${lazy ? "" : `if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }`}\n\n if (!isEqualLocals(oldLocals, content.locals)) {\n module.hot.invalidate();\n\n return;\n }\n\n oldLocals = content.locals;\n\n ${lazy ? `if (update && refs > 0) {\n update(content);\n }` : `update(content);`}`}\n }\n )\n }\n\n module.hot.dispose(function() {\n ${lazy ? `if (update) {\n update();\n }` : `update();`}\n });\n}\n`;
303
+ }
304
+ function getLinkHmrCode(esModule, loaderContext, request) {
305
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
306
+ return `\nif (module.hot) {\n module.hot.accept(\n ${modulePath},\n function() {\n ${esModule ? "update(content);" : `content = require(${modulePath});\n\n content = content.__esModule ? content.default : content;\n\n update(content);`}\n }\n );\n\n module.hot.dispose(function() {\n update();\n });\n}`;
307
+ }
308
+ function getdomAPI(isAuto) {
309
+ return isAuto ? "isOldIE() ? domAPISingleton : domAPI" : "domAPI";
310
+ }
311
+ function getImportIsOldIECode(esModule, loaderContext) {
312
+ const modulePath = stringifyRequest(
313
+ loaderContext,
314
+ `!${_path.default.join(__dirname, "runtime/isOldIE.js")}`,
315
+ );
316
+ return esModule
317
+ ? `import isOldIE from ${modulePath};`
318
+ : `var isOldIE = require(${modulePath});`;
319
+ }
320
+ function getStyleTagTransformFnCode(
321
+ esModule,
322
+ loaderContext,
323
+ options,
324
+ isSingleton,
325
+ styleTagTransformType,
326
+ ) {
327
+ if (isSingleton) {
328
+ return "";
329
+ }
330
+ if (styleTagTransformType === "default") {
331
+ const modulePath = stringifyRequest(
332
+ loaderContext,
333
+ `!${_path.default.join(__dirname, "runtime/styleTagTransform.js")}`,
334
+ );
335
+ return esModule
336
+ ? `import styleTagTransformFn from ${modulePath};`
337
+ : `var styleTagTransformFn = require(${modulePath});`;
338
+ }
339
+ if (styleTagTransformType === "module-path") {
340
+ const modulePath = stringifyRequest(
341
+ loaderContext,
342
+ `${options.styleTagTransform}`,
343
+ );
344
+ loaderContext.addBuildDependency(options.styleTagTransform);
345
+ return esModule
346
+ ? `import styleTagTransformFn from ${modulePath};`
347
+ : `var styleTagTransformFn = require(${modulePath});`;
348
+ }
349
+ return "";
350
+ }
351
+ function getStyleTagTransformFn(options, isSingleton) {
352
+ return isSingleton
353
+ ? ""
354
+ : typeof options.styleTagTransform === "function"
355
+ ? `options.styleTagTransform = ${options.styleTagTransform.toString()}`
356
+ : `options.styleTagTransform = styleTagTransformFn`;
357
+ }
358
+ function getExportStyleCode(esModule, loaderContext, request) {
359
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
360
+ return esModule
361
+ ? `export * from ${modulePath};\n export default content && content.locals ? content.locals : undefined;`
362
+ : "module.exports = content && content.locals || {};";
363
+ }
364
+ function getExportLazyStyleCode(esModule, loaderContext, request) {
365
+ const modulePath = stringifyRequest(loaderContext, `!!${request}`);
366
+ return esModule
367
+ ? `export * from ${modulePath};\n export default exported;`
368
+ : "module.exports = exported;";
369
+ }
370
+ function getSetAttributesCode(esModule, loaderContext, options) {
371
+ let modulePath;
372
+ if (typeof options.attributes !== "undefined") {
373
+ modulePath =
374
+ options.attributes.nonce !== "undefined"
375
+ ? stringifyRequest(
376
+ loaderContext,
377
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithAttributesAndNonce.js")}`,
378
+ )
379
+ : stringifyRequest(
380
+ loaderContext,
381
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithAttributes.js")}`,
382
+ );
383
+ } else {
384
+ modulePath = stringifyRequest(
385
+ loaderContext,
386
+ `!${_path.default.join(__dirname, "runtime/setAttributesWithoutAttributes.js")}`,
387
+ );
388
+ }
389
+ return esModule
390
+ ? `import setAttributes from ${modulePath};`
391
+ : `var setAttributes = require(${modulePath});`;
392
+ }
393
+ },
394
+ 17: (module) => {
395
+ module.exports = require("path");
396
+ },
397
+ 65: (module) => {
398
+ module.exports = JSON.parse(
399
+ '{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
400
+ );
401
+ },
402
+ };
403
+ var __webpack_module_cache__ = {};
404
+ function __nccwpck_require__(moduleId) {
405
+ var cachedModule = __webpack_module_cache__[moduleId];
406
+ if (cachedModule !== undefined) {
407
+ return cachedModule.exports;
408
+ }
409
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
410
+ var threw = true;
411
+ try {
412
+ __webpack_modules__[moduleId](
413
+ module,
414
+ module.exports,
415
+ __nccwpck_require__,
416
+ );
417
+ threw = false;
418
+ } finally {
419
+ if (threw) delete __webpack_module_cache__[moduleId];
420
+ }
421
+ return module.exports;
422
+ }
423
+ if (typeof __nccwpck_require__ !== "undefined")
424
+ __nccwpck_require__.ab = __dirname + "/";
425
+ var __webpack_exports__ = __nccwpck_require__(19);
426
+ module.exports = __webpack_exports__;
427
+ })();
@@ -0,0 +1,20 @@
1
+ Copyright JS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"style-loader","author":"Tobias Koppers @sokra","version":"3.3.4","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ module.exports = function (url, options) {
4
+ if (typeof document === "undefined") {
5
+ return function () {};
6
+ }
7
+ options = options || {};
8
+ options.attributes = typeof options.attributes === "object" ? options.attributes : {};
9
+ if (typeof options.attributes.nonce === "undefined") {
10
+ var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
11
+ if (nonce) {
12
+ options.attributes.nonce = nonce;
13
+ }
14
+ }
15
+ var linkElement = document.createElement("link");
16
+ linkElement.rel = "stylesheet";
17
+ linkElement.href = url;
18
+ Object.keys(options.attributes).forEach(function (key) {
19
+ linkElement.setAttribute(key, options.attributes[key]);
20
+ });
21
+ options.insert(linkElement);
22
+ return function (newUrl) {
23
+ if (typeof newUrl === "string") {
24
+ linkElement.href = newUrl;
25
+ } else {
26
+ linkElement.parentNode.removeChild(linkElement);
27
+ }
28
+ };
29
+ };
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+
3
+ var stylesInDOM = [];
4
+ function getIndexByIdentifier(identifier) {
5
+ var result = -1;
6
+ for (var i = 0; i < stylesInDOM.length; i++) {
7
+ if (stylesInDOM[i].identifier === identifier) {
8
+ result = i;
9
+ break;
10
+ }
11
+ }
12
+ return result;
13
+ }
14
+ function modulesToDom(list, options) {
15
+ var idCountMap = {};
16
+ var identifiers = [];
17
+ for (var i = 0; i < list.length; i++) {
18
+ var item = list[i];
19
+ var id = options.base ? item[0] + options.base : item[0];
20
+ var count = idCountMap[id] || 0;
21
+ var identifier = "".concat(id, " ").concat(count);
22
+ idCountMap[id] = count + 1;
23
+ var indexByIdentifier = getIndexByIdentifier(identifier);
24
+ var obj = {
25
+ css: item[1],
26
+ media: item[2],
27
+ sourceMap: item[3],
28
+ supports: item[4],
29
+ layer: item[5]
30
+ };
31
+ if (indexByIdentifier !== -1) {
32
+ stylesInDOM[indexByIdentifier].references++;
33
+ stylesInDOM[indexByIdentifier].updater(obj);
34
+ } else {
35
+ var updater = addElementStyle(obj, options);
36
+ options.byIndex = i;
37
+ stylesInDOM.splice(i, 0, {
38
+ identifier: identifier,
39
+ updater: updater,
40
+ references: 1
41
+ });
42
+ }
43
+ identifiers.push(identifier);
44
+ }
45
+ return identifiers;
46
+ }
47
+ function addElementStyle(obj, options) {
48
+ var api = options.domAPI(options);
49
+ api.update(obj);
50
+ var updater = function updater(newObj) {
51
+ if (newObj) {
52
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
53
+ return;
54
+ }
55
+ api.update(obj = newObj);
56
+ } else {
57
+ api.remove();
58
+ }
59
+ };
60
+ return updater;
61
+ }
62
+ module.exports = function (list, options) {
63
+ options = options || {};
64
+ list = list || [];
65
+ var lastIdentifiers = modulesToDom(list, options);
66
+ return function update(newList) {
67
+ newList = newList || [];
68
+ for (var i = 0; i < lastIdentifiers.length; i++) {
69
+ var identifier = lastIdentifiers[i];
70
+ var index = getIndexByIdentifier(identifier);
71
+ stylesInDOM[index].references--;
72
+ }
73
+ var newLastIdentifiers = modulesToDom(newList, options);
74
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
75
+ var _identifier = lastIdentifiers[_i];
76
+ var _index = getIndexByIdentifier(_identifier);
77
+ if (stylesInDOM[_index].references === 0) {
78
+ stylesInDOM[_index].updater();
79
+ stylesInDOM.splice(_index, 1);
80
+ }
81
+ }
82
+ lastIdentifiers = newLastIdentifiers;
83
+ };
84
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var memo = {};
4
+
5
+ /* istanbul ignore next */
6
+ function getTarget(target) {
7
+ if (typeof memo[target] === "undefined") {
8
+ var styleTarget = document.querySelector(target);
9
+
10
+ // Special case to return head of iframe instead of iframe itself
11
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
12
+ try {
13
+ // This will throw an exception if access to iframe is blocked
14
+ // due to cross-origin restrictions
15
+ styleTarget = styleTarget.contentDocument.head;
16
+ } catch (e) {
17
+ // istanbul ignore next
18
+ styleTarget = null;
19
+ }
20
+ }
21
+ memo[target] = styleTarget;
22
+ }
23
+ return memo[target];
24
+ }
25
+
26
+ /* istanbul ignore next */
27
+ function insertBySelector(insert, style) {
28
+ var target = getTarget(insert);
29
+ if (!target) {
30
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
31
+ }
32
+ target.appendChild(style);
33
+ }
34
+ module.exports = insertBySelector;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ /* istanbul ignore next */
4
+ function insertStyleElement(options) {
5
+ var element = document.createElement("style");
6
+ options.setAttributes(element, options.attributes);
7
+ options.insert(element, options.options);
8
+ return element;
9
+ }
10
+ module.exports = insertStyleElement;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ function isEqualLocals(a, b, isNamedExport) {
4
+ if (!a && b || a && !b) {
5
+ return false;
6
+ }
7
+ var p;
8
+ for (p in a) {
9
+ if (isNamedExport && p === "default") {
10
+ // eslint-disable-next-line no-continue
11
+ continue;
12
+ }
13
+ if (a[p] !== b[p]) {
14
+ return false;
15
+ }
16
+ }
17
+ for (p in b) {
18
+ if (isNamedExport && p === "default") {
19
+ // eslint-disable-next-line no-continue
20
+ continue;
21
+ }
22
+ if (!a[p]) {
23
+ return false;
24
+ }
25
+ }
26
+ return true;
27
+ }
28
+ module.exports = isEqualLocals;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var memo;
4
+
5
+ /* istanbul ignore next */
6
+ function isOldIE() {
7
+ if (typeof memo === "undefined") {
8
+ // Test for IE <= 9 as proposed by Browserhacks
9
+ // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
10
+ // Tests for existence of standard globals is to allow style-loader
11
+ // to operate correctly into non-standard environments
12
+ // @see https://github.com/webpack-contrib/style-loader/issues/177
13
+ memo = Boolean(typeof window !== "undefined" && typeof document !== "undefined" && document.all && !window.atob);
14
+ }
15
+ return memo;
16
+ }
17
+ module.exports = isOldIE;