@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.
- package/{app-plugin.d.ts → dist/app-plugin.d.ts} +0 -1
- package/{module-federation.d.ts → dist/module-federation.d.ts} +0 -1
- package/dist/plugin.d.ts +2 -0
- package/{plugin.js → dist/plugin.js} +2 -1
- package/{react-plugin.d.ts → dist/react-plugin.d.ts} +0 -1
- package/dist/readme-template.md +18 -0
- package/{src → dist/src}/executors/dev-server/dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/lib/serve-path.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-dev-server/module-federation-dev-server.impl.js +5 -6
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +4 -4
- package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.d.ts +1 -1
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.d.ts +1 -2
- package/{src → dist/src}/executors/module-federation-static-server/module-federation-static-server.impl.js +9 -12
- package/{src → dist/src}/executors/rspack/lib/config.d.ts +0 -1
- package/{src → dist/src}/executors/rspack/lib/config.js +5 -2
- package/{src → dist/src}/executors/rspack/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/rspack/rspack.impl.d.ts +0 -1
- package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts +0 -1
- package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/validate-project.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +1 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/ast.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/index.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/types.d.ts +0 -1
- package/{src → dist/src}/generators/convert-webpack/convert-webpack.d.ts +0 -1
- package/{src → dist/src}/generators/convert-webpack/lib/transform-cjs.d.ts +0 -1
- package/{src → dist/src}/generators/convert-webpack/lib/transform-esm.d.ts +0 -1
- package/{src → dist/src}/generators/convert-webpack/lib/transform-plugin-config.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +3 -4
- package/{src → dist/src}/index.d.ts +0 -1
- package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts +0 -1
- package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts +0 -1
- package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.d.ts +0 -1
- package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/plugins/generate-package-json-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/plugin.d.ts +6 -3
- package/{src → dist/src}/plugins/plugin.js +6 -2
- package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/apply-base-config.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/apply-react-config.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/apply-web-config.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/get-css-module-local-ident.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/get-non-buildable-libs.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/get-terser-ecma-version.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/get-transitive-deps.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/hash-format.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/instantiate-script-plugins.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/is-lib-buildable.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/loaders/stylesheet-loaders.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/models.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/normalize-entry.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/generate-package-json-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/normalize-options.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/postcss-cli-resources.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/rspack-nx-build-coordination-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/scripts-rspack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/utils/plugins/stats-json-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/write-index-html-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/assert-supported-rspack-version.d.ts +0 -1
- package/{src → dist/src}/utils/config.d.ts +14 -1
- package/{src → dist/src}/utils/config.js +17 -0
- package/{src → dist/src}/utils/create-compiler.d.ts +0 -1
- package/{src → dist/src}/utils/deprecation.d.ts +3 -1
- package/dist/src/utils/deprecation.js +50 -0
- package/{src → dist/src}/utils/e2e-web-server-info-utils.d.ts +0 -1
- package/{src → dist/src}/utils/generator-utils.d.ts +0 -1
- package/{src → dist/src}/utils/get-copy-patterns.d.ts +0 -1
- package/{src → dist/src}/utils/has-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/jest-utils.d.ts +0 -1
- package/{src → dist/src}/utils/mode-utils.d.ts +0 -1
- package/{src → dist/src}/utils/model.d.ts +0 -1
- package/{src → dist/src}/utils/module-federation-deprecation.d.ts +0 -1
- package/{src → dist/src}/utils/normalize-assets.d.ts +0 -1
- package/{src → dist/src}/utils/read-rspack-options.d.ts +0 -1
- package/{src → dist/src}/utils/resolve-user-defined-rspack-config.d.ts +0 -1
- package/{src → dist/src}/utils/version-utils.d.ts +0 -1
- package/{src → dist/src}/utils/versions.d.ts +0 -1
- package/{src → dist/src}/utils/versions.js +2 -1
- package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/normalize-entry.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/package-chunk-sort.d.ts +0 -1
- package/{src → dist/src}/utils/with-nx.d.ts +4 -1
- package/{src → dist/src}/utils/with-nx.js +6 -0
- package/{src → dist/src}/utils/with-react.d.ts +6 -1
- package/{src → dist/src}/utils/with-react.js +8 -0
- package/{src → dist/src}/utils/with-web.d.ts +6 -1
- package/{src → dist/src}/utils/with-web.js +8 -0
- package/executors.json +12 -12
- package/generators.json +10 -10
- package/migrations.json +13 -7
- package/package.json +113 -9
- package/app-plugin.d.ts.map +0 -1
- package/module-federation.d.ts.map +0 -1
- package/plugin.d.ts +0 -3
- package/plugin.d.ts.map +0 -1
- package/react-plugin.d.ts.map +0 -1
- package/src/executors/dev-server/dev-server.impl.d.ts.map +0 -1
- package/src/executors/dev-server/lib/get-dev-server-config.d.ts.map +0 -1
- package/src/executors/dev-server/lib/serve-path.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/index.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/lib/start-remotes.d.ts.map +0 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +0 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +0 -1
- package/src/executors/rspack/lib/config.d.ts.map +0 -1
- package/src/executors/rspack/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/rspack/rspack.impl.d.ts.map +0 -1
- package/src/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts.map +0 -1
- package/src/executors/ssr-dev-server/ssr-dev-server.impl.d.ts.map +0 -1
- package/src/generators/configuration/configuration.d.ts.map +0 -1
- package/src/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.d.ts.map +0 -1
- package/src/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.d.ts.map +0 -1
- package/src/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.d.ts.map +0 -1
- package/src/generators/convert-config-to-rspack-plugin/lib/utils.d.ts.map +0 -1
- package/src/generators/convert-config-to-rspack-plugin/lib/validate-project.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/ast.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/index.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/types.d.ts.map +0 -1
- package/src/generators/convert-webpack/convert-webpack.d.ts.map +0 -1
- package/src/generators/convert-webpack/lib/transform-cjs.d.ts.map +0 -1
- package/src/generators/convert-webpack/lib/transform-esm.d.ts.map +0 -1
- package/src/generators/convert-webpack/lib/transform-plugin-config.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/index.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/remove-deprecated-options.d.ts.map +0 -1
- package/src/migrations/update-23-0-0/add-svgr-to-rspack-config.d.ts.map +0 -1
- package/src/plugins/generate-package-json-plugin.d.ts.map +0 -1
- package/src/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.d.ts.map +0 -1
- package/src/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts.map +0 -1
- package/src/plugins/utils/apply-base-config.d.ts.map +0 -1
- package/src/plugins/utils/apply-react-config.d.ts.map +0 -1
- package/src/plugins/utils/apply-web-config.d.ts.map +0 -1
- package/src/plugins/utils/get-css-module-local-ident.d.ts.map +0 -1
- package/src/plugins/utils/get-non-buildable-libs.d.ts.map +0 -1
- package/src/plugins/utils/get-terser-ecma-version.d.ts.map +0 -1
- package/src/plugins/utils/get-transitive-deps.d.ts.map +0 -1
- package/src/plugins/utils/hash-format.d.ts.map +0 -1
- package/src/plugins/utils/instantiate-script-plugins.d.ts.map +0 -1
- package/src/plugins/utils/is-lib-buildable.d.ts.map +0 -1
- package/src/plugins/utils/loaders/stylesheet-loaders.d.ts.map +0 -1
- package/src/plugins/utils/models.d.ts.map +0 -1
- package/src/plugins/utils/normalize-entry.d.ts.map +0 -1
- package/src/plugins/utils/plugins/generate-package-json-plugin.d.ts.map +0 -1
- package/src/plugins/utils/plugins/normalize-options.d.ts.map +0 -1
- package/src/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.d.ts.map +0 -1
- package/src/plugins/utils/plugins/postcss-cli-resources.d.ts.map +0 -1
- package/src/plugins/utils/plugins/rspack-nx-build-coordination-plugin.d.ts.map +0 -1
- package/src/plugins/utils/plugins/scripts-rspack-plugin.d.ts.map +0 -1
- package/src/plugins/utils/plugins/stats-json-plugin.d.ts.map +0 -1
- package/src/plugins/write-index-html-plugin.d.ts.map +0 -1
- package/src/utils/assert-supported-rspack-version.d.ts.map +0 -1
- package/src/utils/config.d.ts.map +0 -1
- package/src/utils/create-compiler.d.ts.map +0 -1
- package/src/utils/deprecation.d.ts.map +0 -1
- package/src/utils/deprecation.js +0 -21
- package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
- package/src/utils/generator-utils.d.ts.map +0 -1
- package/src/utils/get-copy-patterns.d.ts.map +0 -1
- package/src/utils/has-plugin.d.ts.map +0 -1
- package/src/utils/jest-utils.d.ts.map +0 -1
- package/src/utils/mode-utils.d.ts.map +0 -1
- package/src/utils/model.d.ts.map +0 -1
- package/src/utils/module-federation-deprecation.d.ts.map +0 -1
- package/src/utils/normalize-assets.d.ts.map +0 -1
- package/src/utils/read-rspack-options.d.ts.map +0 -1
- package/src/utils/resolve-user-defined-rspack-config.d.ts.map +0 -1
- package/src/utils/version-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/webpack/interpolate-env-variables-to-index.d.ts.map +0 -1
- package/src/utils/webpack/normalize-entry.d.ts.map +0 -1
- package/src/utils/webpack/package-chunk-sort.d.ts.map +0 -1
- package/src/utils/with-nx.d.ts.map +0 -1
- package/src/utils/with-react.d.ts.map +0 -1
- package/src/utils/with-web.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{app-plugin.js → dist/app-plugin.js} +0 -0
- /package/{module-federation.js → dist/module-federation.js} +0 -0
- /package/{react-plugin.js → dist/react-plugin.js} +0 -0
- /package/{src → dist/src}/executors/dev-server/dev-server.impl.js +0 -0
- /package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.js +0 -0
- /package/{src → dist/src}/executors/dev-server/lib/serve-path.js +0 -0
- /package/{src → dist/src}/executors/dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/module-federation-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/index.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/lib/start-remotes.js +0 -0
- /package/{src → dist/src}/executors/module-federation-ssr-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/module-federation-static-server/schema.json +0 -0
- /package/{src → dist/src}/executors/rspack/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/executors/rspack/rspack.impl.js +0 -0
- /package/{src → dist/src}/executors/rspack/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/rspack/schema.json +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.js +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/schema.json +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.js +0 -0
- /package/{src → dist/src}/generators/configuration/configuration.js +0 -0
- /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/extract-rspack-options.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/normalize-path-options.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/lib/validate-project.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-rspack-plugin/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/ast.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/index.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/types.js +0 -0
- /package/{src → dist/src}/generators/convert-webpack/convert-webpack.js +0 -0
- /package/{src → dist/src}/generators/convert-webpack/lib/transform-cjs.js +0 -0
- /package/{src → dist/src}/generators/convert-webpack/lib/transform-esm.js +0 -0
- /package/{src → dist/src}/generators/convert-webpack/lib/transform-plugin-config.js +0 -0
- /package/{src → dist/src}/generators/convert-webpack/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/convert-webpack/schema.json +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/init/schema.json +0 -0
- /package/{src → dist/src}/index.js +0 -0
- /package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +0 -0
- /package/{src → dist/src}/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +0 -0
- /package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.js +0 -0
- /package/{src → dist/src}/migrations/update-20-3-0/ensure-nx-module-federation-package.md +0 -0
- /package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.js +0 -0
- /package/{src → dist/src}/migrations/update-23-0-0/add-svgr-to-rspack-config.md +0 -0
- /package/{src → dist/src}/plugins/generate-package-json-plugin.js +0 -0
- /package/{src → dist/src}/plugins/nx-app-rspack-plugin/nx-app-rspack-plugin.js +0 -0
- /package/{src → dist/src}/plugins/nx-react-rspack-plugin/nx-react-rspack-plugin.js +0 -0
- /package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.js +0 -0
- /package/{src → dist/src}/plugins/utils/apply-base-config.js +0 -0
- /package/{src → dist/src}/plugins/utils/apply-react-config.js +0 -0
- /package/{src → dist/src}/plugins/utils/apply-web-config.js +0 -0
- /package/{src → dist/src}/plugins/utils/get-css-module-local-ident.js +0 -0
- /package/{src → dist/src}/plugins/utils/get-non-buildable-libs.js +0 -0
- /package/{src → dist/src}/plugins/utils/get-terser-ecma-version.js +0 -0
- /package/{src → dist/src}/plugins/utils/get-transitive-deps.js +0 -0
- /package/{src → dist/src}/plugins/utils/hash-format.js +0 -0
- /package/{src → dist/src}/plugins/utils/instantiate-script-plugins.js +0 -0
- /package/{src → dist/src}/plugins/utils/is-lib-buildable.js +0 -0
- /package/{src → dist/src}/plugins/utils/loaders/deprecated-less-loader.js +0 -0
- /package/{src → dist/src}/plugins/utils/loaders/stylesheet-loaders.js +0 -0
- /package/{src → dist/src}/plugins/utils/models.js +0 -0
- /package/{src → dist/src}/plugins/utils/normalize-entry.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/generate-package-json-plugin.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/normalize-options.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/nx-tsconfig-paths-rspack-plugin.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/postcss-cli-resources.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/rspack-nx-build-coordination-plugin.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/scripts-rspack-plugin.js +0 -0
- /package/{src → dist/src}/plugins/utils/plugins/stats-json-plugin.js +0 -0
- /package/{src → dist/src}/plugins/write-index-html-plugin.js +0 -0
- /package/{src → dist/src}/utils/assert-supported-rspack-version.js +0 -0
- /package/{src → dist/src}/utils/create-compiler.js +0 -0
- /package/{src → dist/src}/utils/e2e-web-server-info-utils.js +0 -0
- /package/{src → dist/src}/utils/generator-utils.js +0 -0
- /package/{src → dist/src}/utils/get-copy-patterns.js +0 -0
- /package/{src → dist/src}/utils/has-plugin.js +0 -0
- /package/{src → dist/src}/utils/jest-utils.js +0 -0
- /package/{src → dist/src}/utils/mode-utils.js +0 -0
- /package/{src → dist/src}/utils/model.js +0 -0
- /package/{src → dist/src}/utils/module-federation-deprecation.js +0 -0
- /package/{src → dist/src}/utils/normalize-assets.js +0 -0
- /package/{src → dist/src}/utils/read-rspack-options.js +0 -0
- /package/{src → dist/src}/utils/resolve-user-defined-rspack-config.js +0 -0
- /package/{src → dist/src}/utils/version-utils.js +0 -0
- /package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.js +0 -0
- /package/{src → dist/src}/utils/webpack/normalize-entry.js +0 -0
- /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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateDependencies,
|
|
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
|
|
12
|
-
|
|
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.
|
|
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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
-
|
|
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
|
|
@@ -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,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
|
-
|
|
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';
|
|
@@ -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
|