extension-develop 2.0.0 → 2.0.1

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 (260) hide show
  1. package/README.md +204 -0
  2. package/dist/add-content-script-wrapper.js +1777 -0
  3. package/dist/add-hmr-accept-code.js +95 -3
  4. package/dist/build.d.ts +2 -0
  5. package/dist/cleanup.d.ts +1 -0
  6. package/dist/deprecated-shadow-root.js +115 -14
  7. package/dist/dev.d.ts +2 -0
  8. package/dist/develop-lib/config-types.d.ts +85 -0
  9. package/dist/develop-lib/extract-from-zip.d.ts +1 -0
  10. package/dist/develop-lib/find-nearest-package.d.ts +2 -0
  11. package/dist/develop-lib/generate-extension-types.d.ts +1 -0
  12. package/dist/develop-lib/generate-zip.d.ts +2 -0
  13. package/dist/develop-lib/get-extension-config.d.ts +6 -0
  14. package/dist/develop-lib/get-project-path.d.ts +6 -0
  15. package/dist/develop-lib/install-dependencies.d.ts +2 -0
  16. package/dist/develop-lib/messages.d.ts +35 -0
  17. package/dist/develop-lib/validate-user-dependencies.d.ts +1 -0
  18. package/dist/ensure-hmr-for-scripts.js +74 -3
  19. package/dist/extensions/chrome-manager-extension/background.js +1 -1
  20. package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
  21. package/dist/extensions/chrome-manager-extension/manifest.json +3 -3
  22. package/dist/extensions/chrome-manager-extension/pages/welcome.html +3 -6
  23. package/dist/extensions/chrome-manager-extension/reload-service.js +214 -62
  24. package/dist/extensions/chromium-based-manager-extension/background.js +1 -1
  25. package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
  26. package/dist/extensions/chromium-based-manager-extension/manifest.json +3 -3
  27. package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +3 -6
  28. package/dist/extensions/chromium-based-manager-extension/reload-service.js +185 -28
  29. package/dist/extensions/edge-manager-extension/background.js +1 -1
  30. package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
  31. package/dist/extensions/edge-manager-extension/manifest.json +3 -3
  32. package/dist/extensions/edge-manager-extension/pages/welcome.html +3 -6
  33. package/dist/extensions/edge-manager-extension/reload-service.js +223 -69
  34. package/dist/extensions/firefox-manager-extension/background.js +40 -12
  35. package/dist/extensions/firefox-manager-extension/define-initial-tab.js +10 -12
  36. package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
  37. package/dist/extensions/firefox-manager-extension/manifest.json +4 -5
  38. package/dist/extensions/firefox-manager-extension/pages/welcome.html +3 -6
  39. package/dist/extensions/firefox-manager-extension/reload-service.js +113 -75
  40. package/dist/extensions/gecko-based-manager-extension/background.js +1 -1
  41. package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +7 -4
  42. package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
  43. package/dist/extensions/gecko-based-manager-extension/manifest.json +3 -3
  44. package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +3 -6
  45. package/dist/extensions/gecko-based-manager-extension/reload-service.js +54 -26
  46. package/dist/inject-chromium-client-loader.js +144 -22
  47. package/dist/inject-firefox-client-loader.js +164 -47
  48. package/dist/minimum-chromium-file.js +25 -0
  49. package/dist/minimum-content-file.js +5 -0
  50. package/dist/minimum-firefox-file.js +17 -0
  51. package/dist/minimum-script-file.js +5 -0
  52. package/dist/module.d.ts +8 -95
  53. package/dist/module.js +10543 -128
  54. package/dist/preview.d.ts +2 -0
  55. package/dist/rslib.config.d.ts +3 -0
  56. package/dist/start.d.ts +2 -0
  57. package/dist/types.d.ts +11 -0
  58. package/dist/vitest.config.d.mts +2 -0
  59. package/dist/webpack/dev-server.d.ts +3 -0
  60. package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +1 -0
  61. package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +5 -0
  62. package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +35 -0
  63. package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +1 -0
  64. package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +71 -0
  65. package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +161 -0
  66. package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +7 -0
  67. package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +16 -0
  68. package/dist/webpack/plugin-browsers/browsers-types.d.ts +131 -0
  69. package/dist/webpack/plugin-browsers/index.d.ts +41 -0
  70. package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +3 -0
  71. package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +10 -0
  72. package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +28 -0
  73. package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +161 -0
  74. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +29 -0
  75. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +25 -0
  76. package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +15 -0
  77. package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +7 -0
  78. package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +13 -0
  79. package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +95 -0
  80. package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +26 -0
  81. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +13 -0
  82. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +2 -0
  83. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +42 -0
  84. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +31 -0
  85. package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +9 -0
  86. package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +12 -0
  87. package/dist/webpack/plugin-compatibility/index.d.ts +13 -0
  88. package/dist/webpack/plugin-compilation/clean-dist.d.ts +8 -0
  89. package/dist/webpack/plugin-compilation/env.d.ts +9 -0
  90. package/dist/webpack/plugin-compilation/index.d.ts +12 -0
  91. package/dist/webpack/plugin-css/common-style-loaders.d.ts +8 -0
  92. package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +11 -0
  93. package/dist/webpack/plugin-css/css-in-html-loader.d.ts +8 -0
  94. package/dist/webpack/plugin-css/css-tools/less.d.ts +4 -0
  95. package/dist/webpack/plugin-css/css-tools/postcss.d.ts +3 -0
  96. package/dist/webpack/plugin-css/css-tools/sass.d.ts +4 -0
  97. package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +4 -0
  98. package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +2 -0
  99. package/dist/webpack/plugin-css/index.d.ts +9 -0
  100. package/dist/webpack/plugin-css/is-content-script.d.ts +1 -0
  101. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +2 -0
  102. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +2 -0
  103. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +2 -0
  104. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +2 -0
  105. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +2 -0
  106. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +2 -0
  107. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +2 -0
  108. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +2 -0
  109. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +2 -0
  110. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +2 -0
  111. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +2 -0
  112. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +2 -0
  113. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +2 -0
  114. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +2 -0
  115. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +2 -0
  116. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +2 -0
  117. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +6 -0
  118. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +2 -0
  119. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +2 -0
  120. package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +19 -0
  121. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +2 -0
  122. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +2 -0
  123. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +2 -0
  124. package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +1 -0
  125. package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +10 -0
  126. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +2 -0
  127. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +2 -0
  128. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +2 -0
  129. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +2 -0
  130. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +2 -0
  131. package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +2 -0
  132. package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +4 -0
  133. package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +12 -0
  134. package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +18 -0
  135. package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +8 -0
  136. package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +8 -0
  137. package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +18 -0
  138. package/dist/webpack/plugin-extension/feature-html/index.d.ts +37 -0
  139. package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +11 -0
  140. package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +10 -0
  141. package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +10 -0
  142. package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +9 -0
  143. package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +2 -0
  144. package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +10 -0
  145. package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +1 -0
  146. package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +13 -0
  147. package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +10 -0
  148. package/dist/webpack/plugin-extension/feature-icons/index.d.ts +25 -0
  149. package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +9 -0
  150. package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +9 -0
  151. package/dist/webpack/plugin-extension/feature-json/index.d.ts +18 -0
  152. package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +1 -0
  153. package/dist/webpack/plugin-extension/feature-locales/index.d.ts +13 -0
  154. package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +23 -0
  155. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +10 -0
  156. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +8 -0
  157. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +16 -0
  158. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +7 -0
  159. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +4 -0
  160. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +4 -0
  161. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +6 -0
  162. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +2 -0
  163. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +2 -0
  164. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +4 -0
  165. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +8 -0
  166. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +8 -0
  167. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +4 -0
  168. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +7 -0
  169. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +2 -0
  170. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +6 -0
  171. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +2 -0
  172. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +2 -0
  173. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +9 -0
  174. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +2 -0
  175. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +10 -0
  176. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +12 -0
  177. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +24 -0
  178. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +2 -0
  179. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +1 -0
  180. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +1 -0
  181. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +2 -0
  182. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +8 -0
  183. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +10 -0
  184. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +2 -0
  185. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +2 -0
  186. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +2 -0
  187. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +2 -0
  188. package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +6 -0
  189. package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +17 -0
  190. package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +7 -0
  191. package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +11 -0
  192. package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +9 -0
  193. package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +27 -0
  194. package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +3 -0
  195. package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +2 -0
  196. package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +2 -0
  197. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +11 -0
  198. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +4 -0
  199. package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +9 -0
  200. package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +2 -0
  201. package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +1 -0
  202. package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +1 -0
  203. package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +1 -0
  204. package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +1 -0
  205. package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +1 -0
  206. package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +1 -0
  207. package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +14 -0
  208. package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +19 -0
  209. package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +7 -0
  210. package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +7 -0
  211. package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +18 -0
  212. package/dist/webpack/plugin-extension/index.d.ts +10 -0
  213. package/dist/webpack/plugin-js-frameworks/index.d.ts +13 -0
  214. package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +16 -0
  215. package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +3 -0
  216. package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +3 -0
  217. package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +3 -0
  218. package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +36 -0
  219. package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +3 -0
  220. package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +1 -0
  221. package/dist/webpack/plugin-reload/index.d.ts +13 -0
  222. package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +106 -0
  223. package/dist/webpack/plugin-reload/reload-types.d.ts +14 -0
  224. package/dist/webpack/plugin-reload/start-server.d.ts +4 -0
  225. package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +14 -0
  226. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +2 -0
  227. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +2 -0
  228. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +2 -0
  229. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +3 -0
  230. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +9 -0
  231. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts +0 -0
  232. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +3 -0
  233. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +9 -0
  234. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts +0 -0
  235. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +9 -0
  236. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +15 -0
  237. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +5 -0
  238. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +10 -0
  239. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +10 -0
  240. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +15 -0
  241. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +10 -0
  242. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +13 -0
  243. package/dist/webpack/plugin-static-assets/index.d.ts +12 -0
  244. package/dist/webpack/webpack-config.d.ts +14 -0
  245. package/dist/webpack/webpack-lib/auto-exit.d.ts +1 -0
  246. package/dist/webpack/webpack-lib/constants.d.ts +4 -0
  247. package/dist/webpack/webpack-lib/messages.d.ts +121 -0
  248. package/dist/webpack/webpack-lib/port-manager.d.ts +27 -0
  249. package/dist/webpack/webpack-lib/utils.d.ts +20 -0
  250. package/dist/webpack/webpack-types.d.ts +49 -0
  251. package/package.json +64 -29
  252. package/dist/depreacated-shadow-root.js +0 -34
  253. package/dist/inject-content-css-during-dev.js +0 -10
  254. package/dist/minimum-chromium-file.mjs +0 -1
  255. package/dist/minimum-content-file.mjs +0 -1
  256. package/dist/minimum-firefox-file.mjs +0 -1
  257. package/dist/resolver-loader.js +0 -1
  258. package/dist/resolver-module.mjs +0 -1
  259. package/dist/tailwind.config.js +0 -25
  260. /package/dist/{minimum-script-file.mjs → webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts} +0 -0
