@nx/rspack 23.0.0-beta.23 → 23.0.0-beta.25
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/{plugin.d.ts → dist/plugin.d.ts} +0 -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/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 +2 -3
- package/{src → dist/src}/index.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 +0 -1
- 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 +9 -43
- package/package.json +115 -11
- package/app-plugin.d.ts.map +0 -1
- package/module-federation.d.ts.map +0 -1
- 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 +0 -3
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.d.ts.map +0 -1
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.js +0 -41
- package/src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package.md +0 -25
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts +0 -3
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.d.ts.map +0 -1
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.js +0 -18
- package/src/migrations/update-20-3-0/ensure-nx-module-federation-package.md +0 -23
- 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/{plugin.js → dist/plugin.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/convert-to-inferred.js +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-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/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
|
@@ -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
|
|
@@ -3,12 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withNx = withNx;
|
|
4
4
|
const normalize_assets_1 = require("./normalize-assets");
|
|
5
5
|
const apply_base_config_1 = require("../plugins/utils/apply-base-config");
|
|
6
|
+
const deprecation_1 = require("./deprecation");
|
|
6
7
|
const processed = new Set();
|
|
7
8
|
/**
|
|
9
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
|
|
10
|
+
* `@nx/rspack/app-plugin` in a standard rspack config and run
|
|
11
|
+
* `nx g @nx/rspack: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 {NxComposableRspackPlugin}
|
|
10
15
|
*/
|
|
11
16
|
function withNx(pluginOptions = {}) {
|
|
17
|
+
(0, deprecation_1.warnRspackComposeHelpersDeprecation)();
|
|
12
18
|
return function makeConfig(config, { options, context }) {
|
|
13
19
|
if (processed.has(config))
|
|
14
20
|
return config;
|
|
@@ -3,5 +3,10 @@ import { NxRspackExecutionContext } from './config';
|
|
|
3
3
|
import { WithWebOptions } from './with-web';
|
|
4
4
|
export interface WithReactOptions extends WithWebOptions {
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Will be removed in Nx v24. Use `NxReactRspackPlugin` from
|
|
8
|
+
* `@nx/rspack/react-plugin` in a standard rspack config and run
|
|
9
|
+
* `nx g @nx/rspack:convert-to-inferred`. See
|
|
10
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
11
|
+
*/
|
|
6
12
|
export declare function withReact(opts?: WithReactOptions): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration;
|
|
7
|
-
//# sourceMappingURL=with-react.d.ts.map
|
|
@@ -3,7 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withReact = withReact;
|
|
4
4
|
const with_web_1 = require("./with-web");
|
|
5
5
|
const apply_react_config_1 = require("../plugins/utils/apply-react-config");
|
|
6
|
+
const deprecation_1 = require("./deprecation");
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Will be removed in Nx v24. Use `NxReactRspackPlugin` from
|
|
9
|
+
* `@nx/rspack/react-plugin` in a standard rspack config and run
|
|
10
|
+
* `nx g @nx/rspack:convert-to-inferred`. See
|
|
11
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
12
|
+
*/
|
|
6
13
|
function withReact(opts = {}) {
|
|
14
|
+
(0, deprecation_1.warnRspackComposeHelpersDeprecation)();
|
|
7
15
|
return function makeConfig(config, { options, context }) {
|
|
8
16
|
config = (0, with_web_1.withWeb)({ ...opts, cssModules: true })(config, {
|
|
9
17
|
options,
|
|
@@ -27,5 +27,10 @@ export interface WithWebOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
templateParameters?: Record<string, string> | boolean | ((params: Record<string, any>) => Record<string, any> | Promise<Record<string, any>>);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
|
|
32
|
+
* `@nx/rspack/app-plugin` in a standard rspack config and run
|
|
33
|
+
* `nx g @nx/rspack:convert-to-inferred`. See
|
|
34
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
35
|
+
*/
|
|
30
36
|
export declare function withWeb(pluginOptions?: WithWebOptions): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration;
|
|
31
|
-
//# sourceMappingURL=with-web.d.ts.map
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withWeb = withWeb;
|
|
4
4
|
const apply_web_config_1 = require("../plugins/utils/apply-web-config");
|
|
5
|
+
const deprecation_1 = require("./deprecation");
|
|
5
6
|
const processed = new Set();
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppRspackPlugin` from
|
|
9
|
+
* `@nx/rspack/app-plugin` in a standard rspack config and run
|
|
10
|
+
* `nx g @nx/rspack:convert-to-inferred`. See
|
|
11
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
12
|
+
*/
|
|
6
13
|
function withWeb(pluginOptions = {}) {
|
|
14
|
+
(0, deprecation_1.warnRspackComposeHelpersDeprecation)();
|
|
7
15
|
return function makeConfig(config, { options, context }) {
|
|
8
16
|
if (processed.has(config)) {
|
|
9
17
|
return config;
|
package/executors.json
CHANGED
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"executors": {
|
|
4
4
|
"rspack": {
|
|
5
|
-
"implementation": "./src/executors/rspack/rspack.impl",
|
|
6
|
-
"schema": "./src/executors/rspack/schema.json",
|
|
5
|
+
"implementation": "./dist/src/executors/rspack/rspack.impl",
|
|
6
|
+
"schema": "./dist/src/executors/rspack/schema.json",
|
|
7
7
|
"description": "Run Rspack via an executor for a project."
|
|
8
8
|
},
|
|
9
9
|
"dev-server": {
|
|
10
|
-
"implementation": "./src/executors/dev-server/dev-server.impl",
|
|
11
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
10
|
+
"implementation": "./dist/src/executors/dev-server/dev-server.impl",
|
|
11
|
+
"schema": "./dist/src/executors/dev-server/schema.json",
|
|
12
12
|
"description": "Run @rspack/dev-server to serve a project."
|
|
13
13
|
},
|
|
14
14
|
"ssr-dev-server": {
|
|
15
|
-
"implementation": "./src/executors/ssr-dev-server/ssr-dev-server.impl",
|
|
16
|
-
"schema": "./src/executors/ssr-dev-server/schema.json",
|
|
15
|
+
"implementation": "./dist/src/executors/ssr-dev-server/ssr-dev-server.impl",
|
|
16
|
+
"schema": "./dist/src/executors/ssr-dev-server/schema.json",
|
|
17
17
|
"description": "Serve a SSR application."
|
|
18
18
|
},
|
|
19
19
|
"module-federation-dev-server": {
|
|
20
|
-
"implementation": "./src/executors/module-federation-dev-server/module-federation-dev-server.impl",
|
|
21
|
-
"schema": "./src/executors/module-federation-dev-server/schema.json",
|
|
20
|
+
"implementation": "./dist/src/executors/module-federation-dev-server/module-federation-dev-server.impl",
|
|
21
|
+
"schema": "./dist/src/executors/module-federation-dev-server/schema.json",
|
|
22
22
|
"description": "Serve a host or remote application."
|
|
23
23
|
},
|
|
24
24
|
"module-federation-ssr-dev-server": {
|
|
25
|
-
"implementation": "./src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl",
|
|
26
|
-
"schema": "./src/executors/module-federation-ssr-dev-server/schema.json",
|
|
25
|
+
"implementation": "./dist/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl",
|
|
26
|
+
"schema": "./dist/src/executors/module-federation-ssr-dev-server/schema.json",
|
|
27
27
|
"description": "Serve a host application along with it's known remotes."
|
|
28
28
|
},
|
|
29
29
|
"module-federation-static-server": {
|
|
30
|
-
"implementation": "./src/executors/module-federation-static-server/module-federation-static-server.impl",
|
|
31
|
-
"schema": "./src/executors/module-federation-static-server/schema.json",
|
|
30
|
+
"implementation": "./dist/src/executors/module-federation-static-server/module-federation-static-server.impl",
|
|
31
|
+
"schema": "./dist/src/executors/module-federation-static-server/schema.json",
|
|
32
32
|
"description": "Serve a host and its remotes statically."
|
|
33
33
|
}
|
|
34
34
|
}
|
package/generators.json
CHANGED
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"generators": {
|
|
6
6
|
"configuration": {
|
|
7
|
-
"factory": "./src/generators/configuration/configuration",
|
|
8
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
7
|
+
"factory": "./dist/src/generators/configuration/configuration",
|
|
8
|
+
"schema": "./dist/src/generators/configuration/schema.json",
|
|
9
9
|
"description": "Rspack configuration generator."
|
|
10
10
|
},
|
|
11
11
|
"init": {
|
|
12
|
-
"factory": "./src/generators/init/init",
|
|
13
|
-
"schema": "./src/generators/init/schema.json",
|
|
12
|
+
"factory": "./dist/src/generators/init/init",
|
|
13
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
14
14
|
"description": "Rspack init generator.",
|
|
15
15
|
"hidden": true
|
|
16
16
|
},
|
|
17
17
|
"convert-webpack": {
|
|
18
18
|
"aliases": ["convert-to-rspack"],
|
|
19
|
-
"factory": "./src/generators/convert-webpack/convert-webpack",
|
|
20
|
-
"schema": "./src/generators/convert-webpack/schema.json",
|
|
19
|
+
"factory": "./dist/src/generators/convert-webpack/convert-webpack",
|
|
20
|
+
"schema": "./dist/src/generators/convert-webpack/schema.json",
|
|
21
21
|
"description": "Convert a webpack application to use rspack."
|
|
22
22
|
},
|
|
23
23
|
"convert-config-to-rspack-plugin": {
|
|
24
|
-
"factory": "./src/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin",
|
|
25
|
-
"schema": "./src/generators/convert-config-to-rspack-plugin/schema.json",
|
|
24
|
+
"factory": "./dist/src/generators/convert-config-to-rspack-plugin/convert-config-to-rspack-plugin",
|
|
25
|
+
"schema": "./dist/src/generators/convert-config-to-rspack-plugin/schema.json",
|
|
26
26
|
"description": "Convert the project to use the `NxAppRspackPlugin` and `NxReactRspackPlugin`."
|
|
27
27
|
},
|
|
28
28
|
"convert-to-inferred": {
|
|
29
|
-
"factory": "./src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
|
|
30
|
-
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
29
|
+
"factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
|
|
30
|
+
"schema": "./dist/src/generators/convert-to-inferred/schema.json",
|
|
31
31
|
"description": "Convert existing Rspack project(s) using `@nx/rspack:rspack` executor to use `@nx/rspack/plugin`."
|
|
32
32
|
}
|
|
33
33
|
}
|