Skip to content

feat(js)!: remove the experimental and deprecated inlining feature from the tsc and swc executors#32783

Merged
leosvelperez merged 1 commit intonext-majorfrom
js/remove-inlining
Sep 25, 2025
Merged

feat(js)!: remove the experimental and deprecated inlining feature from the tsc and swc executors#32783
leosvelperez merged 1 commit intonext-majorfrom
js/remove-inlining

Conversation

@leosvelperez
Copy link
Copy Markdown
Member

Current Behavior

The experimental inlining feature in the @nx/js:tsc and @nx/js:swc executors is deprecated.

Expected Behavior

The experimental inlining feature in the @nx/js:tsc and @nx/js:swc executors should be removed.

BREAKING CHANGE: The experimental inlining feature in the @nx/js:tsc and @nx/js:swc executors was removed. A migration will remove the related options (external and externalBuildTargets). Still, if you use or rely on the feature, you need to make your dependencies buildable or use a different build tool with bundling capabilities.

@leosvelperez leosvelperez self-assigned this Sep 19, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 19, 2025

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

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Sep 25, 2025 11:15am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Sep 19, 2025

View your CI Pipeline Execution ↗ for commit c5a1e0f

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 5m 17s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 30s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded 57s View ↗

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

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

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

Nx Cloud has identified a possible root cause for your failed CI:

The pull request removes the experimental inlining feature from the @nx/js:tsc and @nx/js:swc executors, including the removal of the external and externalBuildTargets options. The changes include:

  • Removal of deprecated options from schema files
  • Deletion of inlining-related utility functions and test files
  • Updates to documentation examples
  • Addition of a migration to clean up existing configurations

The failing test is e2e-release:e2e-ci--src/release-publishable-libraries-ts-solution.test.ts, which tests release functionality for publishable libraries in TypeScript solution setups. The test failures are snapshot mismatches in the expected tarball contents - specifically missing .d.ts.map files for React and React Native library tests.

However, these test failures are unrelated to the pull request changes because:

  1. The failing tests are for release/publishing functionality, not for the build executors that were modified
  2. The PR changes focus on removing inlining features from @nx/js:tsc and @nx/js:swc executors
  3. The snapshot differences show missing TypeScript declaration map files (.d.ts.map), which would be generated during TypeScript compilation, not related to the inlining feature removal
  4. The PR does not modify any TypeScript compilation settings that would affect declaration map generation
  5. No similar task failures are present in the <similar_task_failures> section, indicating this might be an environmental issue

The test failures appear to be related to TypeScript declaration map generation during the release process, which is completely separate from the inlining feature removal that this PR implements. This suggests the failures are due to environmental factors or unrelated changes in the codebase, not the specific changes made in this pull request.

A code change would likely not resolve this issue, so no action was taken.

Nx CloudView in Nx Cloud ↗


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

@leosvelperez leosvelperez merged commit 6c78065 into next-major Sep 25, 2025
17 of 19 checks passed
@leosvelperez leosvelperez deleted the js/remove-inlining branch September 25, 2025 15:42
FrozenPandaz pushed a commit that referenced this pull request Sep 29, 2025
…om the `tsc` and `swc` executors (#32783)

## Current Behavior

The experimental inlining feature in the `@nx/js:tsc` and `@nx/js:swc`
executors is deprecated.

## Expected Behavior

The experimental inlining feature in the `@nx/js:tsc` and `@nx/js:swc`
executors should be removed.

BREAKING CHANGE: The experimental inlining feature in the `@nx/js:tsc`
and `@nx/js:swc` executors was removed. A migration will remove the
related options (`external` and `externalBuildTargets`). Still, if you
use or rely on the feature, you need to make your dependencies buildable
or use a different build tool with bundling capabilities.
FrozenPandaz pushed a commit that referenced this pull request Sep 29, 2025
…om the `tsc` and `swc` executors (#32783)

## Current Behavior

The experimental inlining feature in the `@nx/js:tsc` and `@nx/js:swc`
executors is deprecated.

## Expected Behavior

The experimental inlining feature in the `@nx/js:tsc` and `@nx/js:swc`
executors should be removed.

BREAKING CHANGE: The experimental inlining feature in the `@nx/js:tsc`
and `@nx/js:swc` executors was removed. A migration will remove the
related options (`external` and `externalBuildTargets`). Still, if you
use or rely on the feature, you need to make your dependencies buildable
or use a different build tool with bundling capabilities.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 1, 2025

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 Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants