@rebuildjs/tailwindcss 0.8.78 → 0.9.2
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/package.json +4 -4
- package/rebuild_tailwind_plugin/index.js +23 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuildjs/tailwindcss",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Tailwindcss integration with rebuildjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tailwindcss",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ctx-core": "^6.
|
|
42
|
+
"ctx-core": "^6.7.0",
|
|
43
43
|
"esbuild": "^0.20.2",
|
|
44
44
|
"postcss": "^8.4.38",
|
|
45
|
-
"rebuildjs": "^0.
|
|
45
|
+
"rebuildjs": "^0.67.1",
|
|
46
46
|
"tailwindcss": "^3.4.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"c8": "^9.1.0",
|
|
50
50
|
"check-dts": "^0.7.2",
|
|
51
51
|
"esmock": "^2.6.4",
|
|
52
|
-
"relementjs": "^0.
|
|
52
|
+
"relementjs": "^0.76.0",
|
|
53
53
|
"tsx": "^4.7.1",
|
|
54
54
|
"typescript": "next",
|
|
55
55
|
"uvu": "^0.5.6"
|
|
@@ -95,26 +95,35 @@ export function rebuild_tailwind_plugin_(config) {
|
|
|
95
95
|
server__output__relative_path_M_middleware_ctx,
|
|
96
96
|
)=>{
|
|
97
97
|
try {
|
|
98
|
-
let server__metafile_updated
|
|
99
|
-
let browser__metafile_updated
|
|
100
98
|
await cmd(rebuildjs__esbuild__done__wait())
|
|
101
99
|
const _server__metafile = server__metafile_(app_ctx)
|
|
102
100
|
const _browser__metafile = browser__metafile_(app_ctx)
|
|
101
|
+
const server_output__process_promise_a1 = []
|
|
102
|
+
const browser_output__process_promise_a1 = []
|
|
103
103
|
for (const middleware_ctx of server__output__relative_path_M_middleware_ctx.values()) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
server_output__process_promise_a1.push(
|
|
105
|
+
output__process(
|
|
106
|
+
_server__metafile,
|
|
107
|
+
server__output__relative_path_(middleware_ctx),
|
|
108
|
+
server__output_(middleware_ctx)))
|
|
109
|
+
browser_output__process_promise_a1.push(
|
|
110
|
+
output__process(
|
|
111
|
+
_browser__metafile,
|
|
112
|
+
browser__output__relative_path_(middleware_ctx),
|
|
113
|
+
browser__output_(middleware_ctx)))
|
|
112
114
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
const [
|
|
116
|
+
server__metafile_updated_a1,
|
|
117
|
+
browser__metafile_updated_a1,
|
|
118
|
+
] = await Promise.all([
|
|
119
|
+
Promise.all(server_output__process_promise_a1),
|
|
120
|
+
Promise.all(browser_output__process_promise_a1)
|
|
121
|
+
])
|
|
122
|
+
const update_promise_a1 = []
|
|
123
|
+
if (server__metafile_updated_a1.some($=>$)) {
|
|
115
124
|
update_promise_a1.push(server__metafile__update(_server__metafile))
|
|
116
125
|
}
|
|
117
|
-
if (
|
|
126
|
+
if (browser__metafile_updated_a1.some($=>$)) {
|
|
118
127
|
update_promise_a1.push(browser__metafile__update(_browser__metafile))
|
|
119
128
|
}
|
|
120
129
|
if (update_promise_a1.length) {
|
|
@@ -141,7 +150,7 @@ export function rebuild_tailwind_plugin_(config) {
|
|
|
141
150
|
const esbuild_cssBundle_path = join(cwd_(app_ctx), esbuild_cssBundle)
|
|
142
151
|
await cmd(file_exists__waitfor(
|
|
143
152
|
esbuild_cssBundle_path,
|
|
144
|
-
|
|
153
|
+
30_000,
|
|
145
154
|
()=>cmd(sleep(0))))
|
|
146
155
|
const esbuild_cssBundle_map_path = esbuild_cssBundle_path + '.map'
|
|
147
156
|
const esbuild_cssBundle_map_exists = await cmd(file_exists_(esbuild_cssBundle_map_path))
|