@nx/rspack 23.0.0-beta.22 → 23.0.0-beta.24

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 (311) hide show
  1. package/{app-plugin.d.ts → dist/app-plugin.d.ts} +0 -1
  2. package/{module-federation.d.ts → dist/module-federation.d.ts} +0 -1
  3. package/dist/plugin.d.ts +2 -0
  4. package/{plugin.js → dist/plugin.js} +2 -1
  5. package/{react-plugin.d.ts → dist/react-plugin.d.ts} +0 -1
  6. package/dist/readme-template.md +18 -0
  7. package/{src → dist/src}/executors/dev-server/dev-server.impl.d.ts +0 -1
  8. package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.d.ts +0 -1
  9. package/{src → dist/src}/executors/dev-server/lib/serve-path.d.ts +0 -1
  10. package/{src → dist/src}/executors/module-federation-dev-server/lib/index.d.ts +0 -1
  11. package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -1
  12. package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.d.ts +0 -1
  13. package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -1
  14. package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.js +5 -6
  15. package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.d.ts +0 -1
  16. package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts +0 -1
  17. package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts +0 -1
  18. package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -1
  19. package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +4 -4
  20. package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +1 -1
  21. package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.d.ts +1 -2
  22. package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.js +9 -12
  23. package/{src → dist/src}/executors/rspack/lib/config.d.ts +0 -1
  24. package/{src → dist/src}/executors/rspack/lib/config.js +5 -2
  25. package/{src → dist/src}/executors/rspack/lib/normalize-options.d.ts +0 -1
  26. package/{src → dist/src}/executors/rspack/rspack.impl.d.ts +0 -1
  27. package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts +0 -1
  28. package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.d.ts +0 -1
  29. package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
  30. package/{src → dist/src}/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.d.ts +0 -1
  31. package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.d.ts +0 -1
  32. package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.d.ts +0 -1
  33. package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/utils.d.ts +0 -1
  34. package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/validate-project.d.ts +0 -1
  35. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
  36. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +1 -1
  37. package/{src → dist/src}/generators/convert-to-inferred/utils/ast.d.ts +0 -1
  38. package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts +0 -1
  39. package/{src → dist/src}/generators/convert-to-inferred/utils/index.d.ts +0 -1
  40. package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts +0 -1
  41. package/{src → dist/src}/generators/convert-to-inferred/utils/types.d.ts +0 -1
  42. package/{src → dist/src}/generators/convert-webpack/convert-webpack.d.ts +0 -1
  43. package/{src → dist/src}/generators/convert-webpack/lib/transform-cjs.d.ts +0 -1
  44. package/{src → dist/src}/generators/convert-webpack/lib/transform-esm.d.ts +0 -1
  45. package/{src → dist/src}/generators/convert-webpack/lib/transform-plugin-config.d.ts +0 -1
  46. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  47. package/{src → dist/src}/generators/init/init.js +3 -4
  48. package/{src → dist/src}/index.d.ts +0 -1
  49. package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts +0 -1
  50. package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts +0 -1
  51. package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.d.ts +0 -1
  52. package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.d.ts +0 -1
  53. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
  54. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
  55. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
  56. package/{src → dist/src}/plugins/generate-package-json-plugin.d.ts +0 -1
  57. package/{src → dist/src}/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.d.ts +0 -1
  58. package/{src → dist/src}/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.d.ts +0 -1
  59. package/{src → dist/src}/plugins/plugin.d.ts +6 -3
  60. package/{src → dist/src}/plugins/plugin.js +6 -2
  61. package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts +0 -1
  62. package/{src → dist/src}/plugins/utils/apply-base-config.d.ts +0 -1
  63. package/{src → dist/src}/plugins/utils/apply-react-config.d.ts +0 -1
  64. package/{src → dist/src}/plugins/utils/apply-web-config.d.ts +0 -1
  65. package/{src → dist/src}/plugins/utils/get-css-module-local-ident.d.ts +0 -1
  66. package/{src → dist/src}/plugins/utils/get-non-buildable-libs.d.ts +0 -1
  67. package/{src → dist/src}/plugins/utils/get-terser-ecma-version.d.ts +0 -1
  68. package/{src → dist/src}/plugins/utils/get-transitive-deps.d.ts +0 -1
  69. package/{src → dist/src}/plugins/utils/hash-format.d.ts +0 -1
  70. package/{src → dist/src}/plugins/utils/instantiate-script-plugins.d.ts +0 -1
  71. package/{src → dist/src}/plugins/utils/is-lib-buildable.d.ts +0 -1
  72. package/{src → dist/src}/plugins/utils/loaders/stylesheet-loaders.d.ts +0 -1
  73. package/{src → dist/src}/plugins/utils/models.d.ts +0 -1
  74. package/{src → dist/src}/plugins/utils/normalize-entry.d.ts +0 -1
  75. package/{src → dist/src}/plugins/utils/plugins/generate-package-json-plugin.d.ts +0 -1
  76. package/{src → dist/src}/plugins/utils/plugins/normalize-options.d.ts +0 -1
  77. package/{src → dist/src}/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.d.ts +0 -1
  78. package/{src → dist/src}/plugins/utils/plugins/postcss-cli-resources.d.ts +0 -1
  79. package/{src → dist/src}/plugins/utils/plugins/rspack-nx-build-coordination-plugin.d.ts +0 -1
  80. package/{src → dist/src}/plugins/utils/plugins/scripts-rspack-plugin.d.ts +0 -1
  81. package/{src → dist/src}/plugins/utils/plugins/stats-json-plugin.d.ts +0 -1
  82. package/{src → dist/src}/plugins/write-index-html-plugin.d.ts +0 -1
  83. package/{src → dist/src}/utils/assert-supported-rspack-version.d.ts +0 -1
  84. package/{src → dist/src}/utils/config.d.ts +14 -1
  85. package/{src → dist/src}/utils/config.js +17 -0
  86. package/{src → dist/src}/utils/create-compiler.d.ts +0 -1
  87. package/{src → dist/src}/utils/deprecation.d.ts +3 -1
  88. package/dist/src/utils/deprecation.js +50 -0
  89. package/{src → dist/src}/utils/e2e-web-server-info-utils.d.ts +0 -1
  90. package/{src → dist/src}/utils/generator-utils.d.ts +0 -1
  91. package/{src → dist/src}/utils/get-copy-patterns.d.ts +0 -1
  92. package/{src → dist/src}/utils/has-plugin.d.ts +0 -1
  93. package/{src → dist/src}/utils/jest-utils.d.ts +0 -1
  94. package/{src → dist/src}/utils/mode-utils.d.ts +0 -1
  95. package/{src → dist/src}/utils/model.d.ts +0 -1
  96. package/{src → dist/src}/utils/module-federation-deprecation.d.ts +0 -1
  97. package/{src → dist/src}/utils/normalize-assets.d.ts +0 -1
  98. package/{src → dist/src}/utils/read-rspack-options.d.ts +0 -1
  99. package/{src → dist/src}/utils/resolve-user-defined-rspack-config.d.ts +0 -1
  100. package/{src → dist/src}/utils/version-utils.d.ts +0 -1
  101. package/{src → dist/src}/utils/versions.d.ts +0 -1
  102. package/{src → dist/src}/utils/versions.js +2 -1
  103. package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.d.ts +0 -1
  104. package/{src → dist/src}/utils/webpack/normalize-entry.d.ts +0 -1
  105. package/{src → dist/src}/utils/webpack/package-chunk-sort.d.ts +0 -1
  106. package/{src → dist/src}/utils/with-nx.d.ts +4 -1
  107. package/{src → dist/src}/utils/with-nx.js +6 -0
  108. package/{src → dist/src}/utils/with-react.d.ts +6 -1
  109. package/{src → dist/src}/utils/with-react.js +8 -0
  110. package/{src → dist/src}/utils/with-web.d.ts +6 -1
  111. package/{src → dist/src}/utils/with-web.js +8 -0
  112. package/executors.json +12 -12
  113. package/generators.json +10 -10
  114. package/migrations.json +13 -7
  115. package/package.json +113 -9
  116. package/app-plugin.d.ts.map +0 -1
  117. package/module-federation.d.ts.map +0 -1
  118. package/plugin.d.ts +0 -3
  119. package/plugin.d.ts.map +0 -1
  120. package/react-plugin.d.ts.map +0 -1
  121. package/src/executors/dev-server/dev-server.impl.d.ts.map +0 -1
  122. package/src/executors/dev-server/lib/get-dev-server-config.d.ts.map +0 -1
  123. package/src/executors/dev-server/lib/serve-path.d.ts.map +0 -1
  124. package/src/executors/module-federation-dev-server/lib/index.d.ts.map +0 -1
  125. package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts.map +0 -1
  126. package/src/executors/module-federation-dev-server/lib/start-remotes.d.ts.map +0 -1
  127. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +0 -1
  128. package/src/executors/module-federation-ssr-dev-server/lib/index.d.ts.map +0 -1
  129. package/src/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts.map +0 -1
  130. package/src/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts.map +0 -1
  131. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +0 -1
  132. package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +0 -1
  133. package/src/executors/rspack/lib/config.d.ts.map +0 -1
  134. package/src/executors/rspack/lib/normalize-options.d.ts.map +0 -1
  135. package/src/executors/rspack/rspack.impl.d.ts.map +0 -1
  136. package/src/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts.map +0 -1
  137. package/src/executors/ssr-dev-server/ssr-dev-server.impl.d.ts.map +0 -1
  138. package/src/generators/configuration/configuration.d.ts.map +0 -1
  139. package/src/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.d.ts.map +0 -1
  140. package/src/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.d.ts.map +0 -1
  141. package/src/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.d.ts.map +0 -1
  142. package/src/generators/convert-config-to-rspack-plugin/lib/utils.d.ts.map +0 -1
  143. package/src/generators/convert-config-to-rspack-plugin/lib/validate-project.d.ts.map +0 -1
  144. package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
  145. package/src/generators/convert-to-inferred/utils/ast.d.ts.map +0 -1
  146. package/src/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts.map +0 -1
  147. package/src/generators/convert-to-inferred/utils/index.d.ts.map +0 -1
  148. package/src/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts.map +0 -1
  149. package/src/generators/convert-to-inferred/utils/types.d.ts.map +0 -1
  150. package/src/generators/convert-webpack/convert-webpack.d.ts.map +0 -1
  151. package/src/generators/convert-webpack/lib/transform-cjs.d.ts.map +0 -1
  152. package/src/generators/convert-webpack/lib/transform-esm.d.ts.map +0 -1
  153. package/src/generators/convert-webpack/lib/transform-plugin-config.d.ts.map +0 -1
  154. package/src/generators/init/init.d.ts.map +0 -1
  155. package/src/index.d.ts.map +0 -1
  156. package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +0 -1
  157. package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +0 -1
  158. package/src/migrations/update-22-0-0/remove-deprecated-options.d.ts.map +0 -1
  159. package/src/migrations/update-23-0-0/add-svgr-to-rspack-config.d.ts.map +0 -1
  160. package/src/plugins/generate-package-json-plugin.d.ts.map +0 -1
  161. package/src/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.d.ts.map +0 -1
  162. package/src/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.d.ts.map +0 -1
  163. package/src/plugins/plugin.d.ts.map +0 -1
  164. package/src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts.map +0 -1
  165. package/src/plugins/utils/apply-base-config.d.ts.map +0 -1
  166. package/src/plugins/utils/apply-react-config.d.ts.map +0 -1
  167. package/src/plugins/utils/apply-web-config.d.ts.map +0 -1
  168. package/src/plugins/utils/get-css-module-local-ident.d.ts.map +0 -1
  169. package/src/plugins/utils/get-non-buildable-libs.d.ts.map +0 -1
  170. package/src/plugins/utils/get-terser-ecma-version.d.ts.map +0 -1
  171. package/src/plugins/utils/get-transitive-deps.d.ts.map +0 -1
  172. package/src/plugins/utils/hash-format.d.ts.map +0 -1
  173. package/src/plugins/utils/instantiate-script-plugins.d.ts.map +0 -1
  174. package/src/plugins/utils/is-lib-buildable.d.ts.map +0 -1
  175. package/src/plugins/utils/loaders/stylesheet-loaders.d.ts.map +0 -1
  176. package/src/plugins/utils/models.d.ts.map +0 -1
  177. package/src/plugins/utils/normalize-entry.d.ts.map +0 -1
  178. package/src/plugins/utils/plugins/generate-package-json-plugin.d.ts.map +0 -1
  179. package/src/plugins/utils/plugins/normalize-options.d.ts.map +0 -1
  180. package/src/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.d.ts.map +0 -1
  181. package/src/plugins/utils/plugins/postcss-cli-resources.d.ts.map +0 -1
  182. package/src/plugins/utils/plugins/rspack-nx-build-coordination-plugin.d.ts.map +0 -1
  183. package/src/plugins/utils/plugins/scripts-rspack-plugin.d.ts.map +0 -1
  184. package/src/plugins/utils/plugins/stats-json-plugin.d.ts.map +0 -1
  185. package/src/plugins/write-index-html-plugin.d.ts.map +0 -1
  186. package/src/utils/assert-supported-rspack-version.d.ts.map +0 -1
  187. package/src/utils/config.d.ts.map +0 -1
  188. package/src/utils/create-compiler.d.ts.map +0 -1
  189. package/src/utils/deprecation.d.ts.map +0 -1
  190. package/src/utils/deprecation.js +0 -21
  191. package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
  192. package/src/utils/generator-utils.d.ts.map +0 -1
  193. package/src/utils/get-copy-patterns.d.ts.map +0 -1
  194. package/src/utils/has-plugin.d.ts.map +0 -1
  195. package/src/utils/jest-utils.d.ts.map +0 -1
  196. package/src/utils/mode-utils.d.ts.map +0 -1
  197. package/src/utils/model.d.ts.map +0 -1
  198. package/src/utils/module-federation-deprecation.d.ts.map +0 -1
  199. package/src/utils/normalize-assets.d.ts.map +0 -1
  200. package/src/utils/read-rspack-options.d.ts.map +0 -1
  201. package/src/utils/resolve-user-defined-rspack-config.d.ts.map +0 -1
  202. package/src/utils/version-utils.d.ts.map +0 -1
  203. package/src/utils/versions.d.ts.map +0 -1
  204. package/src/utils/webpack/interpolate-env-variables-to-index.d.ts.map +0 -1
  205. package/src/utils/webpack/normalize-entry.d.ts.map +0 -1
  206. package/src/utils/webpack/package-chunk-sort.d.ts.map +0 -1
  207. package/src/utils/with-nx.d.ts.map +0 -1
  208. package/src/utils/with-react.d.ts.map +0 -1
  209. package/src/utils/with-web.d.ts.map +0 -1
  210. /package/{LICENSE → dist/LICENSE} +0 -0
  211. /package/{app-plugin.js → dist/app-plugin.js} +0 -0
  212. /package/{module-federation.js → dist/module-federation.js} +0 -0
  213. /package/{react-plugin.js → dist/react-plugin.js} +0 -0
  214. /package/{src → dist/src}/executors/dev-server/dev-server.impl.js +0 -0
  215. /package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.js +0 -0
  216. /package/{src → dist/src}/executors/dev-server/lib/serve-path.js +0 -0
  217. /package/{src → dist/src}/executors/dev-server/schema.d.ts +0 -0
  218. /package/{src → dist/src}/executors/dev-server/schema.json +0 -0
  219. /package/{src → dist/src}/executors/module-federation-dev-server/lib/index.js +0 -0
  220. /package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.js +0 -0
  221. /package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.js +0 -0
  222. /package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +0 -0
  223. /package/{src → dist/src}/executors/module-federation-dev-server/schema.json +0 -0
  224. /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.js +0 -0
  225. /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.js +0 -0
  226. /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.js +0 -0
  227. /package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.json +0 -0
  228. /package/{src → dist/src}/executors/module-federation-static-server/schema.d.ts +0 -0
  229. /package/{src → dist/src}/executors/module-federation-static-server/schema.json +0 -0
  230. /package/{src → dist/src}/executors/rspack/lib/normalize-options.js +0 -0
  231. /package/{src → dist/src}/executors/rspack/rspack.impl.js +0 -0
  232. /package/{src → dist/src}/executors/rspack/schema.d.ts +0 -0
  233. /package/{src → dist/src}/executors/rspack/schema.json +0 -0
  234. /package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.js +0 -0
  235. /package/{src → dist/src}/executors/ssr-dev-server/schema.d.ts +0 -0
  236. /package/{src → dist/src}/executors/ssr-dev-server/schema.json +0 -0
  237. /package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.js +0 -0
  238. /package/{src → dist/src}/generators/configuration/configuration.js +0 -0
  239. /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
  240. /package/{src → dist/src}/generators/configuration/schema.json +0 -0
  241. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.js +0 -0
  242. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.js +0 -0
  243. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.js +0 -0
  244. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/utils.js +0 -0
  245. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/validate-project.js +0 -0
  246. /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/schema.json +0 -0
  247. /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
  248. /package/{src → dist/src}/generators/convert-to-inferred/utils/ast.js +0 -0
  249. /package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.js +0 -0
  250. /package/{src → dist/src}/generators/convert-to-inferred/utils/index.js +0 -0
  251. /package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.js +0 -0
  252. /package/{src → dist/src}/generators/convert-to-inferred/utils/types.js +0 -0
  253. /package/{src → dist/src}/generators/convert-webpack/convert-webpack.js +0 -0
  254. /package/{src → dist/src}/generators/convert-webpack/lib/transform-cjs.js +0 -0
  255. /package/{src → dist/src}/generators/convert-webpack/lib/transform-esm.js +0 -0
  256. /package/{src → dist/src}/generators/convert-webpack/lib/transform-plugin-config.js +0 -0
  257. /package/{src → dist/src}/generators/convert-webpack/schema.d.ts +0 -0
  258. /package/{src → dist/src}/generators/convert-webpack/schema.json +0 -0
  259. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  260. /package/{src → dist/src}/generators/init/schema.json +0 -0
  261. /package/{src → dist/src}/index.js +0 -0
  262. /package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +0 -0
  263. /package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +0 -0
  264. /package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.js +0 -0
  265. /package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.md +0 -0
  266. /package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.js +0 -0
  267. /package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.js +0 -0
  268. /package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.md +0 -0
  269. /package/{src → dist/src}/plugins/generate-package-json-plugin.js +0 -0
  270. /package/{src → dist/src}/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.js +0 -0
  271. /package/{src → dist/src}/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.js +0 -0
  272. /package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.js +0 -0
  273. /package/{src → dist/src}/plugins/utils/apply-base-config.js +0 -0
  274. /package/{src → dist/src}/plugins/utils/apply-react-config.js +0 -0
  275. /package/{src → dist/src}/plugins/utils/apply-web-config.js +0 -0
  276. /package/{src → dist/src}/plugins/utils/get-css-module-local-ident.js +0 -0
  277. /package/{src → dist/src}/plugins/utils/get-non-buildable-libs.js +0 -0
  278. /package/{src → dist/src}/plugins/utils/get-terser-ecma-version.js +0 -0
  279. /package/{src → dist/src}/plugins/utils/get-transitive-deps.js +0 -0
  280. /package/{src → dist/src}/plugins/utils/hash-format.js +0 -0
  281. /package/{src → dist/src}/plugins/utils/instantiate-script-plugins.js +0 -0
  282. /package/{src → dist/src}/plugins/utils/is-lib-buildable.js +0 -0
  283. /package/{src → dist/src}/plugins/utils/loaders/deprecated-less-loader.js +0 -0
  284. /package/{src → dist/src}/plugins/utils/loaders/stylesheet-loaders.js +0 -0
  285. /package/{src → dist/src}/plugins/utils/models.js +0 -0
  286. /package/{src → dist/src}/plugins/utils/normalize-entry.js +0 -0
  287. /package/{src → dist/src}/plugins/utils/plugins/generate-package-json-plugin.js +0 -0
  288. /package/{src → dist/src}/plugins/utils/plugins/normalize-options.js +0 -0
  289. /package/{src → dist/src}/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.js +0 -0
  290. /package/{src → dist/src}/plugins/utils/plugins/postcss-cli-resources.js +0 -0
  291. /package/{src → dist/src}/plugins/utils/plugins/rspack-nx-build-coordination-plugin.js +0 -0
  292. /package/{src → dist/src}/plugins/utils/plugins/scripts-rspack-plugin.js +0 -0
  293. /package/{src → dist/src}/plugins/utils/plugins/stats-json-plugin.js +0 -0
  294. /package/{src → dist/src}/plugins/write-index-html-plugin.js +0 -0
  295. /package/{src → dist/src}/utils/assert-supported-rspack-version.js +0 -0
  296. /package/{src → dist/src}/utils/create-compiler.js +0 -0
  297. /package/{src → dist/src}/utils/e2e-web-server-info-utils.js +0 -0
  298. /package/{src → dist/src}/utils/generator-utils.js +0 -0
  299. /package/{src → dist/src}/utils/get-copy-patterns.js +0 -0
  300. /package/{src → dist/src}/utils/has-plugin.js +0 -0
  301. /package/{src → dist/src}/utils/jest-utils.js +0 -0
  302. /package/{src → dist/src}/utils/mode-utils.js +0 -0
  303. /package/{src → dist/src}/utils/model.js +0 -0
  304. /package/{src → dist/src}/utils/module-federation-deprecation.js +0 -0
  305. /package/{src → dist/src}/utils/normalize-assets.js +0 -0
  306. /package/{src → dist/src}/utils/read-rspack-options.js +0 -0
  307. /package/{src → dist/src}/utils/resolve-user-defined-rspack-config.js +0 -0
  308. /package/{src → dist/src}/utils/version-utils.js +0 -0
  309. /package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.js +0 -0
  310. /package/{src → dist/src}/utils/webpack/normalize-entry.js +0 -0
  311. /package/{src → dist/src}/utils/webpack/package-chunk-sort.js +0 -0
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = migrateCreateNodesV2ToCreateNodes;
4
+ exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
5
+ const devkit_1 = require("@nx/devkit");
6
+ const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
7
+ const DEPRECATED_NAME = 'createNodesV2';
8
+ const CANONICAL_NAME = 'createNodes';
9
+ // Module specifiers from which `@nx/rspack` publicly exposes `createNodesV2`.
10
+ // A named import or re-export of `createNodesV2` from one of these is rewritten
11
+ // to the canonical `createNodes` export.
12
+ const TARGET_SPECIFIERS = new Set(['@nx/rspack/plugin']);
13
+ let ts;
14
+ async function migrateCreateNodesV2ToCreateNodes(tree) {
15
+ let touchedCount = 0;
16
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
17
+ if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
18
+ return;
19
+ }
20
+ const original = tree.read(filePath, 'utf-8');
21
+ if (!original || !original.includes(DEPRECATED_NAME)) {
22
+ return;
23
+ }
24
+ const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
25
+ if (updated !== original) {
26
+ tree.write(filePath, updated);
27
+ touchedCount += 1;
28
+ }
29
+ });
30
+ if (touchedCount > 0) {
31
+ devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
32
+ }
33
+ await (0, devkit_1.formatFiles)(tree);
34
+ }
35
+ /**
36
+ * Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
37
+ * when they come from one of the given module specifiers. Only the named
38
+ * bindings are touched — the module specifier, the `import`/`export` keyword,
39
+ * any `type` modifier, and any default import are left untouched.
40
+ */
41
+ function rewriteCreateNodesV2Imports(source, specifiers) {
42
+ ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
43
+ const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
44
+ /* setParentNodes */ true, ts.ScriptKind.TSX);
45
+ const changes = [];
46
+ for (const stmt of sourceFile.statements) {
47
+ if (ts.isImportDeclaration(stmt)) {
48
+ collectImportRewrite(sourceFile, stmt, specifiers, changes);
49
+ }
50
+ else if (ts.isExportDeclaration(stmt)) {
51
+ collectExportRewrite(sourceFile, stmt, specifiers, changes);
52
+ }
53
+ }
54
+ return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
55
+ }
56
+ function isTargetSpecifier(node, specifiers) {
57
+ return ts.isStringLiteral(node) && specifiers.has(node.text);
58
+ }
59
+ function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
60
+ if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
61
+ return;
62
+ }
63
+ const namedBindings = stmt.importClause?.namedBindings;
64
+ // Only `import { ... }` carries renameable named bindings. `import x`,
65
+ // `import * as ns`, and side-effect imports reference the module wholesale
66
+ // and keep working through the `createNodesV2` runtime alias, so we leave
67
+ // them be. A mixed `import def, { createNodesV2 }` still has its named
68
+ // bindings rewritten below — the default binding is untouched.
69
+ if (!namedBindings || !ts.isNamedImports(namedBindings)) {
70
+ return;
71
+ }
72
+ rewriteNamedBindings(sourceFile, namedBindings, changes);
73
+ }
74
+ function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
75
+ if (!stmt.moduleSpecifier ||
76
+ !isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
77
+ return;
78
+ }
79
+ // `export { ... } from '...'` can be rewritten; `export * from '...'` has no
80
+ // named bindings to rename.
81
+ if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
82
+ return;
83
+ }
84
+ rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
85
+ }
86
+ /**
87
+ * Re-renders the `{ ... }` of a named import/export, renaming any
88
+ * `createNodesV2` specifier to `createNodes`. If renaming would collide with a
89
+ * `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
90
+ * the duplicate is dropped. Returns without recording a change when the binding
91
+ * list contains no `createNodesV2`.
92
+ */
93
+ function rewriteNamedBindings(sourceFile, namedBindings, changes) {
94
+ const elements = namedBindings.elements;
95
+ const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
96
+ if (!hasDeprecated) {
97
+ return;
98
+ }
99
+ const seen = new Set();
100
+ const rendered = [];
101
+ for (const el of elements) {
102
+ const text = renderSpecifier(el);
103
+ if (!seen.has(text)) {
104
+ seen.add(text);
105
+ rendered.push(text);
106
+ }
107
+ }
108
+ const start = namedBindings.getStart(sourceFile);
109
+ changes.push({
110
+ type: devkit_1.ChangeType.Delete,
111
+ start,
112
+ length: namedBindings.getEnd() - start,
113
+ }, {
114
+ type: devkit_1.ChangeType.Insert,
115
+ index: start,
116
+ text: `{ ${rendered.join(', ')} }`,
117
+ });
118
+ }
119
+ function renderSpecifier(el) {
120
+ const typePrefix = el.isTypeOnly ? 'type ' : '';
121
+ const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
122
+ // `{ name }` — no alias, so the local binding follows the rename.
123
+ if (!el.propertyName) {
124
+ return `${typePrefix}${rename(el.name.text)}`;
125
+ }
126
+ // `{ propertyName as name }` — only the imported (left) side is renamed; the
127
+ // local alias is preserved. A now-redundant alias such as
128
+ // `createNodesV2 as createNodes` collapses to `createNodes`.
129
+ const canonicalImported = rename(el.propertyName.text);
130
+ const localName = el.name.text;
131
+ return canonicalImported === localName
132
+ ? `${typePrefix}${localName}`
133
+ : `${typePrefix}${canonicalImported} as ${localName}`;
134
+ }
@@ -0,0 +1,25 @@
1
+ #### Rename `createNodesV2` imports to `createNodes`
2
+
3
+ `@nx/rspack` renamed its primary inferred-plugin export from `createNodesV2` to `createNodes`. The `createNodesV2` name is preserved as a deprecated alias for now, but new code should use `createNodes`.
4
+
5
+ This migration scans every `.ts`, `.tsx`, `.cts`, and `.mts` file in your workspace and rewrites named imports and re-exports of `createNodesV2` from `@nx/rspack/plugin` to `createNodes`.
6
+
7
+ #### Sample Code Changes
8
+
9
+ ##### Before
10
+
11
+ ```ts
12
+ import { createNodesV2 } from '@nx/rspack/plugin';
13
+ ```
14
+
15
+ ##### After
16
+
17
+ ```ts
18
+ import { createNodes } from '@nx/rspack/plugin';
19
+ ```
20
+
21
+ Aliases are preserved (`createNodesV2 as cn` becomes `createNodes as cn`), and if a file already imports both names (`{ createNodes, createNodesV2 }`) the redundant binding is dropped.
22
+
23
+ #### What is not rewritten
24
+
25
+ Only static `import`/`export` named bindings from `@nx/rspack/plugin` are rewritten. Namespace imports, dynamic `import(...)`, `require(...)` destructuring, and property access such as `plugin.createNodesV2` are left untouched — they keep working through the `createNodesV2` runtime alias. Update those by hand if you want to drop the deprecated name everywhere.
@@ -10,4 +10,3 @@ export declare class GeneratePackageJsonPlugin implements RspackPluginInstance {
10
10
  }, context: ExecutorContext);
