@nx/webpack 23.0.0-pr.35413.460eeef → 23.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/{app-plugin.d.ts → dist/app-plugin.d.ts} +0 -1
  2. package/{index.d.ts → dist/index.d.ts} +0 -4
  3. package/{index.js → dist/index.js} +1 -4
  4. package/dist/internal.d.ts +8 -0
  5. package/dist/internal.js +26 -0
  6. package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
  7. package/{src → dist/src}/executors/dev-server/dev-server.impl.d.ts +0 -1
  8. package/{src → dist/src}/executors/dev-server/dev-server.impl.js +10 -8
  9. package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.d.ts +0 -1
  10. package/{src → dist/src}/executors/dev-server/lib/serve-path.d.ts +0 -1
  11. package/{src → dist/src}/executors/dev-server/schema.json +1 -0
  12. package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts +0 -1
  13. package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.d.ts +0 -1
  14. package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.js +2 -2
  15. package/{src → dist/src}/executors/webpack/lib/normalize-options.d.ts +0 -1
  16. package/{src → dist/src}/executors/webpack/lib/normalize-options.js +2 -2
  17. package/{src → dist/src}/executors/webpack/lib/run-webpack.d.ts +1 -2
  18. package/{src → dist/src}/executors/webpack/lib/run-webpack.js +3 -3
  19. package/{src → dist/src}/executors/webpack/schema.d.ts +1 -1
  20. package/{src → dist/src}/executors/webpack/schema.json +1 -0
  21. package/{src → dist/src}/executors/webpack/webpack.impl.d.ts +0 -1
  22. package/{src → dist/src}/executors/webpack/webpack.impl.js +6 -4
  23. package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
  24. package/{src → dist/src}/generators/configuration/configuration.js +9 -2
  25. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.d.ts +0 -1
  26. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.js +5 -3
  27. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.d.ts +0 -1
  28. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.d.ts +0 -1
  29. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/utils.d.ts +0 -1
  30. package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/validate-project.d.ts +0 -1
  31. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
  32. package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +5 -5
  33. package/{src → dist/src}/generators/convert-to-inferred/utils/ast.d.ts +0 -1
  34. package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts +0 -1
  35. package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.js +8 -8
  36. package/{src → dist/src}/generators/convert-to-inferred/utils/index.d.ts +0 -1
  37. package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts +0 -1
  38. package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.js +4 -4
  39. package/{src → dist/src}/generators/convert-to-inferred/utils/types.d.ts +1 -2
  40. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  41. package/{src → dist/src}/generators/init/init.js +10 -3
  42. package/{src → dist/src}/generators/init/schema.json +1 -1
  43. package/{src → dist/src}/migrations/update-21-0-0/remove-isolated-config.d.ts +0 -1
  44. package/{src → dist/src}/migrations/update-21-0-0/remove-isolated-config.js +2 -2
  45. package/dist/src/migrations/update-21-0-0/remove-isolated-config.md +37 -0
  46. package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.d.ts +0 -1
  47. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
  48. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +223 -0
  49. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
  50. package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.d.ts +2 -0
  51. package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.js +128 -0
  52. package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.md +54 -0
  53. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
  54. package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +225 -0
  55. package/{src → dist/src}/plugins/generate-package-json-plugin.d.ts +0 -1
  56. package/{src → dist/src}/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.d.ts +0 -1
  57. package/{src → dist/src}/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.js +5 -5
  58. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-base-config.d.ts +0 -1
  59. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-base-config.js +2 -2
  60. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-web-config.d.ts +0 -1
  61. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-web-config.js +3 -3
  62. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/compiler-loaders.d.ts +0 -1
  63. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.d.ts +0 -1
  64. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.d.ts +0 -1
  65. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/normalize-options.d.ts +0 -1
  66. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/normalize-options.js +2 -2
  67. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/stylesheet-loaders.d.ts +0 -1
  68. package/{src → dist/src}/plugins/nx-webpack-plugin/lib/utils.d.ts +0 -1
  69. package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.d.ts +1 -2
  70. package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin.d.ts +0 -1
  71. package/{src → dist/src}/plugins/plugin.d.ts +3 -4
  72. package/{src → dist/src}/plugins/plugin.js +62 -29
  73. package/{src → dist/src}/plugins/stats-json-plugin.d.ts +0 -1
  74. package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts +0 -1
  75. package/{src → dist/src}/plugins/webpack-nx-build-coordination-plugin.d.ts +0 -1
  76. package/{src → dist/src}/plugins/write-index-html-plugin.d.ts +0 -1
  77. package/{src → dist/src}/utils/config.d.ts +12 -1
  78. package/{src → dist/src}/utils/config.js +17 -2
  79. package/{src → dist/src}/utils/create-copy-plugin.d.ts +0 -1
  80. package/dist/src/utils/deprecation.d.ts +8 -0
  81. package/dist/src/utils/deprecation.js +55 -0
  82. package/dist/src/utils/e2e-web-server-info-utils.d.ts +2 -0
  83. package/{src → dist/src}/utils/e2e-web-server-info-utils.js +6 -5
  84. package/{src → dist/src}/utils/ensure-dependencies.d.ts +0 -1
  85. package/{src → dist/src}/utils/ensure-dependencies.js +3 -3
  86. package/{src → dist/src}/utils/fs.d.ts +0 -1
  87. package/{src → dist/src}/utils/get-client-environment.d.ts +0 -1
  88. package/{src → dist/src}/utils/get-css-module-local-ident.d.ts +0 -1
  89. package/{src → dist/src}/utils/has-plugin.d.ts +0 -1
  90. package/{src → dist/src}/utils/hash-format.d.ts +0 -1
  91. package/{src → dist/src}/utils/models.d.ts +0 -1
  92. package/{src → dist/src}/utils/run-webpack.d.ts +0 -1
  93. package/dist/src/utils/versions.d.ts +12 -0
  94. package/dist/src/utils/versions.js +24 -0
  95. package/dist/src/utils/web-babel-loader.d.ts +1 -0
  96. package/{src → dist/src}/utils/web-babel-loader.js +2 -0
  97. package/dist/src/utils/webpack/deprecated-less-loader.js +19 -0
  98. package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.d.ts +0 -1
  99. package/{src → dist/src}/utils/webpack/normalize-entry.d.ts +0 -1
  100. package/{src → dist/src}/utils/webpack/package-chunk-sort.d.ts +0 -1
  101. package/{src → dist/src}/utils/webpack/plugins/postcss-cli-resources.d.ts +0 -1
  102. package/{src → dist/src}/utils/webpack/plugins/scripts-webpack-plugin.d.ts +0 -1
  103. package/{src → dist/src}/utils/webpack/read-webpack-options.d.ts +0 -1
  104. package/{src → dist/src}/utils/webpack/resolve-user-defined-webpack-config.d.ts +0 -1
  105. package/{src → dist/src}/utils/webpack/resolve-user-defined-webpack-config.js +4 -6
  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-web.d.ts +4 -1
  109. package/{src → dist/src}/utils/with-web.js +6 -0
  110. package/{tsconfig-paths-plugin.d.ts → dist/tsconfig-paths-plugin.d.ts} +0 -1
  111. package/executors.json +6 -6
  112. package/generators.json +8 -8
  113. package/migrations.json +34 -20
  114. package/package.json +85 -16
  115. package/app-plugin.d.ts.map +0 -1
  116. package/index.d.ts.map +0 -1
  117. package/plugin.d.ts.map +0 -1
  118. package/src/executors/dev-server/dev-server.impl.d.ts.map +0 -1
  119. package/src/executors/dev-server/lib/get-dev-server-config.d.ts.map +0 -1
  120. package/src/executors/dev-server/lib/serve-path.d.ts.map +0 -1
  121. package/src/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts.map +0 -1
  122. package/src/executors/ssr-dev-server/ssr-dev-server.impl.d.ts.map +0 -1
  123. package/src/executors/webpack/lib/normalize-options.d.ts.map +0 -1
  124. package/src/executors/webpack/lib/run-webpack.d.ts.map +0 -1
  125. package/src/executors/webpack/webpack.impl.d.ts.map +0 -1
  126. package/src/generators/configuration/configuration.d.ts.map +0 -1
  127. package/src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.d.ts.map +0 -1
  128. package/src/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.d.ts.map +0 -1
  129. package/src/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.d.ts.map +0 -1
  130. package/src/generators/convert-config-to-webpack-plugin/lib/utils.d.ts.map +0 -1
  131. package/src/generators/convert-config-to-webpack-plugin/lib/validate-project.d.ts.map +0 -1
  132. package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
  133. package/src/generators/convert-to-inferred/utils/ast.d.ts.map +0 -1
  134. package/src/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts.map +0 -1
  135. package/src/generators/convert-to-inferred/utils/index.d.ts.map +0 -1
  136. package/src/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts.map +0 -1
  137. package/src/generators/convert-to-inferred/utils/types.d.ts.map +0 -1
  138. package/src/generators/init/init.d.ts.map +0 -1
  139. package/src/migrations/update-21-0-0/remove-isolated-config.d.ts.map +0 -1
  140. package/src/migrations/update-22-0-0/remove-deprecated-options.d.ts.map +0 -1
  141. package/src/plugins/generate-package-json-plugin.d.ts.map +0 -1
  142. package/src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.d.ts.map +0 -1
  143. package/src/plugins/nx-webpack-plugin/lib/apply-base-config.d.ts.map +0 -1
  144. package/src/plugins/nx-webpack-plugin/lib/apply-web-config.d.ts.map +0 -1
  145. package/src/plugins/nx-webpack-plugin/lib/compiler-loaders.d.ts.map +0 -1
  146. package/src/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.d.ts.map +0 -1
  147. package/src/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.d.ts.map +0 -1
  148. package/src/plugins/nx-webpack-plugin/lib/normalize-options.d.ts.map +0 -1
  149. package/src/plugins/nx-webpack-plugin/lib/stylesheet-loaders.d.ts.map +0 -1
  150. package/src/plugins/nx-webpack-plugin/lib/utils.d.ts.map +0 -1
  151. package/src/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.d.ts.map +0 -1
  152. package/src/plugins/nx-webpack-plugin/nx-app-webpack-plugin.d.ts.map +0 -1
  153. package/src/plugins/plugin.d.ts.map +0 -1
  154. package/src/plugins/stats-json-plugin.d.ts.map +0 -1
  155. package/src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts.map +0 -1
  156. package/src/plugins/webpack-nx-build-coordination-plugin.d.ts.map +0 -1
  157. package/src/plugins/write-index-html-plugin.d.ts.map +0 -1
  158. package/src/utils/config.d.ts.map +0 -1
  159. package/src/utils/create-copy-plugin.d.ts.map +0 -1
  160. package/src/utils/e2e-web-server-info-utils.d.ts +0 -3
  161. package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
  162. package/src/utils/ensure-dependencies.d.ts.map +0 -1
  163. package/src/utils/fs.d.ts.map +0 -1
  164. package/src/utils/get-client-environment.d.ts.map +0 -1
  165. package/src/utils/get-css-module-local-ident.d.ts.map +0 -1
  166. package/src/utils/has-plugin.d.ts.map +0 -1
  167. package/src/utils/hash-format.d.ts.map +0 -1
  168. package/src/utils/models.d.ts.map +0 -1
  169. package/src/utils/run-webpack.d.ts.map +0 -1
  170. package/src/utils/versions.d.ts +0 -8
  171. package/src/utils/versions.d.ts.map +0 -1
  172. package/src/utils/versions.js +0 -11
  173. package/src/utils/web-babel-loader.d.ts +0 -1
  174. package/src/utils/web-babel-loader.d.ts.map +0 -1
  175. package/src/utils/webpack/interpolate-env-variables-to-index.d.ts.map +0 -1
  176. package/src/utils/webpack/normalize-entry.d.ts.map +0 -1
  177. package/src/utils/webpack/package-chunk-sort.d.ts.map +0 -1
  178. package/src/utils/webpack/plugins/postcss-cli-resources.d.ts.map +0 -1
  179. package/src/utils/webpack/plugins/scripts-webpack-plugin.d.ts.map +0 -1
  180. package/src/utils/webpack/read-webpack-options.d.ts.map +0 -1
  181. package/src/utils/webpack/resolve-user-defined-webpack-config.d.ts.map +0 -1
  182. package/src/utils/with-nx.d.ts.map +0 -1
  183. package/src/utils/with-web.d.ts.map +0 -1
  184. package/tsconfig-paths-plugin.d.ts.map +0 -1
  185. /package/{LICENSE → dist/LICENSE} +0 -0
  186. /package/{app-plugin.js → dist/app-plugin.js} +0 -0
  187. /package/{plugin.js → dist/plugin.js} +0 -0
  188. /package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.js +0 -0
  189. /package/{src → dist/src}/executors/dev-server/lib/serve-path.js +0 -0
  190. /package/{src → dist/src}/executors/dev-server/schema.d.ts +0 -0
  191. /package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.js +0 -0
  192. /package/{src → dist/src}/executors/ssr-dev-server/schema.d.ts +0 -0
  193. /package/{src → dist/src}/executors/ssr-dev-server/schema.json +0 -0
  194. /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
  195. /package/{src → dist/src}/generators/configuration/schema.json +0 -0
  196. /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.js +0 -0
  197. /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.js +0 -0
  198. /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/utils.js +0 -0
  199. /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/validate-project.js +0 -0
  200. /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/schema.json +0 -0
  201. /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
  202. /package/{src → dist/src}/generators/convert-to-inferred/utils/ast.js +0 -0
  203. /package/{src → dist/src}/generators/convert-to-inferred/utils/index.js +0 -0
  204. /package/{src → dist/src}/generators/convert-to-inferred/utils/types.js +0 -0
  205. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  206. /package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.js +0 -0
  207. /package/{src → dist/src}/plugins/generate-package-json-plugin.js +0 -0
  208. /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/compiler-loaders.js +0 -0
  209. /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.js +0 -0
  210. /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.js +0 -0
  211. /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/stylesheet-loaders.js +0 -0
  212. /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/utils.js +0 -0
  213. /package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.js +0 -0
  214. /package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin.js +0 -0
  215. /package/{src → dist/src}/plugins/stats-json-plugin.js +0 -0
  216. /package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.js +0 -0
  217. /package/{src → dist/src}/plugins/webpack-nx-build-coordination-plugin.js +0 -0
  218. /package/{src → dist/src}/plugins/write-index-html-plugin.js +0 -0
  219. /package/{src → dist/src}/utils/create-copy-plugin.js +0 -0
  220. /package/{src → dist/src}/utils/fs.js +0 -0
  221. /package/{src → dist/src}/utils/get-client-environment.js +0 -0
  222. /package/{src → dist/src}/utils/get-css-module-local-ident.js +0 -0
  223. /package/{src → dist/src}/utils/has-plugin.js +0 -0
  224. /package/{src → dist/src}/utils/hash-format.js +0 -0
  225. /package/{src → dist/src}/utils/models.js +0 -0
  226. /package/{src → dist/src}/utils/run-webpack.js +0 -0
  227. /package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.js +0 -0
  228. /package/{src → dist/src}/utils/webpack/normalize-entry.js +0 -0
  229. /package/{src → dist/src}/utils/webpack/package-chunk-sort.js +0 -0
  230. /package/{src → dist/src}/utils/webpack/plugins/postcss-cli-resources.js +0 -0
  231. /package/{src → dist/src}/utils/webpack/plugins/scripts-webpack-plugin.js +0 -0
  232. /package/{src → dist/src}/utils/webpack/read-webpack-options.js +0 -0
  233. /package/{tsconfig-paths-plugin.js → dist/tsconfig-paths-plugin.js} +0 -0
