@tailwindcss/vite 0.0.0-oxide.1 → 0.0.0-oxide.3
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/dist/index.mjs +3 -8
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ function tailwindcss() {
|
|
|
52
52
|
function generateCss(css) {
|
|
53
53
|
return optimizeCss(compile(css, Array.from(candidates)), { minify });
|
|
54
54
|
}
|
|
55
|
-
let initialScan =
|
|
55
|
+
let initialScan = (() => {
|
|
56
56
|
let delayInMs = 50;
|
|
57
57
|
let timer;
|
|
58
58
|
let resolve;
|
|
@@ -71,7 +71,7 @@ function tailwindcss() {
|
|
|
71
71
|
};
|
|
72
72
|
})
|
|
73
73
|
};
|
|
74
|
-
}();
|
|
74
|
+
})();
|
|
75
75
|
return [
|
|
76
76
|
{
|
|
77
77
|
// Step 1: Scan source files for candidates
|
|
@@ -131,12 +131,7 @@ function tailwindcss() {
|
|
|
131
131
|
if (!isCssFile(id))
|
|
132
132
|
continue;
|
|
133
133
|
let rawSource = item.source;
|
|
134
|
-
let source;
|
|
135
|
-
if (rawSource instanceof Uint8Array) {
|
|
136
|
-
source = new TextDecoder().decode(rawSource);
|
|
137
|
-
} else {
|
|
138
|
-
source = rawSource;
|
|
139
|
-
}
|
|
134
|
+
let source = rawSource instanceof Uint8Array ? new TextDecoder().decode(rawSource) : rawSource;
|
|
140
135
|
if (source.includes("@tailwind")) {
|
|
141
136
|
item.source = generateCss(source);
|
|
142
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/vite",
|
|
3
|
-
"version": "0.0.0-oxide.
|
|
3
|
+
"version": "0.0.0-oxide.3",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/tailwindlabs/tailwindcss.git",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@tailwindcss/oxide": "
|
|
20
|
-
"tailwindcss": "
|
|
19
|
+
"@tailwindcss/oxide": "0.0.0-oxide.3",
|
|
20
|
+
"tailwindcss": "0.0.0-oxide.3"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.11.17",
|