tailwindcss 3.4.16 → 3.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/lib/lib/load-config.js +4 -0
- package/package.json +1 -1
- package/src/lib/load-config.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- Nothing yet!
|
|
11
11
|
|
|
12
|
+
## [3.4.17] - 2024-12-17
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Work around Node v22.12+ issue ([#15421](https://github.com/tailwindlabs/tailwindcss/pull/15421))
|
|
17
|
+
|
|
12
18
|
## [3.4.16] - 2024-12-03
|
|
13
19
|
|
|
14
20
|
### Fixed
|
|
@@ -2471,7 +2477,8 @@ No release notes
|
|
|
2471
2477
|
|
|
2472
2478
|
- Everything!
|
|
2473
2479
|
|
|
2474
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.
|
|
2480
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.17...HEAD
|
|
2481
|
+
[3.4.17]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.16...v3.4.17
|
|
2475
2482
|
[3.4.16]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.15...v3.4.16
|
|
2476
2483
|
[3.4.15]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.14...v3.4.15
|
|
2477
2484
|
[3.4.14]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.13...v3.4.14
|
package/lib/lib/load-config.js
CHANGED
|
@@ -46,6 +46,10 @@ function lazyJiti() {
|
|
|
46
46
|
}
|
|
47
47
|
function loadConfig(path) {
|
|
48
48
|
let config = function() {
|
|
49
|
+
if (!path) return {};
|
|
50
|
+
// Always use jiti for now. There is a a bug that occurs in Node v22.12+
|
|
51
|
+
// where imported files return invalid results
|
|
52
|
+
return lazyJiti()(path);
|
|
49
53
|
// Always use jiti for ESM or TS files
|
|
50
54
|
if (path && (path.endsWith(".mjs") || path.endsWith(".ts") || path.endsWith(".cts") || path.endsWith(".mts"))) {
|
|
51
55
|
return lazyJiti()(path);
|
package/package.json
CHANGED
package/src/lib/load-config.ts
CHANGED
|
@@ -33,6 +33,12 @@ function lazyJiti() {
|
|
|
33
33
|
|
|
34
34
|
export function loadConfig(path: string): Config {
|
|
35
35
|
let config = (function () {
|
|
36
|
+
if (!path) return {}
|
|
37
|
+
|
|
38
|
+
// Always use jiti for now. There is a a bug that occurs in Node v22.12+
|
|
39
|
+
// where imported files return invalid results
|
|
40
|
+
return lazyJiti()(path)
|
|
41
|
+
|
|
36
42
|
// Always use jiti for ESM or TS files
|
|
37
43
|
if (
|
|
38
44
|
path &&
|