@csszyx/unplugin 0.11.5 → 0.11.7
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/css-mangler.cjs +41 -41
- package/dist/css-mangler.mjs +41 -41
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/next-prebuild.cjs +3 -3
- package/dist/next-prebuild.mjs +3 -3
- package/dist/next-turbo-loader.cjs +9 -3
- package/dist/next-turbo-loader.mjs +9 -3
- package/dist/next-watcher.cjs +1 -1
- package/dist/next-watcher.mjs +1 -1
- package/dist/shared/{unplugin.CP2cz9bA.cjs → unplugin.ByAzFdqO.cjs} +246 -211
- package/dist/shared/{unplugin.CBKZoxQ1.cjs → unplugin.CZKUWN1J.cjs} +1 -1
- package/dist/shared/{unplugin.BS60onPk.mjs → unplugin.CtHwCYxE.mjs} +244 -209
- package/dist/shared/{unplugin.ByzV6iZE.mjs → unplugin.CwcOd1q3.mjs} +7 -6
- package/dist/shared/{unplugin.BFN_Ueyx.cjs → unplugin.D6hes1O8.cjs} +2 -2
- package/dist/shared/{unplugin.D0N9bprz.cjs → unplugin.D8vSG36M.cjs} +6 -5
- package/dist/shared/{unplugin.ChwZMl_w.mjs → unplugin.Dqt1aLCX.mjs} +3 -3
- package/dist/shared/{unplugin.B3cvNxnk.mjs → unplugin.VSslRpfN.mjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.mjs +2 -2
- package/package.json +7 -7
|
@@ -19,7 +19,7 @@ function _interopNamespaceCompat(e) {
|
|
|
19
19
|
const fs__namespace = /*#__PURE__*/_interopNamespaceCompat(fs);
|
|
20
20
|
const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
21
21
|
|
|
22
|
-
const CACHE_SCHEMA_VERSION =
|
|
22
|
+
const CACHE_SCHEMA_VERSION = 10;
|
|
23
23
|
function resolveTransformCacheDir(rootDir, cacheDir) {
|
|
24
24
|
return path__namespace.resolve(rootDir, cacheDir ?? ".csszyx/cache", "transform");
|
|
25
25
|
}
|
|
@@ -65,10 +65,7 @@ function writeTransformCache(cacheRoot, input, result, precomputedKey) {
|
|
|
65
65
|
const globalVarAliases = normalizeGlobalVarAliasEntries(input.globalVarAliases);
|
|
66
66
|
const file = cacheEntryPath(cacheRoot, key);
|
|
67
67
|
const dir = path__namespace.dirname(file);
|
|
68
|
-
const tmp = path__namespace.join(
|
|
69
|
-
dir,
|
|
70
|
-
`.tmp-${process.pid}-${Date.now()}-${Math.random().toString(36).slice(2)}.json`
|
|
71
|
-
);
|
|
68
|
+
const tmp = path__namespace.join(dir, `.tmp-${process.pid}-${Date.now()}-${node_crypto.randomUUID()}.json`);
|
|
72
69
|
const entry = {
|
|
73
70
|
version: CACHE_SCHEMA_VERSION,
|
|
74
71
|
pluginVersion: input.pluginVersion,
|
|
@@ -137,6 +134,8 @@ function serializeResult(result) {
|
|
|
137
134
|
usesSzcn: result.usesSzcn,
|
|
138
135
|
usesSzPart: result.usesSzPart,
|
|
139
136
|
usesColorVar: result.usesColorVar,
|
|
137
|
+
usesSpacingVar: result.usesSpacingVar,
|
|
138
|
+
usesUnitVar: result.usesUnitVar,
|
|
140
139
|
classes: [...result.classes],
|
|
141
140
|
rawClassNames: [...result.rawClassNames],
|
|
142
141
|
diagnostics: [...result.diagnostics],
|
|
@@ -153,6 +152,8 @@ function deserializeResult(result) {
|
|
|
153
152
|
usesSzcn: result.usesSzcn,
|
|
154
153
|
usesSzPart: result.usesSzPart,
|
|
155
154
|
usesColorVar: result.usesColorVar,
|
|
155
|
+
usesSpacingVar: result.usesSpacingVar,
|
|
156
|
+
usesUnitVar: result.usesUnitVar,
|
|
156
157
|
classes: new Set(result.classes),
|
|
157
158
|
rawClassNames: new Set(result.rawClassNames),
|
|
158
159
|
diagnostics: [...result.diagnostics],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from 'node:path';
|
|
2
2
|
import * as fs from 'node:fs';
|
|
3
|
-
import { createHash } from 'node:crypto';
|
|
3
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
4
4
|
import { hostname } from 'node:os';
|
|
5
5
|
import lockfile from 'proper-lockfile';
|
|
6
6
|
import { s as sortStrings, e as escapeHtmlAttribute } from './unplugin.B1mblcm-.mjs';
|
|
@@ -132,7 +132,7 @@ function atomicWriteFileSync(file, content, options = {}) {
|
|
|
132
132
|
const dir = path.dirname(file);
|
|
133
133
|
const tmp = path.join(
|
|
134
134
|
dir,
|
|
135
|
-
`.tmp-${path.basename(file)}-${process.pid}-${Date.now()}-${
|
|
135
|
+
`.tmp-${path.basename(file)}-${process.pid}-${Date.now()}-${randomUUID()}`
|
|
136
136
|
);
|
|
137
137
|
fs.mkdirSync(dir, { recursive: true });
|
|
138
138
|
fs.writeFileSync(tmp, content, "utf8");
|
|
@@ -242,7 +242,7 @@ function createLockMetadata(options) {
|
|
|
242
242
|
return {
|
|
243
243
|
version: 1,
|
|
244
244
|
pid,
|
|
245
|
-
token: options.token ??
|
|
245
|
+
token: options.token ?? randomUUID(),
|
|
246
246
|
hostname: hostname(),
|
|
247
247
|
root: path.resolve(options.root ?? process.cwd()),
|
|
248
248
|
mode: options.mode ?? "development",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { ensureRustTransformAvailable, transformSourceCode, transformRust, transformOxc, transform } from '@csszyx/compiler';
|
|
3
|
-
import { c as createTransformCacheKey, a as readTransformCache, w as writeTransformCache } from './unplugin.
|
|
3
|
+
import { c as createTransformCacheKey, a as readTransformCache, w as writeTransformCache } from './unplugin.CwcOd1q3.mjs';
|
|
4
4
|
import { createHash } from 'node:crypto';
|
|
5
5
|
import { s as sortStrings } from './unplugin.B1mblcm-.mjs';
|
|
6
6
|
|
package/dist/vite.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const unplugin = require('./shared/unplugin.
|
|
5
|
+
const unplugin = require('./shared/unplugin.ByAzFdqO.cjs');
|
|
6
6
|
require('node:crypto');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:module');
|
|
@@ -21,7 +21,7 @@ require('postcss');
|
|
|
21
21
|
require('postcss-selector-parser');
|
|
22
22
|
require('./shared/unplugin.BCwRIUs_.cjs');
|
|
23
23
|
require('./shared/unplugin.Rov-j_Wm.cjs');
|
|
24
|
-
require('./shared/unplugin.
|
|
24
|
+
require('./shared/unplugin.D8vSG36M.cjs');
|
|
25
25
|
require('postcss-value-parser');
|
|
26
26
|
|
|
27
27
|
|
package/dist/vite.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as vitePlugin } from './shared/unplugin.
|
|
1
|
+
import { _ as vitePlugin } from './shared/unplugin.CtHwCYxE.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:module';
|
|
@@ -17,7 +17,7 @@ import 'postcss';
|
|
|
17
17
|
import 'postcss-selector-parser';
|
|
18
18
|
import './shared/unplugin.B1mblcm-.mjs';
|
|
19
19
|
import './shared/unplugin.B3RHYokB.mjs';
|
|
20
|
-
import './shared/unplugin.
|
|
20
|
+
import './shared/unplugin.CwcOd1q3.mjs';
|
|
21
21
|
import 'postcss-value-parser';
|
|
22
22
|
|
|
23
23
|
|
package/dist/webpack.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const unplugin = require('./shared/unplugin.
|
|
5
|
+
const unplugin = require('./shared/unplugin.ByAzFdqO.cjs');
|
|
6
6
|
require('node:crypto');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:module');
|
|
@@ -21,7 +21,7 @@ require('postcss');
|
|
|
21
21
|
require('postcss-selector-parser');
|
|
22
22
|
require('./shared/unplugin.BCwRIUs_.cjs');
|
|
23
23
|
require('./shared/unplugin.Rov-j_Wm.cjs');
|
|
24
|
-
require('./shared/unplugin.
|
|
24
|
+
require('./shared/unplugin.D8vSG36M.cjs');
|
|
25
25
|
require('postcss-value-parser');
|
|
26
26
|
|
|
27
27
|
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as webpackPlugin } from './shared/unplugin.
|
|
1
|
+
import { $ as webpackPlugin } from './shared/unplugin.CtHwCYxE.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:module';
|
|
@@ -17,7 +17,7 @@ import 'postcss';
|
|
|
17
17
|
import 'postcss-selector-parser';
|
|
18
18
|
import './shared/unplugin.B1mblcm-.mjs';
|
|
19
19
|
import './shared/unplugin.B3RHYokB.mjs';
|
|
20
|
-
import './shared/unplugin.
|
|
20
|
+
import './shared/unplugin.CwcOd1q3.mjs';
|
|
21
21
|
import 'postcss-value-parser';
|
|
22
22
|
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.7",
|
|
4
4
|
"description": "Vite and Webpack integration for csszyx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csszyx",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"postcss-value-parser": "^4.2.0",
|
|
118
118
|
"proper-lockfile": "^4.1.2",
|
|
119
119
|
"unplugin": "^1.10.1",
|
|
120
|
-
"@csszyx/compiler": "0.11.
|
|
121
|
-
"@csszyx/core": "0.11.
|
|
122
|
-
"@csszyx/
|
|
123
|
-
"@csszyx/
|
|
124
|
-
"@csszyx/vue-adapter": "0.11.
|
|
120
|
+
"@csszyx/compiler": "0.11.7",
|
|
121
|
+
"@csszyx/core": "0.11.7",
|
|
122
|
+
"@csszyx/svelte-adapter": "0.11.7",
|
|
123
|
+
"@csszyx/types": "0.11.7",
|
|
124
|
+
"@csszyx/vue-adapter": "0.11.7"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@csszyx/runtime": "^0.11.
|
|
127
|
+
"@csszyx/runtime": "^0.11.7"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"@tailwindcss/node": "4.3.2",
|