Skip to content

Commit 5a94f81

Browse files
Use default export condition for @tailwindcss/vite (#18948)
## Summary In `@tailwindcss/vite` 's `package.json`, change the `exports` key from `include` to `default` since there is no `require` case. Ran into an issue using the `tsx` package to run a script that has a sub-dependency that imports from `@tailwindcss/vite`, where `tsx` converts things to cjs to run, and since there is no `require` case for this package, it can't find the file. Changing to `default` covers the cases for both `import` and `require`. ## Test plan No testing needed. Functionality is the same. --------- Co-authored-by: Jordan Pittman <[email protected]>
1 parent d0a1bd6 commit 5a94f81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- Prevent duplicate CSS when overwriting a static utility with a theme key ([#18056](https://github.com/tailwindlabs/tailwindcss/pull/18056))
2323
- Do not migrate `variant = 'outline'` during upgrades ([#18922](https://github.com/tailwindlabs/tailwindcss/pull/18922))
2424
- Show Lightning CSS warnings (if any) when optimizing/minifying ([#18918](https://github.com/tailwindlabs/tailwindcss/pull/18918))
25+
- Use `default` export condition for `@tailwindcss/vite` ([#18948](https://github.com/tailwindlabs/tailwindcss/pull/18948))
2526

2627
## [4.1.13] - 2025-09-03
2728

packages/@tailwindcss-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"exports": {
2525
".": {
2626
"types": "./dist/index.d.mts",
27-
"import": "./dist/index.mjs"
27+
"default": "./dist/index.mjs"
2828
}
2929
},
3030
"dependencies": {

0 commit comments

Comments
 (0)