11
11
  apply(compiler: Compiler): void;
12
12
  }
13
- //# sourceMappingURL=generate-package-json-plugin.d.ts.map
@@ -14,4 +14,3 @@ export declare class NxAppRspackPlugin {
14
14
  constructor(options?: NxAppRspackPluginOptions);
15
15
  apply(compiler: Compiler): void;
16
16
  }
17
- //# sourceMappingURL=nx-app-rspack-plugin.d.ts.map
@@ -4,4 +4,3 @@ export declare class NxReactRspackPlugin {
4
4
  constructor(options?: Record<string, any>);
5
5
  apply(compiler: Compiler): void;
6
6
  }
7
- //# sourceMappingURL=nx-react-rspack-plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CreateDependencies, CreateNodesV2 } from '@nx/devkit';
1
+ import { CreateDependencies, CreateNodes } from '@nx/devkit';
2
2
  export interface RspackPluginOptions {
3
3
  buildTargetName?: string;
4
4
  serveTargetName?: string;
@@ -8,5 +8,8 @@ export interface RspackPluginOptions {
8
8
  watchDepsTargetName?: string;
9
9
  }
10
10
  export declare const createDependencies: CreateDependencies;
11
- export declare const createNodesV2: CreateNodesV2<RspackPluginOptions>;
12
- //# sourceMappingURL=plugin.d.ts.map
11
+ export declare const createNodes: CreateNodes<RspackPluginOptions>;
12
+ /**
13
+ * @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
14
+ */
15
+ export declare const createNodesV2: CreateNodes<RspackPluginOptions>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodesV2 = exports.createDependencies = void 0;
3
+ exports.createNodesV2 = exports.createNodes = exports.createDependencies = void 0;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const js_1 = require("@nx/js");
@@ -17,7 +17,7 @@ const createDependencies = () => {
17
17
  };
18
18
  exports.createDependencies = createDependencies;
19
19
  const rspackConfigGlob = '**/rspack.config.{js,ts,mjs,mts,cjs,cts}';
20
- exports.createNodesV2 = [
20
+ exports.createNodes = [
21
21
  rspackConfigGlob,
22
22
  async (configFilePaths, options, context) => {
23
23
  const optionsHash = (0, file_hasher_1.hashObject)(options);
@@ -35,6 +35,10 @@ exports.createNodesV2 = [
35
35
  }
36
36
  },
37
37
  ];
38
+ /**
39
+ * @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
40
+ */
41
+ exports.createNodesV2 = exports.createNodes;
38
42
  async function createNodesInternal(configFilePath, options, context, targetsCache, isTsSolutionSetup, pmc, lockFileName) {
39
43
  const projectRoot = (0, path_1.dirname)(configFilePath);
40
44
  // Do not create a project if package.json and project.json isn't there.
@@ -29,4 +29,3 @@ import type { Compiler, RspackOptionsNormalized } from '@rspack/core';
29
29
  export declare function useLegacyNxPlugin(fn: (config: RspackOptionsNormalized, ctx: NxRspackExecutionContext) => Promise<RspackOptionsNormalized>, executorOptions: NxAppRspackPluginOptions): Promise<{
30
30
  apply(compiler: Compiler): void;
31
31
  }>;
32
- //# sourceMappingURL=use-legacy-nx-plugin.d.ts.map
@@ -3,4 +3,3 @@ import { NormalizedNxAppRspackPluginOptions } from './models';
3
3
  export declare function applyBaseConfig(options: NormalizedNxAppRspackPluginOptions, config?: Partial<RspackOptionsNormalized | Configuration>, { useNormalizedEntry, }?: {
4
4
  useNormalizedEntry?: boolean;
5
5
  }): void;
6
- //# sourceMappingURL=apply-base-config.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Configuration, RspackOptionsNormalized } from '@rspack/core';
2
2
  export declare function applyReactConfig(options?: Record<string, any>, config?: Partial<RspackOptionsNormalized | Configuration>): void;
3
- //# sourceMappingURL=apply-react-config.d.ts.map
@@ -3,4 +3,3 @@ import { NormalizedNxAppRspackPluginOptions } from './models';
3
3
  export declare function applyWebConfig(options: NormalizedNxAppRspackPluginOptions, config?: Partial<RspackOptionsNormalized | Configuration>, { useNormalizedEntry, }?: {
4
4
  useNormalizedEntry?: boolean;
5
5
  }): void;
6
- //# sourceMappingURL=apply-web-config.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function getCSSModuleLocalIdent(ctx: any, localIdentName: any, localName: any, options: any): any;
2
- //# sourceMappingURL=get-css-module-local-ident.d.ts.map
@@ -9,4 +9,3 @@ export declare function createAllowlistFromExports(packageName: string, exports:
9
9
  * @returns A list of all non-buildable libraries that the project depends on, including transitive dependencies.
10
10
  */
11
11
  export declare function getNonBuildableLibs(graph: ProjectGraph, projectName: string): (string | RegExp)[];
12
- //# sourceMappingURL=get-non-buildable-libs.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function getTerserEcmaVersion(projectRoot: string): 2020 | 5;
2
- //# sourceMappingURL=get-terser-ecma-version.d.ts.map
@@ -8,4 +8,3 @@ import { type ProjectGraph } from '@nx/devkit';
8
8
  * @returns string[] - List of all transitive dependencies that are non-buildable libraries
9
9
  */
10
10
  export declare function getAllTransitiveDeps(graph: ProjectGraph, targetName: string, visited?: Set<string>): string[];
11
- //# sourceMappingURL=get-transitive-deps.d.ts.map
@@ -5,4 +5,3 @@ export interface HashFormat {
5
5
  script: string;
6
6
  }
7
7
  export declare function getOutputHashFormat(option: string, length?: number): HashFormat;
8
- //# sourceMappingURL=hash-format.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { RspackPluginInstance } from '@rspack/core';
2
2
  export declare function instantiateScriptPlugins(options: any): RspackPluginInstance[];
3
- //# sourceMappingURL=instantiate-script-plugins.d.ts.map
@@ -5,4 +5,3 @@ import { type ProjectGraphProjectNode } from '@nx/devkit';
5
5
  * @returns boolean
6
6
  */
7
7
  export declare function isBuildableLibrary(node: ProjectGraphProjectNode): boolean;
8
- //# sourceMappingURL=is-lib-buildable.d.ts.map
@@ -70,4 +70,3 @@ export declare function getCommonLoadersForGlobalStyle(options: any, includePath
70
70
  };
71
71
  })[];
72
72
  export {};
73
- //# sourceMappingURL=stylesheet-loaders.d.ts.map
@@ -262,4 +262,3 @@ export interface NormalizedNxAppRspackPluginOptions extends NxAppRspackPluginOpt
262
262
  assets: AssetGlobPattern[];
263
263
  useLegacyHtmlPlugin: boolean;
264
264
  }
265
- //# sourceMappingURL=models.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { ExtraEntryPoint, NormalizedEntryPoint } from '../../utils/model';
2
2
  export declare function normalizeExtraEntryPoints(extraEntryPoints: ExtraEntryPoint[], defaultBundleName: string): NormalizedEntryPoint[];
3
- //# sourceMappingURL=normalize-entry.d.ts.map
@@ -15,4 +15,3 @@ export declare class GeneratePackageJsonPlugin implements RspackPluginInstance {
15
15
  private resolveRuntimeDependencies;
16
16
  apply(compiler: Compiler): void;
17
17
  }
18
- //# sourceMappingURL=generate-package-json-plugin.d.ts.map
@@ -2,4 +2,3 @@ import { AssetGlobPattern, FileReplacement, NormalizedNxAppRspackPluginOptions,
2
2
  export declare function normalizeOptions(options: NxAppRspackPluginOptions): NormalizedNxAppRspackPluginOptions;
3
3
  export declare function normalizeAssets(assets: any[], root: string, sourceRoot: string, projectRoot: string, resolveRelativePathsToProjectRoot?: boolean): AssetGlobPattern[];
4
4
  export declare function normalizeFileReplacements(root: string, fileReplacements: FileReplacement[]): FileReplacement[];
5
- //# sourceMappingURL=normalize-options.d.ts.map
@@ -8,4 +8,3 @@ export declare class NxTsconfigPathsRspackPlugin {
8
8
  cleanupTmpTsConfigFile(): void;
9
9
  handleBuildLibsFromSource(config: Partial<RspackOptionsNormalized | Configuration>, options: any): void;
10
10
  }
11
- //# sourceMappingURL=nx-tsconfig-paths-rspack-plugin.d.ts.map
@@ -12,4 +12,3 @@ export declare function PostcssCliResources(options: PostcssCliResourcesOptions)
12
12
  postcssPlugin: string;
13
13
  Once(root: any): Promise<void[]>;
14
14
  };
15
- //# sourceMappingURL=postcss-cli-resources.d.ts.map
@@ -9,4 +9,3 @@ export declare class RspackNxBuildCoordinationPlugin {
9
9
  buildChangedProjects(): Promise<void>;
10
10
  private createFileWatcher;
11
11
  }
12
- //# sourceMappingURL=rspack-nx-build-coordination-plugin.d.ts.map
@@ -14,4 +14,3 @@ export declare class ScriptsRspackPlugin {
14
14
  private _insertOutput;
15
15
  apply(compiler: Compiler): void;
16
16
  }
17
- //# sourceMappingURL=scripts-rspack-plugin.d.ts.map
@@ -2,4 +2,3 @@ import { Compiler } from '@rspack/core';
2
2
  export declare class StatsJsonPlugin {
3
3
  apply(compiler: Compiler): void;
4
4
  }
5
- //# sourceMappingURL=stats-json-plugin.d.ts.map
@@ -20,4 +20,3 @@ export declare class WriteIndexHtmlPlugin {
20
20
  private generateSriAttributes;
21
21
  private filterAndMapBuildFiles;
22
22
  }
23
- //# sourceMappingURL=write-index-html-plugin.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function assertSupportedRspackVersion(tree: Tree): void;
3
- //# sourceMappingURL=assert-supported-rspack-version.d.ts.map
@@ -14,10 +14,23 @@ export interface NxComposableRspackPlugin {
14
14
  export interface AsyncNxComposableRspackPlugin {
15
15
  (config: Configuration, ctx: NxRspackExecutionContext): Configuration | Promise<Configuration>;
16
16
  }
17
+ /**
18
+ * @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
19
+ * `@nx/rspack/app-plugin` (or `NxReactRspackPlugin` from
20
+ * `@nx/rspack/react-plugin`) in a standard rspack config and run
21
+ * `nx g @nx/rspack:convert-to-inferred`. See
22
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
23
+ */
17
24
  export declare function composePlugins(...plugins: (NxComposableRspackPlugin | AsyncNxComposableRspackPlugin | Promise<NxComposableRspackPlugin | AsyncNxComposableRspackPlugin>)[]): ((config: Configuration, ctx: NxRspackExecutionContext) => Promise<Configuration>) & {
18
25
  nxRspackComposablePlugin: boolean;
19
26
  };
27
+ /**
28
+ * @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
29
+ * `@nx/rspack/app-plugin` (or `NxReactRspackPlugin` from
30
+ * `@nx/rspack/react-plugin`) in a standard rspack config and run
31
+ * `nx g @nx/rspack:convert-to-inferred`. See
32
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
33
+ */
20
34
  export declare function composePluginsSync(...plugins: NxComposableRspackPlugin[]): ((config: Configuration, ctx: NxRspackExecutionContext) => Configuration) & {
21
35
  nxRspackComposablePlugin: boolean;
22
36
  };
23
- //# sourceMappingURL=config.d.ts.map
@@ -7,11 +7,20 @@ exports.composePluginsSync = composePluginsSync;
7
7
  const devkit_1 = require("@nx/devkit");
8
8
  const internal_1 = require("@nx/js/internal");
9
9
  const configuration_1 = require("nx/src/config/configuration");
10
+ const deprecation_1 = require("./deprecation");
10
11
  exports.nxRspackComposablePlugin = 'nxRspackComposablePlugin';
11
12
  function isNxRspackComposablePlugin(a) {
12
13
  return a?.[exports.nxRspackComposablePlugin] === true;
13
14
  }
15
+ /**
16
+ * @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
17
+ * `@nx/rspack/app-plugin` (or `NxReactRspackPlugin` from
18
+ * `@nx/rspack/react-plugin`) in a standard rspack config and run
19
+ * `nx g @nx/rspack:convert-to-inferred`. See
20
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
21
+ */
14
22
  function composePlugins(...plugins) {
23
+ (0, deprecation_1.warnRspackComposeHelpersDeprecation)();
15
24
  return Object.assign(async function combined(config, ctx) {
16
25
  // Rspack may be calling us as a standard config function.
17
26
  // Build up Nx context from environment variables.
@@ -31,7 +40,15 @@ function composePlugins(...plugins) {
31
40
  [exports.nxRspackComposablePlugin]: true,
32
41
  });
33
42
  }
43
+ /**
44
+ * @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
45
+ * `@nx/rspack/app-plugin` (or `NxReactRspackPlugin` from
46
+ * `@nx/rspack/react-plugin`) in a standard rspack config and run
47
+ * `nx g @nx/rspack:convert-to-inferred`. See
48
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
49
+ */
34
50
  function composePluginsSync(...plugins) {
51
+ (0, deprecation_1.warnRspackComposeHelpersDeprecation)();
35
52
  return Object.assign(function combined(config, ctx) {
36
53
  for (const plugin of plugins) {
37
54
  config = plugin(config, ctx);
@@ -5,4 +5,3 @@ export declare function createCompiler(options: NormalizedRspackExecutorSchema &
5
5
  devServer?: any;
6
6
  }, context: ExecutorContext): Promise<Compiler | MultiCompiler>;
7
7
  export declare function isMultiCompiler(compiler: Compiler | MultiCompiler): compiler is MultiCompiler;
8
- //# sourceMappingURL=create-compiler.d.ts.map
@@ -3,4 +3,6 @@ export declare const RSPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/
3
3
  export declare function warnRspackExecutorDeprecation(): void;
4
4
  export declare function warnRspackDevServerExecutorDeprecation(): void;
5
5
  export declare function warnRspackExecutorGenerating(): void;
6
- //# sourceMappingURL=deprecation.d.ts.map
6
+ export declare const RSPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = "The `composePlugins`, `withNx`, `withWeb`, and `withReact` config helpers from `@nx/rspack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/rspack:rspack` executor. Migrate to a standard rspack config that uses `NxAppRspackPlugin` (from `@nx/rspack/app-plugin`) or `NxReactRspackPlugin` (from `@nx/rspack/react-plugin`) under the inferred `@nx/rspack/plugin` by running `nx g @nx/rspack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
7
+ export declare function suppressRspackComposeHelperWarnings<T>(fn: () => T): T;
8
+ export declare function warnRspackComposeHelpersDeprecation(): void;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RSPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = exports.RSPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.RSPACK_EXECUTOR_DEPRECATION_MESSAGE = void 0;
4
+ exports.warnRspackExecutorDeprecation = warnRspackExecutorDeprecation;
5
+ exports.warnRspackDevServerExecutorDeprecation = warnRspackDevServerExecutorDeprecation;
6
+ exports.warnRspackExecutorGenerating = warnRspackExecutorGenerating;
7
+ exports.suppressRspackComposeHelperWarnings = suppressRspackComposeHelperWarnings;
8
+ exports.warnRspackComposeHelpersDeprecation = warnRspackComposeHelpersDeprecation;
9
+ const devkit_1 = require("@nx/devkit");
10
+ // TODO(v24): Remove the @nx/rspack:rspack and @nx/rspack:dev-server
11
+ // executors. The inferred plugin (@nx/rspack/plugin) and the
12
+ // convert-to-inferred generator stay supported.
13
+ exports.RSPACK_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/rspack:rspack` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rspack:convert-to-inferred` to migrate to the `@nx/rspack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
14
+ exports.RSPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/rspack:dev-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/rspack:convert-to-inferred` to migrate to the `@nx/rspack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
15
+ function warnRspackExecutorDeprecation() {
16
+ devkit_1.logger.warn(exports.RSPACK_EXECUTOR_DEPRECATION_MESSAGE);
17
+ }
18
+ function warnRspackDevServerExecutorDeprecation() {
19
+ devkit_1.logger.warn(exports.RSPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
20
+ }
21
+ function warnRspackExecutorGenerating() {
22
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/rspack:rspack` and `@nx/rspack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/rspack:convert-to-inferred` next to migrate these targets to the `@nx/rspack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
23
+ }
24
+ // TODO(v24): Remove the composePlugins/withNx/withWeb/withReact config helpers.
25
+ // They emit an Nx-specific config function that only runs under the
26
+ // @nx/rspack:rspack executor; the inferred @nx/rspack/plugin works with standard
27
+ // rspack configs built around NxAppRspackPlugin/NxReactRspackPlugin instead.
28
+ exports.RSPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = 'The `composePlugins`, `withNx`, `withWeb`, and `withReact` config helpers from `@nx/rspack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/rspack:rspack` executor. Migrate to a standard rspack config that uses `NxAppRspackPlugin` (from `@nx/rspack/app-plugin`) or `NxReactRspackPlugin` (from `@nx/rspack/react-plugin`) under the inferred `@nx/rspack/plugin` by running `nx g @nx/rspack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
29
+ let composeHelpersWarned = false;
30
+ let suppressDepth = 0;
31
+ // Nx-internal entry points compose these helpers themselves (e.g. the rspack
32
+ // executor). They wrap their synchronous composition in this so the warning
33
+ // fires only for user-authored configs.
34
+ function suppressRspackComposeHelperWarnings(fn) {
35
+ suppressDepth++;
36
+ try {
37
+ return fn();
38
+ }
39
+ finally {
40
+ suppressDepth--;
41
+ }
42
+ }
43
+ // Warn once per process so a `composePlugins(withNx(), withReact())` chain logs
44
+ // a single line, not one per helper, and HMR reloads don't repeat it.
45
+ function warnRspackComposeHelpersDeprecation() {
46
+ if (suppressDepth > 0 || composeHelpersWarned)
47
+ return;
48
+ composeHelpersWarned = true;
49
+ devkit_1.logger.warn(exports.RSPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE);
50
+ }
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function getRspackE2EWebServerInfo(tree: Tree, projectName: string, configFilePath: string, isPluginBeingAdded: boolean, e2ePortOverride?: number): Promise<import("@nx/devkit/internal").E2EWebServerDetails>;
3
- //# sourceMappingURL=e2e-web-server-info-utils.d.ts.map
@@ -32,4 +32,3 @@ export declare function determineFrameworkAndTarget(tree: Tree, options: Configu
32
32
  };
33
33
  export declare function determineMain(tree: Tree, options: ConfigurationSchema): string;
34
34
  export declare function determineTsConfig(tree: Tree, options: ConfigurationSchema): string;
35
- //# sourceMappingURL=generator-utils.d.ts.map
@@ -7,4 +7,3 @@ export declare function getCopyPatterns(assets: any[]): {
7
7
  dot: boolean;
8
8
  };
9
9
  }[];
10
- //# sourceMappingURL=get-copy-patterns.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasPlugin(tree: Tree): boolean;
3
- //# sourceMappingURL=has-plugin.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function updateJestConfigContent(content: string): string;
2
- //# sourceMappingURL=jest-utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Mode } from '@rspack/core';
2
2
  export declare function isMode(mode: string): mode is Mode;
3
- //# sourceMappingURL=mode-utils.d.ts.map
@@ -14,4 +14,3 @@ export interface EmittedFile {
14
14
  initial: boolean;
15
15
  asset?: boolean;
16
16
  }
17
- //# sourceMappingURL=model.d.ts.map
@@ -4,4 +4,3 @@ export declare const RSPACK_MF_STATIC_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The
4
4
  export declare function warnRspackMfDevServerExecutorDeprecation(): void;
5
5
  export declare function warnRspackMfSsrDevServerExecutorDeprecation(): void;
6
6
  export declare function warnRspackMfStaticServerExecutorDeprecation(): void;
7
- //# sourceMappingURL=module-federation-deprecation.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function normalizeAssets(assets: any[], root: string, sourceRoot: string): any[];
2
- //# sourceMappingURL=normalize-assets.d.ts.map
@@ -9,4 +9,3 @@ import { Configuration } from '@rspack/core';
9
9
  * @param rspackConfig
10
10
  */
11
11
  export declare function readRspackOptions(rspackConfig: unknown): Promise<Configuration[]>;
12
- //# sourceMappingURL=read-rspack-options.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare function resolveUserDefinedRspackConfig(path: string, tsConfig: string,
2
2
  /** Skip require cache and return latest content */
3
3
  reload?: boolean): Promise<any>;
4
- //# sourceMappingURL=resolve-user-defined-rspack-config.d.ts.map
@@ -24,4 +24,3 @@ export declare function getRspackVersionsForInstalledMajor(tree: Tree): {
24
24
  rspackDevServerVersion: string;
25
25
  rspackPluginReactRefreshVersion: string;
26
26
  };
27
- //# sourceMappingURL=version-utils.d.ts.map
@@ -21,4 +21,3 @@ export declare const rspackCoreVersion: string;
21
21
  export declare const rspackDevServerVersion: string;
22
22
  export declare const rspackPluginReactRefreshVersion: string;
23
23
  export {};
24
- //# sourceMappingURL=versions.d.ts.map
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rspackPluginReactRefreshVersion = exports.rspackDevServerVersion = exports.rspackCoreVersion = exports.backwardCompatibleRspackVersions = exports.latestRspackVersions = exports.supportedRspackMajorVersions = exports.reactRefreshVersion = exports.sassEmbeddedVersion = exports.sassLoaderVersion = exports.lessLoaderVersion = exports.minSupportedRspackVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
4
+ const path_1 = require("path");
5
+ exports.nxVersion = require((0, path_1.join)('@nx/rspack', 'package.json')).version;
5
6
  exports.minSupportedRspackVersion = '1.0.0';
6
7
  exports.lessLoaderVersion = '~11.1.3';
7
8
  exports.sassLoaderVersion = '^16.0.7';
@@ -1,2 +1 @@
1
1
  export declare function interpolateEnvironmentVariablesToIndex(contents: string, deployUrl?: string): string;
2
- //# sourceMappingURL=interpolate-env-variables-to-index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { ExtraEntryPoint, NormalizedEntryPoint } from '../model';
2
2
  export declare function normalizeExtraEntryPoints(extraEntryPoints: ExtraEntryPoint[], defaultBundleName: string): NormalizedEntryPoint[];
3
- //# sourceMappingURL=normalize-entry.d.ts.map
@@ -3,4 +3,3 @@ export declare function generateEntryPoints(appConfig: {
3
3
  styles: ExtraEntryPoint[];
4
4
  scripts: ExtraEntryPoint[];
5
5
  }): string[];
6
- //# sourceMappingURL=package-chunk-sort.d.ts.map
@@ -2,8 +2,11 @@ import { NxAppRspackPluginOptions } from '../plugins/utils/models';
2
2
  import { NxComposableRspackPlugin } from './config';
3
3
  export type WithNxOptions = Partial<NxAppRspackPluginOptions>;
4
4
  /**
5
+ * @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
6
+ * `@nx/rspack/app-plugin` in a standard rspack config and run
7
+ * `nx g @nx/rspack:convert-to-inferred`. See
8
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
5
9
  * @param {WithNxOptions} pluginOptions
6
10
  * @returns {NxComposableRspackPlugin}
7
11
  */
8
12
  export declare function withNx(pluginOptions?: WithNxOptions): NxComposableRspackPlugin;
9
- //# sourceMappingURL=with-nx.d.ts.map