@@ -0,0 +1,161 @@
1
+ declare const chromeMasterPreferences: {
2
+ alternate_error_pages: {
3
+ enabled: boolean;
4
+ };
5
+ autofill: {
6
+ enabled: boolean;
7
+ };
8
+ browser: {
9
+ check_default_browser: boolean;
10
+ default_browser_setting_enabled: boolean;
11
+ };
12
+ default_apps: string;
13
+ distribution: {
14
+ alternate_shortcut_text: boolean;
15
+ auto_launch_chrome: boolean;
16
+ import_bookmarks: boolean;
17
+ import_history: boolean;
18
+ import_home_page: boolean;
19
+ import_search_engine: boolean;
20
+ suppress_first_run_bubble: boolean;
21
+ do_not_register_for_update_launch: boolean;
22
+ make_chrome_default: boolean;
23
+ make_chrome_default_for_user: boolean;
24
+ require_eula: boolean;
25
+ suppress_first_run_default_browser_prompt: boolean;
26
+ };
27
+ dns_prefetching: {
28
+ enabled: boolean;
29
+ };
30
+ download: {
31
+ default_directory: string;
32
+ directory_upgrade: boolean;
33
+ open_pdf_in_adobe_reader: boolean;
34
+ prompt_for_download: boolean;
35
+ };
36
+ enable_do_not_track: boolean;
37
+ extensions: {
38
+ theme: {
39
+ use_system: boolean;
40
+ };
41
+ toolbarsize: number;
42
+ ui: {
43
+ developer_mode: boolean;
44
+ };
45
+ };
46
+ plugins: {
47
+ plugins_list: {
48
+ enabled: boolean;
49
+ name: string;
50
+ }[];
51
+ show_details: boolean;
52
+ };
53
+ profile: {
54
+ password_manager_enabled: boolean;
55
+ };
56
+ safebrowsing: {
57
+ enabled: boolean;
58
+ safebrowsingextended_reporting_enabled: boolean;
59
+ };
60
+ savefile: {
61
+ default_directory: string;
62
+ type: number;
63
+ };
64
+ search: {
65
+ suggest_enabled: boolean;
66
+ };
67
+ session: {
68
+ restore_on_startup: number;
69
+ };
70
+ sync: {
71
+ suppress_start: boolean;
72
+ };
73
+ sync_promo: {
74
+ show_on_first_run_allowed: boolean;
75
+ show_ntp_bubble: boolean;
76
+ };
77
+ translate: {
78
+ enabled: boolean;
79
+ };
80
+ };
81
+ declare const edgeMasterPreferences: {
82
+ alternate_error_pages: {
83
+ enabled: boolean;
84
+ };
85
+ autofill: {
86
+ enabled: boolean;
87
+ };
88
+ browser: {
89
+ check_default_browser: boolean;
90
+ default_browser_setting_enabled: boolean;
91
+ };
92
+ default_apps: string;
93
+ distribution: {
94
+ alternate_shortcut_text: boolean;
95
+ auto_launch_chrome: boolean;
96
+ import_bookmarks: boolean;
97
+ import_history: boolean;
98
+ import_home_page: boolean;
99
+ import_search_engine: boolean;
100
+ suppress_first_run_bubble: boolean;
101
+ do_not_register_for_update_launch: boolean;
102
+ make_chrome_default: boolean;
103
+ make_chrome_default_for_user: boolean;
104
+ require_eula: boolean;
105
+ suppress_first_run_default_browser_prompt: boolean;
106
+ };
107
+ dns_prefetching: {
108
+ enabled: boolean;
109
+ };
110
+ download: {
111
+ default_directory: string;
112
+ directory_upgrade: boolean;
113
+ open_pdf_in_adobe_reader: boolean;
114
+ prompt_for_download: boolean;
115
+ };
116
+ enable_do_not_track: boolean;
117
+ extensions: {
118
+ theme: {
119
+ use_system: boolean;
120
+ };
121
+ toolbarsize: number;
122
+ ui: {
123
+ developer_mode: boolean;
124
+ };
125
+ };
126
+ plugins: {
127
+ plugins_list: {
128
+ enabled: boolean;
129
+ name: string;
130
+ }[];
131
+ show_details: boolean;
132
+ };
133
+ profile: {
134
+ password_manager_enabled: boolean;
135
+ };
136
+ safebrowsing: {
137
+ enabled: boolean;
138
+ safebrowsingextended_reporting_enabled: boolean;
139
+ };
140
+ savefile: {
141
+ default_directory: string;
142
+ type: number;
143
+ };
144
+ search: {
145
+ suggest_enabled: boolean;
146
+ };
147
+ session: {
148
+ restore_on_startup: number;
149
+ };
150
+ sync: {
151
+ suppress_start: boolean;
152
+ };
153
+ sync_promo: {
154
+ show_on_first_run_allowed: boolean;
155
+ show_ntp_bubble: boolean;
156
+ };
157
+ translate: {
158
+ enabled: boolean;
159
+ };
160
+ };
161
+ export { chromeMasterPreferences, edgeMasterPreferences };
@@ -0,0 +1,29 @@
1
+ export declare class CDPClient {
2
+ private port;
3
+ private host;
4
+ private ws;
5
+ private messageId;
6
+ private pendingRequests;
7
+ private targetWebSocketUrl;
8
+ constructor(port?: number, host?: string);
9
+ connect(): Promise<void>;
10
+ disconnect(): void;
11
+ sendCommand(method: string, params?: any, sessionId?: string): Promise<any>;
12
+ private handleMessage;
13
+ getTargets(): Promise<any[]>;
14
+ createTarget(url: string): Promise<string>;
15
+ navigateToUrl(targetId: string, url: string): Promise<void>;
16
+ private establishBrowserConnection;
17
+ attachToTarget(targetId: string): Promise<string>;
18
+ navigate(sessionId: string, url: string): Promise<void>;
19
+ waitForLoadEvent(sessionId: string): Promise<void>;
20
+ waitForContentScriptInjection(sessionId: string): Promise<void>;
21
+ evaluate(sessionId: string, expression: string): Promise<any>;
22
+ getPageHTML(sessionId: string): Promise<string>;
23
+ closeTarget(targetId: string): Promise<void>;
24
+ forceReloadExtension(extensionId: string): Promise<boolean>;
25
+ getExtensionInfo(extensionId: string): Promise<any>;
26
+ loadUnpackedExtension(path: string): Promise<string>;
27
+ unloadExtension(extensionId: string): Promise<boolean>;
28
+ }
29
+ export declare function checkChromeRemoteDebugging(port?: number): Promise<boolean>;
@@ -0,0 +1,25 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type DevOptions } from '../../../../develop-lib/config-types';
3
+ export declare class SetupChromeInspectionStep {
4
+ private devOptions;
5
+ private cdpClient;
6
+ private currentTargetId;
7
+ private currentSessionId;
8
+ private isInitialized;
9
+ constructor(devOptions: DevOptions & {
10
+ startingUrl?: string;
11
+ });
12
+ private getCdpPort;
13
+ initialize(port?: number): Promise<void>;
14
+ inspectSource(url: string): Promise<string>;
15
+ startWatching(websocketServer: any): Promise<void>;
16
+ private setupWebSocketHandler;
17
+ private setupConnectionHandler;
18
+ stopWatching(): void;
19
+ private handleFileChange;
20
+ private reconnectToTarget;
21
+ printHTML(html: string): void;
22
+ printUpdatedHTML(html: string): void;
23
+ cleanup(): Promise<void>;
24
+ apply(compiler: Compiler): void;
25
+ }
@@ -0,0 +1,15 @@
1
+ export declare class FirefoxBinaryDetector {
2
+ static detectFirefoxBinary(customBinary?: string): Promise<string>;
3
+ private static detectFlatpakFirefox;
4
+ private static detectSnapFirefox;
5
+ private static detectTraditionalFirefox;
6
+ private static detectCustomFirefox;
7
+ static generateFirefoxArgs(binaryPath: string, profilePath: string, debugPort: number, additionalArgs?: string[]): {
8
+ binary: string;
9
+ args: string[];
10
+ };
11
+ static validateFirefoxBinary(binaryPath: string): Promise<{
12
+ version: string;
13
+ path: string;
14
+ }>;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { Compilation } from '@rspack/core';
2
+ import { type DevOptions, type BrowserConfig } from '../../../../develop-lib/config-types';
3
+ export declare function browserConfig(compilation: Compilation, configOptions: DevOptions & BrowserConfig & {
4
+ keepProfileChanges?: boolean;
5
+ copyFromProfile?: string;
6
+ instanceId?: string;
7
+ }): Promise<string>;
@@ -0,0 +1,13 @@
1
+ import { Compilation } from '@rspack/core';
2
+ import FirefoxProfile from 'firefox-profile';
3
+ import { BrowserConfig, DevOptions } from '../../../../develop-lib/config-types';
4
+ interface FirefoxProfileOptions {
5
+ browser: DevOptions['browser'];
6
+ userProfilePath: string | false | undefined;
7
+ configPreferences: BrowserConfig['preferences'];
8
+ keepProfileChanges?: boolean;
9
+ copyFromProfile?: string;
10
+ instanceId?: string;
11
+ }
12
+ export declare function createProfile(compilation: Compilation, { browser, userProfilePath, configPreferences, instanceId }: FirefoxProfileOptions): FirefoxProfile;
13
+ export {};
@@ -0,0 +1,95 @@
1
+ declare const masterPreferences: {
2
+ 'app.update.enabled': boolean;
3
+ 'browser.dom.window.dump.enabled': boolean;
4
+ 'browser.formfill.enable': boolean;
5
+ 'browser.link.open_newwindow': number;
6
+ 'browser.sessionstore.enabled': boolean;
7
+ 'browser.shell.checkDefaultBrowser': boolean;
8
+ 'browser.sync.enabled': boolean;
9
+ 'browser.startup.page': number;
10
+ 'browser.startup.homepage_welcome_url': string;
11
+ 'browser.startup.homepage_welcome_url_additional': string;
12
+ 'browser.urlbar.suggest.bookmark': boolean;
13
+ 'browser.urlbar.suggest.clipboard': boolean;
14
+ 'browser.urlbar.suggest.history': boolean;
15
+ 'browser.urlbar.suggest.openpage': boolean;
16
+ 'browser.urlbar.suggest.remotetab': boolean;
17
+ 'browser.urlbar.suggest.searches': boolean;
18
+ 'browser.urlbar.suggest.topsites': boolean;
19
+ 'browser.urlbar.suggest.engines': boolean;
20
+ 'browser.urlbar.suggest.calculator': boolean;
21
+ 'browser.urlbar.suggest.recentsearches': boolean;
22
+ 'datareporting.policy.dataSubmissionEnabled': boolean;
23
+ 'datareporting.policy.firstRunURL': string;
24
+ 'devtools.browserconsole.contentMessages': boolean;
25
+ 'devtools.chrome.enabled': boolean;
26
+ 'devtools.debugger.prompt-connection': boolean;
27
+ 'devtools.debugger.remote-enabled': boolean;
28
+ 'devtools.errorconsole.enabled': boolean;
29
+ 'extensions.installDistroAddons': boolean;
30
+ 'extensions.autoDisableScopes': number;
31
+ 'extensions.chrome.enabled': boolean;
32
+ 'extensions.logging.enabled': boolean;
33
+ 'extensions.checkCompatibility.nightly': boolean;
34
+ 'extensions.update.enabled': boolean;
35
+ 'extensions.update.notifyUser': boolean;
36
+ 'extensions.enabledScopes': number;
37
+ 'extensions.getAddons.cache.enabled': boolean;
38
+ 'network.prefetch.next': boolean;
39
+ 'network.speculative.preconnect.enabled': boolean;
40
+ 'toolkit.telemetry.enabled': boolean;
41
+ 'toolkit.telemetry.archive.enabled': boolean;
42
+ 'toolkit.telemetry.newProfilePing.enabled': boolean;
43
+ 'toolkit.recovery.enabled': boolean;
44
+ 'urlclassifier.updateinterval': number;
45
+ 'security.enterprise_roots.enabled': boolean;
46
+ 'xpinstall.signatures.required': boolean;
47
+ };
48
+ export default masterPreferences;
49
+ export declare function getPreferences(customPrefs: Record<string, any>): {
50
+ 'app.update.enabled': boolean;
51
+ 'browser.dom.window.dump.enabled': boolean;
52
+ 'browser.formfill.enable': boolean;
53
+ 'browser.link.open_newwindow': number;
54
+ 'browser.sessionstore.enabled': boolean;
55
+ 'browser.shell.checkDefaultBrowser': boolean;
56
+ 'browser.sync.enabled': boolean;
57
+ 'browser.startup.page': number;
58
+ 'browser.startup.homepage_welcome_url': string;
59
+ 'browser.startup.homepage_welcome_url_additional': string;
60
+ 'browser.urlbar.suggest.bookmark': boolean;
61
+ 'browser.urlbar.suggest.clipboard': boolean;
62
+ 'browser.urlbar.suggest.history': boolean;
63
+ 'browser.urlbar.suggest.openpage': boolean;
64
+ 'browser.urlbar.suggest.remotetab': boolean;
65
+ 'browser.urlbar.suggest.searches': boolean;
66
+ 'browser.urlbar.suggest.topsites': boolean;
67
+ 'browser.urlbar.suggest.engines': boolean;
68
+ 'browser.urlbar.suggest.calculator': boolean;
69
+ 'browser.urlbar.suggest.recentsearches': boolean;
70
+ 'datareporting.policy.dataSubmissionEnabled': boolean;
71
+ 'datareporting.policy.firstRunURL': string;
72
+ 'devtools.browserconsole.contentMessages': boolean;
73
+ 'devtools.chrome.enabled': boolean;
74
+ 'devtools.debugger.prompt-connection': boolean;
75
+ 'devtools.debugger.remote-enabled': boolean;
76
+ 'devtools.errorconsole.enabled': boolean;
77
+ 'extensions.installDistroAddons': boolean;
78
+ 'extensions.autoDisableScopes': number;
79
+ 'extensions.chrome.enabled': boolean;
80
+ 'extensions.logging.enabled': boolean;
81
+ 'extensions.checkCompatibility.nightly': boolean;
82
+ 'extensions.update.enabled': boolean;
83
+ 'extensions.update.notifyUser': boolean;
84
+ 'extensions.enabledScopes': number;
85
+ 'extensions.getAddons.cache.enabled': boolean;
86
+ 'network.prefetch.next': boolean;
87
+ 'network.speculative.preconnect.enabled': boolean;
88
+ 'toolkit.telemetry.enabled': boolean;
89
+ 'toolkit.telemetry.archive.enabled': boolean;
90
+ 'toolkit.telemetry.newProfilePing.enabled': boolean;
91
+ 'toolkit.recovery.enabled': boolean;
92
+ 'urlclassifier.updateinterval': number;
93
+ 'security.enterprise_roots.enabled': boolean;
94
+ 'xpinstall.signatures.required': boolean;
95
+ };
@@ -0,0 +1,26 @@
1
+ import { type PluginInterface } from '../browsers-types';
2
+ import { DevOptions } from '../../../develop-lib/config-types';
3
+ export declare class RunFirefoxPlugin {
4
+ readonly extension: string | string[];
5
+ readonly browser: DevOptions['browser'];
6
+ readonly browserFlags?: string[];
7
+ readonly profile?: string | false;
8
+ readonly preferences?: Record<string, any>;
9
+ readonly startingUrl?: string;
10
+ readonly autoReload?: boolean;
11
+ readonly stats?: boolean;
12
+ readonly geckoBinary?: string;
13
+ readonly port?: number | string;
14
+ readonly instanceId?: string;
15
+ readonly keepProfileChanges?: boolean;
16
+ readonly copyFromProfile?: string;
17
+ readonly source?: string | boolean;
18
+ readonly watchSource?: boolean;
19
+ readonly reuseProfile?: boolean;
20
+ readonly dryRun?: boolean;
21
+ constructor(options: PluginInterface);
22
+ private launchFirefox;
23
+ apply(compiler: any): void;
24
+ private setupProcessSignalHandlers;
25
+ private cleanupInstance;
26
+ }
@@ -0,0 +1,13 @@
1
+ import { Compilation } from '@rspack/core';
2
+ import { type PluginInterface } from '../../browsers-types';
3
+ export declare class RemoteFirefox {
4
+ private readonly options;
5
+ private client;
6
+ constructor(configOptions: PluginInterface);
7
+ private connectClient;
8
+ installAddons(compilation: Compilation): Promise<void>;
9
+ inspectSource(compilation: Compilation, opts: {
10
+ startingUrl?: string;
11
+ source?: string | boolean;
12
+ }): Promise<void>;
13
+ }
@@ -0,0 +1,2 @@
1
+ export declare function requestErrorToMessage(err: any): string;
2
+ export declare function isErrorWithCode(codeWanted: any, error: any): boolean;
@@ -0,0 +1,42 @@
1
+ import EventEmitter from 'events';
2
+ export declare class MessagingClient extends EventEmitter {
3
+ private incomingData;
4
+ private pendingRequests;
5
+ private readonly activeRequests;
6
+ private connection?;
7
+ connect(port: number): Promise<void>;
8
+ disconnect(): void;
9
+ private rejectAllRequests;
10
+ request(requestProps: any): Promise<any>;
11
+ private flushPendingRequests;
12
+ private expectReply;
13
+ private onData;
14
+ private readMessage;
15
+ private handleMessage;
16
+ onError(error: Error): void;
17
+ onEnd(): void;
18
+ onTimeout(): void;
19
+ getTargets(): Promise<any>;
20
+ navigate(tabId: string, url: string): Promise<void>;
21
+ attach(tabId: string): Promise<any>;
22
+ getTargetFromDescriptor(descriptorId: string): Promise<{
23
+ targetActor: any;
24
+ consoleActor: any;
25
+ } | {
26
+ targetActor?: undefined;
27
+ consoleActor?: undefined;
28
+ }>;
29
+ addTab(url: string): Promise<any>;
30
+ navigateViaScript(consoleActor: string, url: string): Promise<void>;
31
+ waitForPageReady(consoleActor: string, url: string, timeoutMs?: number): Promise<void>;
32
+ waitForLoadEvent(tabId: string): Promise<void>;
33
+ evaluate(tabId: string, expression: string): Promise<any>;
34
+ evaluateRaw(tabId: string, expression: string): Promise<any>;
35
+ private coerceResponseToString;
36
+ private resolveActorForEvaluation;
37
+ private serializeDocument;
38
+ private extractShadowContent;
39
+ private mergeShadowIntoMain;
40
+ getPageHTML(descriptorActor: string, consoleActorHint?: string): Promise<string>;
41
+ closeTab(tabId: string): Promise<void>;
42
+ }
@@ -0,0 +1,31 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { DevOptions } from '../../../../develop-lib/config-types';
3
+ interface SetupFirefoxInspectionStepOptions extends DevOptions {
4
+ startingUrl?: string;
5
+ instanceId?: string;
6
+ }
7
+ export declare class SetupFirefoxInspectionStep {
8
+ private readonly devOptions;
9
+ private client;
10
+ private currentConsoleActor;
11
+ private currentTabActor;
12
+ private isWatching;
13
+ private debounceTimer;
14
+ private initialized;
15
+ private lastUrlToInspect;
16
+ constructor(devOptions: SetupFirefoxInspectionStepOptions);
17
+ private getRdpPort;
18
+ private initialize;
19
+ private resolveUrlToInspect;
20
+ private selectActors;
21
+ private ensureNavigatedAndLoaded;
22
+ private ensureUrlAndReady;
23
+ private resolveConsoleActor;
24
+ private printHTML;
25
+ private waitForContentScriptInjection;
26
+ private setupWebSocketHandler;
27
+ private attachConnection;
28
+ private handleFileChange;
29
+ apply(compiler: Compiler): void;
30
+ }
31
+ export {};
@@ -0,0 +1,9 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type PluginInterface, type Manifest } from '../webpack-types';
3
+ export declare class BrowserSpecificFieldsPlugin {
4
+ private readonly browser;
5
+ private readonly manifestPath;
6
+ constructor(options: PluginInterface);
7
+ patchManifest(manifest: Manifest): string;
8
+ apply(compiler: Compiler): void;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { PluginInterface } from '../webpack-types';
3
+ /**
4
+ * PolyfillPlugin is responsible for providing the `browser`
5
+ * global variable to the extension's codebase.
6
+ */
7
+ export declare class PolyfillPlugin {
8
+ readonly manifestPath: string;
9
+ readonly browser?: string;
10
+ constructor(options: PluginInterface);
11
+ apply(compiler: Compiler): void;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { PluginInterface } from '../webpack-types';
3
+ import { type DevOptions } from '../../develop-lib/config-types';
4
+ export declare class CompatibilityPlugin {
5
+ static readonly name: string;
6
+ readonly manifestPath: string;
7
+ readonly browser: DevOptions['browser'];
8
+ readonly polyfill: DevOptions['polyfill'];
9
+ constructor(options: PluginInterface & {
10
+ polyfill: DevOptions['polyfill'];
11
+ });
12
+ apply(compiler: Compiler): Promise<void>;
13
+ }
@@ -0,0 +1,8 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ export declare class CleanDistFolderPlugin {
3
+ private options;
4
+ constructor(options: {
5
+ browser: string;
6
+ });
7
+ apply(compiler: Compiler): void;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { PluginInterface } from '../webpack-types';
3
+ import { DevOptions } from '../../develop-lib/config-types';
4
+ export declare class EnvPlugin {
5
+ readonly manifestPath: string;
6
+ readonly browser: DevOptions['browser'];
7
+ constructor(options: PluginInterface);
8
+ apply(compiler: Compiler): void;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { type PluginInterface } from '../webpack-types';
3
+ export declare class CompilationPlugin {
4
+ static readonly name: string;
5
+ readonly manifestPath: string;
6
+ readonly browser: PluginInterface['browser'];
7
+ readonly clean: boolean;
8
+ constructor(options: PluginInterface & {
9
+ clean: boolean;
10
+ });
11
+ apply(compiler: Compiler): void;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { type RuleSetRule } from '@rspack/core';
2
+ import { type DevOptions } from '../../develop-lib/config-types';
3
+ export interface StyleLoaderOptions {
4
+ mode: DevOptions['mode'];
5
+ loader?: string;
6
+ loaderOptions?: Record<string, any>;
7
+ }
8
+ export declare function commonStyleLoaders(projectPath: string, opts: StyleLoaderOptions): Promise<RuleSetRule['use']>;
@@ -0,0 +1,11 @@
1
+ import { DevOptions } from '../../develop-lib/config-types';
2
+ export declare function cssInContentScriptLoader(projectPath: string, mode: DevOptions['mode']): Promise<{
3
+ use: import("@rspack/core").RuleSetUse | undefined;
4
+ test: RegExp;
5
+ exclude: RegExp | undefined;
6
+ type: "asset";
7
+ generator: {
8
+ filename: string;
9
+ };
10
+ issuer: (issuer: string) => boolean;
11
+ }[]>;
@@ -0,0 +1,8 @@
1
+ import { DevOptions } from '../../develop-lib/config-types';
2
+ export declare function cssInHtmlLoader(projectPath: string, mode: DevOptions['mode']): Promise<{
3
+ use: import("@rspack/core").RuleSetUse | undefined;
4
+ test: RegExp;
5
+ exclude: RegExp | undefined;
6
+ type: string;
7
+ issuer: (issuer: string) => boolean;
8
+ }[]>;
@@ -0,0 +1,4 @@
1
+ export declare function isUsingLess(projectPath: string): boolean;
2
+ type Loader = Record<string, any>;
3
+ export declare function maybeUseLess(projectPath: string): Promise<Loader[]>;
4
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { StyleLoaderOptions } from '../common-style-loaders';
2
+ export declare function isUsingPostCss(projectPath: string): boolean;
3
+ export declare function maybeUsePostCss(projectPath: string, opts: StyleLoaderOptions): Promise<Record<string, any>>;
@@ -0,0 +1,4 @@
1
+ export declare function isUsingSass(projectPath: string): boolean;
2
+ type Loader = Record<string, any>;
3
+ export declare function maybeUseSass(projectPath: string): Promise<Loader[]>;
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import { type RspackPluginInstance } from '@rspack/core';
2
+ export declare function getStylelintConfigFile(projectPath: string): string | undefined;
3
+ export declare function isUsingStylelint(projectPath: string): boolean;
4
+ export declare function maybeUseStylelint(projectPath: string): Promise<RspackPluginInstance[]>;
@@ -0,0 +1,2 @@
1
+ export declare function isUsingTailwind(projectPath: string): boolean;
2
+ export declare function getTailwindConfigFile(projectPath: string): string | undefined;
@@ -0,0 +1,9 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { PluginInterface } from '../webpack-types';
3
+ export declare class CssPlugin {
4
+ static readonly name: string;
5
+ readonly manifestPath: string;
6
+ constructor(options: PluginInterface);
7
+ private configureOptions;
8
+ apply(compiler: Compiler): Promise<void>;
9
+ }
@@ -0,0 +1 @@
1
+ export declare function isContentScriptEntry(absolutePath: string, manifestPath: string): boolean;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function action(context: string, manifest: Manifest): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function background(context: string, manifest: Manifest): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function browserAction(context: string, manifest: Manifest): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function chromeUrlOverrides(context: string, manifest: Manifest): Record<string, Manifest | undefined>;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function devtoolsPage(context: string, manifest: Manifest): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function htmlFields(context: string, manifest: Manifest): Record<string, string | undefined>;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function optionsUi(context: string, manifest: Manifest): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../webpack-types';
2
+ export declare function pageAction(context: string, manifest: Manifest): string | undefined;