Skip to content

feat(webpack)!: remove deprecated deleteOutputPath and sassImplementation options - #32828

Merged
jaysoo merged 6 commits into
next-majorfrom
NXC-3108
Sep 24, 2025
Merged

feat(webpack)!: remove deprecated deleteOutputPath and sassImplementation options#32828
jaysoo merged 6 commits into
next-majorfrom
NXC-3108

Conversation

@jaysoo

@jaysoo jaysoo commented Sep 23, 2025

Copy link
Copy Markdown
Member

The webpack package contains deprecated options that were marked with TODO(v22) comments for removal:

  • deleteOutputPath option
  • sassImplementation option

These deprecated options were still being referenced in the codebase and schema files, potentially causing confusion for users.

Remove the deprecated options from the webpack package to clean up the API for v22:

  • Remove deleteOutputPath option from the webpack executor and related configurations (use Webpack's output.clean option instead)
  • Remove sassImplementation option from the webpack executor and related configurations (sass-embedded is now the default)
  • Add a migration to automatically update existing workspaces that use these deprecated options

Closes NXC-3108

jaysoo and others added 4 commits September 12, 2025 12:26
…rs (#32716)

The deprecated simpleName option has been removed from the library
generators for Angular, React, Nest, and JS packages. Use the --name
option to provide the exact name for the library.

BREAKING CHANGE: simpleName option is no longer supported in library
generators

Closes NXC-3107, NXC-3098, NXC-3093, NXC-3111
…r v22 (#32754)

The default TypeScript plugin for Rollup has changed from
rollup-plugin-typescript2 to @rollup/plugin-typescript. To continue
using the legacy plugin, explicitly set useLegacyTypescriptPlugin: true
in your configuration.

Resolves NXC-3094

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
…ecific options (#32755)

Remove the Rspack Application Generator in favour of generators from
`@nx/react`, `@nx/angular` and other plugins with app generators.

Resolves NXC-3109
…tTestingPreset` (#32787)

This PR removes an unnecessary logic for React component testing via
Cypress. We've made it not possible to have optional webpack configs a
while back (i.e. non-isolated config support). This means that even
legacy users _must_ have a webpack config using `composePlugin(...)`.
Thus, pass the options to that plugin function and things will continue
to work as usual for those users.
@jaysoo
jaysoo requested a review from a team as a code owner September 23, 2025 16:04
@jaysoo
jaysoo requested a review from JamesHenry September 23, 2025 16:04
@nx-cloud

nx-cloud Bot commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 5e0db2a

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 6m 44s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 35s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded 37s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 15m 19s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-24 14:06:50 UTC

nx-cloud[bot]

This comment was marked as outdated.

@vercel

vercel Bot commented Sep 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Sep 24, 2025 2:01pm
…tion options

The webpack package contains deprecated options that were marked with TODO(v22) comments for removal:
- deleteOutputPath option (Line 87 in nx-app-webpack-plugin-options.ts)
- sassImplementation option (Line 224 in nx-app-webpack-plugin-options.ts)

These deprecated options were still being referenced in the codebase and schema files, potentially causing confusion for users.

Remove the deprecated options from the webpack package to clean up the API for v22:
- Remove deleteOutputPath option from the webpack executor and related configurations (use Webpack's output.clean option instead)
- Remove sassImplementation option from the webpack executor and related configurations (sass-embedded is now the default)
- Add a migration to automatically update existing workspaces that use these deprecated options

Fixes NXC-3108
Comment thread packages/webpack/src/migrations/update-22-0-0/remove-deprecated-options.ts Outdated
nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

@nx-cloud nx-cloud Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud is proposing a fix for your failed CI:

We've updated the test snapshot to reflect the migration from the deprecated deleteOutputPath option to Webpack's native output.clean option. This change aligns the test expectations with the new behavior introduced by removing the deprecated webpack options.

We verified this fix by re-running e2e-webpack:e2e-ci--src/webpack.legacy.test.ts.

diff --git a/e2e/webpack/src/__snapshots__/webpack.legacy.test.ts.snap b/e2e/webpack/src/__snapshots__/webpack.legacy.test.ts.snap
index 3c4ba6e26b..65a30d646b 100644
--- a/e2e/webpack/src/__snapshots__/webpack.legacy.test.ts.snap
+++ b/e2e/webpack/src/__snapshots__/webpack.legacy.test.ts.snap
@@ -114,7 +114,7 @@ exports[`Webpack Plugin (legacy) ConvertConfigToWebpackPlugin, should convert wi
 module.exports = composePlugins((config) => {
   // Update the webpack config as needed here.
   // e.g. \`config.plugins.push(new MyPlugin())\`
-  config.output.cache = true;
+  config.output.clean = true;
   return config;
 });
 "

Apply fix via Nx Cloud  Reject fix via Nx Cloud

Nx CloudApply fix locally ↗  Nx CloudView interactive diff ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

@jaysoo
jaysoo merged commit f083633 into next-major Sep 24, 2025
16 checks passed
@jaysoo
jaysoo deleted the NXC-3108 branch September 24, 2025 14:07
FrozenPandaz pushed a commit that referenced this pull request Sep 29, 2025
…tion options (#32828)

The webpack package contains deprecated options that were marked with
TODO(v22) comments for removal:
- deleteOutputPath option
- sassImplementation option

These deprecated options were still being referenced in the codebase and
schema files, potentially causing confusion for users.

Remove the deprecated options from the webpack package to clean up the
API for v22:
- Remove deleteOutputPath option from the webpack executor and related
configurations (use Webpack's output.clean option instead)
- Remove sassImplementation option from the webpack executor and related
configurations (sass-embedded is now the default)
- Add a migration to automatically update existing workspaces that use
these deprecated options

Closes NXC-3108

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
FrozenPandaz pushed a commit that referenced this pull request Sep 29, 2025
…tion options (#32828)

The webpack package contains deprecated options that were marked with
TODO(v22) comments for removal:
- deleteOutputPath option
- sassImplementation option

These deprecated options were still being referenced in the codebase and
schema files, potentially causing confusion for users.

Remove the deprecated options from the webpack package to clean up the
API for v22:
- Remove deleteOutputPath option from the webpack executor and related
configurations (use Webpack's output.clean option instead)
- Remove sassImplementation option from the webpack executor and related
configurations (sass-embedded is now the default)
- Add a migration to automatically update existing workspaces that use
these deprecated options

Closes NXC-3108

---------

Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants