Skip to content

Commit a429462

Browse files
Use @tailwindcss/node for import in CLI (#17502)
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.
1 parent 3c937ec commit a429462

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Disable padding in `@source inline(…)` brace expansion ([#17491](https://github.com/tailwindlabs/tailwindcss/pull/17491))
1313
- Inject polyfills after `@import` and body-less `@layer` ([#17493](https://github.com/tailwindlabs/tailwindcss/pull/17493))
14+
- Ensure `@tailwindcss/cli` does not contain an import for `jiti` ([#17502](https://github.com/tailwindlabs/tailwindcss/pull/17502))
1415

1516
## [4.1.0] - 2025-04-01
1617

packages/@tailwindcss-cli/src/commands/build/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import watcher from '@parcel/watcher'
2-
import { compile, env, Instrumentation } from '@tailwindcss/node'
2+
import { compile, env, Instrumentation, optimize } from '@tailwindcss/node'
33
import { clearRequireCache } from '@tailwindcss/node/require-cache'
44
import { Scanner, type ChangedContent } from '@tailwindcss/oxide'
55
import { existsSync, type Stats } from 'node:fs'
66
import fs from 'node:fs/promises'
77
import path from 'node:path'
8-
import { optimize } from '../../../../@tailwindcss-node/src'
98
import type { Arg, Result } from '../../utils/args'
109
import { Disposables } from '../../utils/disposables'
1110
import {

0 commit comments

Comments
 (0)