@@ -5,13 +5,21 @@ exports.isNxWebpackComposablePlugin = isNxWebpackComposablePlugin;
5
5
  exports.composePlugins = composePlugins;
6
6
  exports.composePluginsSync = composePluginsSync;
7
7
  const devkit_1 = require("@nx/devkit");
8
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
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.nxWebpackComposablePlugin = 'nxWebpackComposablePlugin';
11
12
  function isNxWebpackComposablePlugin(a) {
12
13
  return a?.[exports.nxWebpackComposablePlugin] === true;
13
14
  }
15
+ /**
16
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
17
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
18
+ * `nx g @nx/webpack:convert-to-inferred`. See
19
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
20
+ */
14
21
  function composePlugins(...plugins) {
22
+ (0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
15
23
  return Object.assign(async function combined(config, ctx) {
16
24
  // Webpack may be calling us as a standard config function.
17
25
  // Build up Nx context from environment variables.
@@ -31,7 +39,14 @@ function composePlugins(...plugins) {
31
39
  [exports.nxWebpackComposablePlugin]: true,
32
40
  });
33
41
  }
42
+ /**
43
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
44
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
45
+ * `nx g @nx/webpack:convert-to-inferred`. See
46
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
47
+ */
34
48
  function composePluginsSync(...plugins) {
49
+ (0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
35
50
  return Object.assign(function combined(config, ctx) {
36
51
  for (const plugin of plugins) {
37
52
  config = plugin(config, ctx);
@@ -50,7 +65,7 @@ function ensureNxWebpackExecutionContext(ctx) {
50
65
  ctx.options ??= {
51
66
  root: devkit_1.workspaceRoot,
52
67
  projectRoot: projectNode.data.root,
53
- sourceRoot: (0, ts_solution_setup_1.getProjectSourceRoot)(projectNode.data),
68
+ sourceRoot: (0, internal_1.getProjectSourceRoot)(projectNode.data),
54
69
  // These aren't actually needed since NxWebpackPlugin and withNx both support them being undefined.
55
70
  assets: undefined,
56
71
  outputPath: undefined,
@@ -1,4 +1,3 @@
1
1
  import CopyWebpackPlugin from 'copy-webpack-plugin';
2
2
  import { AssetGlobPattern } from '../executors/webpack/schema';
3
3
  export declare function createCopyPlugin(assets: AssetGlobPattern[]): CopyWebpackPlugin;
4
- //# sourceMappingURL=create-copy-plugin.d.ts.map
@@ -0,0 +1,8 @@
1
+ export declare const WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/webpack:webpack` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
2
+ export declare const WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/webpack:dev-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
3
+ export declare function warnWebpackExecutorDeprecation(): void;
4
+ export declare function warnWebpackDevServerExecutorDeprecation(): void;
5
+ export declare function warnWebpackExecutorGenerating(): void;
6
+ export declare const WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = "The `composePlugins`, `withNx`, and `withWeb` config helpers from `@nx/webpack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxAppWebpackPlugin` (from `@nx/webpack/app-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
7
+ export declare function suppressWebpackComposeHelperWarnings<T>(fn: () => T): T;
8
+ export declare function warnWebpackComposeHelpersDeprecation(): void;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = void 0;
4
+ exports.warnWebpackExecutorDeprecation = warnWebpackExecutorDeprecation;
5
+ exports.warnWebpackDevServerExecutorDeprecation = warnWebpackDevServerExecutorDeprecation;
6
+ exports.warnWebpackExecutorGenerating = warnWebpackExecutorGenerating;
7
+ exports.suppressWebpackComposeHelperWarnings = suppressWebpackComposeHelperWarnings;
8
+ exports.warnWebpackComposeHelpersDeprecation = warnWebpackComposeHelpersDeprecation;
9
+ const devkit_1 = require("@nx/devkit");
10
+ // TODO(v24): Remove the @nx/webpack:webpack and @nx/webpack:dev-server
11
+ // executors. The inferred plugin (@nx/webpack/plugin) and the
12
+ // convert-to-inferred generator stay supported.
13
+ exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/webpack:webpack` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
14
+ exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/webpack:dev-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
15
+ function warnWebpackExecutorDeprecation() {
16
+ devkit_1.logger.warn(exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE);
17
+ }
18
+ function warnWebpackDevServerExecutorDeprecation() {
19
+ devkit_1.logger.warn(exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
20
+ }
21
+ // Fired when the @nx/webpack:configuration generator is about to generate
22
+ // targets that use the deprecated executors — i.e. when @nx/webpack/plugin
23
+ // isn't registered in nx.json. Surfaces the deprecation at generation time
24
+ // rather than only when the user later runs the generated targets.
25
+ function warnWebpackExecutorGenerating() {
26
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/webpack:webpack` and `@nx/webpack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` next to migrate these targets to the `@nx/webpack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
27
+ }
28
+ // TODO(v24): Remove the composePlugins/withNx/withWeb config helpers. They emit
29
+ // an Nx-specific config function that only runs under the @nx/webpack:webpack
30
+ // executor; the inferred @nx/webpack/plugin works with standard webpack configs
31
+ // built around NxAppWebpackPlugin instead.
32
+ exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = 'The `composePlugins`, `withNx`, and `withWeb` config helpers from `@nx/webpack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxAppWebpackPlugin` (from `@nx/webpack/app-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
33
+ let composeHelpersWarned = false;
34
+ let suppressDepth = 0;
35
+ // Nx-internal entry points compose these helpers themselves (e.g. the rspack
36
+ // executor, the storybook/component-testing presets). They wrap their
37
+ // synchronous composition in this so the warning fires only for user-authored
38
+ // configs, not for users who never touched the compose helpers.
39
+ function suppressWebpackComposeHelperWarnings(fn) {
40
+ suppressDepth++;
41
+ try {
42
+ return fn();
43
+ }
44
+ finally {
45
+ suppressDepth--;
46
+ }
47
+ }
48
+ // Warn once per process so a `composePlugins(withNx(), withWeb())` chain logs a
49
+ // single line, not one per helper, and HMR reloads don't repeat it.
50
+ function warnWebpackComposeHelpersDeprecation() {
51
+ if (suppressDepth > 0 || composeHelpersWarned)
52
+ return;
53
+ composeHelpersWarned = true;
54
+ devkit_1.logger.warn(exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE);
55
+ }
@@ -0,0 +1,2 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export declare function getWebpackE2EWebServerInfo(tree: Tree, projectName: string, configFilePath: string, isPluginBeingAdded: boolean, e2ePortOverride?: number): Promise<import("@nx/devkit/internal").E2EWebServerDetails>;
@@ -2,15 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getWebpackE2EWebServerInfo = getWebpackE2EWebServerInfo;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
5
+ const internal_1 = require("@nx/devkit/internal");
6
6
  async function getWebpackE2EWebServerInfo(tree, projectName, configFilePath, isPluginBeingAdded, e2ePortOverride) {
7
7
  const nxJson = (0, devkit_1.readNxJson)(tree);
8
8
  let e2ePort = e2ePortOverride ?? 4200;
9
- if (nxJson.targetDefaults?.['serve'] &&
10
- nxJson.targetDefaults?.['serve'].options?.port) {
11
- e2ePort = nxJson.targetDefaults?.['serve'].options?.port;
9
+ const servePort = (0, internal_1.readTargetDefaultsForTarget)('serve', nxJson.targetDefaults)
10
+ ?.options?.port;
11
+ if (servePort) {
12
+ e2ePort = servePort;
12
13
  }
13
- return (0, e2e_web_server_info_utils_1.getE2EWebServerInfo)(tree, projectName, {
14
+ return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
14
15
  plugin: '@nx/webpack/plugin',
15
16
  serveTargetName: 'serveTargetName',
16
17
  serveStaticTargetName: 'serveStaticTargetName',
@@ -4,4 +4,3 @@ export type EnsureDependenciesOptions = {
4
4
  uiFramework?: 'none' | 'react';
5
5
  };
6
6
  export declare function ensureDependencies(tree: Tree, options: EnsureDependenciesOptions): GeneratorCallback;
7
- //# sourceMappingURL=ensure-dependencies.d.ts.map
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ensureDependencies = ensureDependencies;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const add_swc_dependencies_1 = require("@nx/js/src/utils/swc/add-swc-dependencies");
5
+ const internal_1 = require("@nx/js/internal");
6
6
  const versions_1 = require("./versions");
7
7
  function ensureDependencies(tree, options) {
8
8
  const tasks = [];
9
9
  const devDependencies = {};
10
10
  if (options.compiler === 'swc') {
11
11
  devDependencies['swc-loader'] = versions_1.swcLoaderVersion;
12
- const addSwcTask = (0, add_swc_dependencies_1.addSwcDependencies)(tree);
12
+ const addSwcTask = (0, internal_1.addSwcDependencies)(tree);
13
13
  tasks.push(addSwcTask);
14
14
  }
15
15
  if (options.compiler === 'tsc') {
@@ -21,6 +21,6 @@ function ensureDependencies(tree, options) {
21
21
  devDependencies['@svgr/webpack'] = versions_1.svgrWebpackVersion;
22
22
  devDependencies['react-refresh'] = versions_1.reactRefreshVersion;
23
23
  }
24
- tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies));
24
+ tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, undefined, true));
25
25
  return (0, devkit_1.runTasksInSerial)(...tasks);
26
26
  }
@@ -4,4 +4,3 @@ export declare function findAllNodeModules(from: string, root?: string): string[
4
4
  * Delete an output directory, but error out if it's the root of the project.
5
5
  */
6
6
  export declare function deleteOutputDir(root: string, outputPath: string): void;
7
- //# sourceMappingURL=fs.d.ts.map
@@ -3,4 +3,3 @@ export declare function getClientEnvironment(mode?: string): {
3
3
  'process.env': {};
4
4
  };
5
5
  };
6
- //# sourceMappingURL=get-client-environment.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
@@ -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
@@ -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
@@ -21,4 +21,3 @@ export interface CreateWebpackConfigOptions<T = any> {
21
21
  tsConfig: any;
22
22
  tsConfigPath: string;
23
23
  }
24
- //# sourceMappingURL=models.d.ts.map
@@ -3,4 +3,3 @@ export declare function runWebpackDevServer(config: any, webpack: typeof import(
3
3
  stats: any;
4
4
  baseUrl: string;
5
5
  }>;
6
- //# sourceMappingURL=run-webpack.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export declare const nxVersion: any;
3
+ export declare const swcLoaderVersion = "0.1.15";
4
+ export declare const tsLibVersion = "^2.3.0";
5
+ export declare const minSupportedWebpackVersion = "5.0.0";
6
+ export declare const webpackVersion = "^5.101.3";
7
+ export declare const webpackDevServerVersion = "^5.2.1";
8
+ export declare const webpackCliVersion = "^7.0.0";
9
+ export declare const reactRefreshWebpackPluginVersion = "^0.5.7";
10
+ export declare const svgrWebpackVersion = "^8.0.1";
11
+ export declare const reactRefreshVersion = "^0.10.0";
12
+ export declare function assertSupportedWebpackVersion(tree: Tree): void;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reactRefreshVersion = exports.svgrWebpackVersion = exports.reactRefreshWebpackPluginVersion = exports.webpackCliVersion = exports.webpackDevServerVersion = exports.webpackVersion = exports.minSupportedWebpackVersion = exports.tsLibVersion = exports.swcLoaderVersion = exports.nxVersion = void 0;
4
+ exports.assertSupportedWebpackVersion = assertSupportedWebpackVersion;
5
+ const path_1 = require("path");
6
+ const internal_1 = require("@nx/devkit/internal");
7
+ exports.nxVersion = require((0, path_1.join)('@nx/webpack', 'package.json')).version;
8
+ exports.swcLoaderVersion = '0.1.15';
9
+ exports.tsLibVersion = '^2.3.0';
10
+ // Floor for the generator-level support check. The plugin's runtime code uses
11
+ // webpack 5-only APIs (e.g. `ids.HashedModuleIdsPlugin`, `webpack.sources`,
12
+ // `experiments.cacheUnaffected`), so webpack 5 is the supported floor.
13
+ exports.minSupportedWebpackVersion = '5.0.0';
14
+ // Fresh-install versions written when the package is not already present.
15
+ exports.webpackVersion = '^5.101.3';
16
+ exports.webpackDevServerVersion = '^5.2.1';
17
+ exports.webpackCliVersion = '^7.0.0';
18
+ // React apps
19
+ exports.reactRefreshWebpackPluginVersion = '^0.5.7';
20
+ exports.svgrWebpackVersion = '^8.0.1';
21
+ exports.reactRefreshVersion = '^0.10.0';
22
+ function assertSupportedWebpackVersion(tree) {
23
+ (0, internal_1.assertSupportedPackageVersion)(tree, 'webpack', exports.minSupportedWebpackVersion);
24
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
1
3
  module.exports = require('babel-loader').custom(() => {
2
4
  return {
3
5
  customOptions({ isTest, isModern, emitDecoratorMetadata, ...loader }) {
@@ -0,0 +1,19 @@
1
+ const lessLoader = require('less-loader');
2
+
3
+ module.exports = function (...args) {
4
+ if (!process.env.__NX_LESS_DEPRECATION_WARNED) {
5
+ process.env.__NX_LESS_DEPRECATION_WARNED = '1';
6
+ console.warn(
7
+ '\n⚠️ Less support in Nx is deprecated and will be removed in a future version.\n' +
8
+ ' Please migrate to CSS or SCSS.\n' +
9
+ ' Existing .less imports continue to compile, but Nx generators no longer\n' +
10
+ ' accept --style=less. To add new Less files, install less-loader manually\n' +
11
+ ' and generate with --style=css, then rename the file to .less.\n'
12
+ );
13
+ }
14
+ return lessLoader.apply(this, args);
15
+ };
16
+
17
+ if (lessLoader.raw) {
18
+ module.exports.raw = lessLoader.raw;
19
+ }
@@ -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 '../models';
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
@@ -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
@@ -15,4 +15,3 @@ export declare class ScriptsWebpackPlugin {
15
15
  private _insertOutput;
16
16
  apply(compiler: webpack.Compiler): void;
17
17
  }
18
- //# sourceMappingURL=scripts-webpack-plugin.d.ts.map
@@ -9,4 +9,3 @@ import { Configuration } from 'webpack';
9
9
  * @param webpackConfig
10
10
  */
11
11
  export declare function readWebpackOptions(webpackConfig: unknown): Promise<Configuration[]>;
12
- //# sourceMappingURL=read-webpack-options.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare function resolveUserDefinedWebpackConfig(path: string, tsConfig: string,
2
2
  /** Skip require cache and return latest content */
3
3
  reload?: boolean): any;
4
- //# sourceMappingURL=resolve-user-defined-webpack-config.d.ts.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveUserDefinedWebpackConfig = resolveUserDefinedWebpackConfig;
4
- const internal_1 = require("@nx/js/src/internal");
5
- const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
4
+ const internal_1 = require("@nx/devkit/internal");
5
+ const internal_2 = require("@nx/js/internal");
6
6
  function resolveUserDefinedWebpackConfig(path, tsConfig,
7
7
  /** Skip require cache and return latest content */
8
8
  reload = false) {
@@ -10,7 +10,7 @@ reload = false) {
10
10
  // Clear cache if the path is in the cache
11
11
  if (require.cache[path]) {
12
12
  // Clear all entries because config may import other modules
13
- (0, config_utils_1.clearRequireCache)();
13
+ (0, internal_1.clearRequireCache)();
14
14
  }
15
15
  }
16
16
  // Don't transpile non-TS files. This prevents workspaces libs from being registered via tsconfig-paths.
@@ -18,9 +18,7 @@ reload = false) {
18
18
  if (!/\.(ts|mts|cts)$/.test(path)) {
19
19
  return require(path);
20
20
  }
21
- const cleanupTranspiler = (0, internal_1.registerTsProject)(tsConfig);
22
- const maybeCustomWebpackConfig = require(path);
23
- cleanupTranspiler();
21
+ const maybeCustomWebpackConfig = (0, internal_2.loadTsFile)(path, tsConfig);
24
22
  // If the user provides a configuration in TS file
25
23
  // then there are 3 cases for exporing an object. The first one is:
26
24
  // `module.exports = { ... }`. And the second one is:
@@ -2,8 +2,11 @@ import { NxComposableWebpackPlugin } from './config';
2
2
  import { NxAppWebpackPluginOptions } from '../plugins/nx-webpack-plugin/nx-app-webpack-plugin-options';
3
3
  export type WithNxOptions = Partial<NxAppWebpackPluginOptions>;
4
4
  /**
5
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
6
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
7
+ * `nx g @nx/webpack: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 {NxWebpackPlugin}
7
11
  */
8
12
  export declare function withNx(pluginOptions?: WithNxOptions): NxComposableWebpackPlugin;
9
- //# sourceMappingURL=with-nx.d.ts.map
@@ -3,12 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withNx = withNx;
4
4
  const apply_base_config_1 = require("../plugins/nx-webpack-plugin/lib/apply-base-config");
5
5
  const normalize_options_1 = require("../plugins/nx-webpack-plugin/lib/normalize-options");
6
+ const deprecation_1 = require("./deprecation");
6
7
  const processed = new Set();
7
8
  /**
9
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
10
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
11
+ * `nx g @nx/webpack:convert-to-inferred`. See
12
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
8
13
  * @param {WithNxOptions} pluginOptions
9
14
  * @returns {NxWebpackPlugin}
10
15
  */
11
16
  function withNx(pluginOptions = {}) {
17
+ (0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
12
18
  return function configure(config, { options, context }) {
13
19
  if (processed.has(config))
14
20
  return config;
@@ -20,8 +20,11 @@ export interface WithWebOptions {
20
20
  }
21
21
  export type MergedOptions = Omit<NormalizedWebpackExecutorOptions, keyof WithWebOptions> & WithWebOptions;
22
22
  /**
23
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
24
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
25
+ * `nx g @nx/webpack:convert-to-inferred`. See
26
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
23
27
  * @param {WithWebOptions} pluginOptions
24
28
  * @returns {NxWebpackPlugin}
25
29
  */
26
30
  export declare function withWeb(pluginOptions?: WithWebOptions): NxComposableWebpackPlugin;
27
- //# sourceMappingURL=with-web.d.ts.map
@@ -2,12 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withWeb = withWeb;
4
4
  const apply_web_config_1 = require("../plugins/nx-webpack-plugin/lib/apply-web-config");
5
+ const deprecation_1 = require("./deprecation");
5
6
  const processed = new Set();
6
7
  /**
8
+ * @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
9
+ * `@nx/webpack/app-plugin` in a standard webpack config and run
10
+ * `nx g @nx/webpack:convert-to-inferred`. See
11
+ * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
7
12
  * @param {WithWebOptions} pluginOptions
8
13
  * @returns {NxWebpackPlugin}
9
14
  */
10
15
  function withWeb(pluginOptions = {}) {
16
+ (0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
11
17
  return function configure(config, { options, context }) {
12
18
  if (processed.has(config))
13
19
  return config;
@@ -1,2 +1 @@
1
1
  export { NxTsconfigPathsWebpackPlugin } from './src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin';
2
- //# sourceMappingURL=tsconfig-paths-plugin.d.ts.map
package/executors.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "executors": {
3
3
  "webpack": {
4
- "implementation": "./src/executors/webpack/webpack.impl",
5
- "schema": "./src/executors/webpack/schema.json",
4
+ "implementation": "./dist/src/executors/webpack/webpack.impl",
5
+ "schema": "./dist/src/executors/webpack/schema.json",
6
6
  "description": "Run webpack build."
7
7
  },
8
8
  "dev-server": {
9
- "implementation": "./src/executors/dev-server/dev-server.impl",
10
- "schema": "./src/executors/dev-server/schema.json",
9
+ "implementation": "./dist/src/executors/dev-server/dev-server.impl",
10
+ "schema": "./dist/src/executors/dev-server/schema.json",
11
11
  "description": "Serve a web application."
12
12
  },
13
13
  "ssr-dev-server": {
14
- "implementation": "./src/executors/ssr-dev-server/ssr-dev-server.impl",
15
- "schema": "./src/executors/ssr-dev-server/schema.json",
14
+ "implementation": "./dist/src/executors/ssr-dev-server/ssr-dev-server.impl",
15
+ "schema": "./dist/src/executors/ssr-dev-server/schema.json",
16
16
  "description": "Serve a SSR application."
17
17
  }
18
18
  }
package/generators.json CHANGED
@@ -3,27 +3,27 @@
3
3
  "version": "0.1",
4
4
  "generators": {
5
5
  "init": {
6
- "factory": "./src/generators/init/init#webpackInitGeneratorInternal",
7
- "schema": "./src/generators/init/schema.json",
6
+ "factory": "./dist/src/generators/init/init#webpackInitGeneratorInternal",
7
+ "schema": "./dist/src/generators/init/schema.json",
8
8
  "description": "Initialize the `@nx/webpack` plugin.",
9
9
  "aliases": ["ng-add"],
10
10
  "hidden": true
11
11
  },
12
12
  "configuration": {
13
13
  "aliases": ["webpack-project"],
14
- "factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
15
- "schema": "./src/generators/configuration/schema.json",
14
+ "factory": "./dist/src/generators/configuration/configuration#configurationGeneratorInternal",
15
+ "schema": "./dist/src/generators/configuration/schema.json",
16
16
  "description": "Add webpack configuration to a project.",
17
17
  "hidden": true
18
18
  },
19
19
  "convert-config-to-webpack-plugin": {
20
- "factory": "./src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin",
21
- "schema": "./src/generators/convert-config-to-webpack-plugin/schema.json",
20
+ "factory": "./dist/src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin",
21
+ "schema": "./dist/src/generators/convert-config-to-webpack-plugin/schema.json",
22
22
  "description": "Convert the project to use the `NxAppWebpackPlugin` and `NxReactWebpackPlugin`."
23
23
  },
24
24
  "convert-to-inferred": {
25
- "factory": "./src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
26
- "schema": "./src/generators/convert-to-inferred/schema.json",
25
+ "factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
26
+ "schema": "./dist/src/generators/convert-to-inferred/schema.json",
27
27
  "description": "Convert existing Webpack project(s) using `@nx/webpack:wepack` executor to use `@nx/webpack/plugin`."
28
28
  }
29
29
  }
package/migrations.json CHANGED
@@ -4,44 +4,58 @@
4
4
  "cli": "nx",
5
5
  "version": "21.0.0-beta.11",
6
6
  "description": "Remove isolatedConfig option for @nx/webpack:webpack",
7
- "implementation": "./src/migrations/update-21-0-0/remove-isolated-config"
7
+ "implementation": "./dist/src/migrations/update-21-0-0/remove-isolated-config",
8
+ "documentation": "./dist/src/migrations/update-21-0-0/remove-isolated-config.md"
8
9
  },
9
10
  "update-22-0-0-remove-deprecated-options": {
10
11
  "cli": "nx",
11
12
  "version": "22.0.0-beta.0",
12
13
  "description": "Remove deprecated deleteOutputPath and sassImplementation options from @nx/webpack:webpack",
13
- "implementation": "./src/migrations/update-22-0-0/remove-deprecated-options"
14
+ "implementation": "./dist/src/migrations/update-22-0-0/remove-deprecated-options"
15
+ },
16
+ "update-23-0-0-remove-nx-tsconfig-paths-webpack-plugin-import": {
17
+ "cli": "nx",
18
+ "version": "23.0.0-beta.10",
19
+ "description": "Rewrites imports of NxTsconfigPathsWebpackPlugin from '@nx/webpack' to the sub-path '@nx/webpack/tsconfig-paths-plugin'.",
20
+ "factory": "./dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import",
21
+ "documentation": "./dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.md"
22
+ },
23
+ "rewrite-webpack-internal-subpath-imports": {
24
+ "version": "23.0.0-beta.24",
25
+ "description": "Rewrites `@nx/webpack/src/*` subpath imports now that the `./src/*` subpath is no longer exposed by `@nx/webpack`'s exports map. Named imports/exports of public symbols are routed to `@nx/webpack` and the rest to the new `@nx/webpack/internal` entry; `require`, dynamic `import` and `jest.mock` calls reference the whole module and are routed to `@nx/webpack/internal`.",
26
+ "implementation": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
27
+ },
28
+ "update-23-0-0-migrate-create-nodes-v2-import": {
29
+ "version": "23.0.0-beta.24",
30
+ "description": "Rename imports of `createNodesV2` from `@nx/webpack/plugin` to the canonical `createNodes` export.",
31
+ "implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
32
+ "documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
14
33
  }
15
34
  },
16
35
  "packageJsonUpdates": {
17
- "20.5.0": {
18
- "version": "20.5.0-beta.3",
36
+ "21.5.0": {
37
+ "version": "21.5.0-beta.0",
19
38
  "packages": {
20
- "sass-loader": {
21
- "version": "^16.0.4",
39
+ "webpack": {
40
+ "version": "5.101.3",
22
41
  "alwaysAddToPackageJson": false
23
42
  }
24
43
  }
25
44
  },
26
- "20.7.1": {
27
- "version": "20.7.1-beta.0",
45
+ "23.0.0": {
46
+ "version": "23.0.0-beta.24",
28
47
  "packages": {
29
48
  "webpack": {
30
- "version": "5.98.0",
31
- "alwaysAddToPackageJson": false
49
+ "version": "^5.101.3",
50
+ "alwaysAddToPackageJson": "devDependencies"
32
51
  },
33
52
  "webpack-dev-server": {
34
53
  "version": "^5.2.1",
35
- "alwaysAddToPackageJson": false
36
- }
37
- }
38
- },
39
- "21.5.0": {
40
- "version": "21.5.0-beta.0",
41
- "packages": {
42
- "webpack": {
43
- "version": "5.101.3",
44
- "alwaysAddToPackageJson": false
54
+ "alwaysAddToPackageJson": "devDependencies"
55
+ },
56
+ "webpack-cli": {
57
+ "version": "^7.0.0",
58
+ "alwaysAddToPackageJson": "devDependencies"
45
59
  }
46
60
  }
47
61
  }