Skip to content

Use @tailwindcss/node for import in CLI#17502

Merged
philipp-spiess merged 1 commit into
mainfrom
fix/cli-node-dep
Apr 2, 2025
Merged

Use @tailwindcss/node for import in CLI#17502
philipp-spiess merged 1 commit into
mainfrom
fix/cli-node-dep

Conversation

@philipp-spiess

@philipp-spiess philipp-spiess commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

Closes #17501

Seems like an oversight. The CLI does have a dependency on @tailwindcss/node so it should use it from the public import like the other stuff.

Test plan

Looked at the minified dist/ output to ensure the import for jiti is gone

@philipp-spiess philipp-spiess requested a review from a team as a code owner April 2, 2025 09:12
@philipp-spiess philipp-spiess enabled auto-merge (squash) April 2, 2025 09:13

@RobinMalfait RobinMalfait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Running a local build of this branch does fix the problem. 💪

No more "jiti" in the bundle after this change.

Before:
image

After:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@tailwindcss/cli@4.1.0 misses jiti dependency

2 participants