@csszyx/unplugin 0.11.7 → 0.11.9
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/README.md +6 -1
- package/dist/css-mangler.cjs +9 -6
- package/dist/css-mangler.mjs +9 -6
- package/dist/index.cjs +5 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/next-config.cjs +1 -1
- package/dist/next-config.mjs +1 -1
- package/dist/next-prebuild.cjs +5 -5
- package/dist/next-prebuild.mjs +5 -5
- package/dist/next-turbo-loader.cjs +7 -12
- package/dist/next-turbo-loader.mjs +7 -12
- package/dist/next-watcher.cjs +2 -2
- package/dist/next-watcher.mjs +2 -2
- package/dist/shared/{unplugin.Dqt1aLCX.mjs → unplugin.7TELUwsj.mjs} +5 -3
- package/dist/shared/unplugin.B3XoSRB8.mjs +40 -0
- package/dist/shared/unplugin.BkRah5Ot.cjs +48 -0
- package/dist/shared/{unplugin.VSslRpfN.mjs → unplugin.Bqx2WfBV.mjs} +51 -50
- package/dist/shared/{unplugin.PhOFTQpB.d.cts → unplugin.CjCKWnoX.d.cts} +25 -6
- package/dist/shared/{unplugin.PhOFTQpB.d.mts → unplugin.CjCKWnoX.d.mts} +25 -6
- package/dist/shared/{unplugin.CwcOd1q3.mjs → unplugin.D-K57LNR.mjs} +6 -1
- package/dist/shared/{unplugin.ByAzFdqO.cjs → unplugin.DUI48s3S.cjs} +1181 -766
- package/dist/shared/{unplugin.D8vSG36M.cjs → unplugin.DVCQC5wq.cjs} +6 -0
- package/dist/shared/{unplugin.Rov-j_Wm.cjs → unplugin.DmuOKVS4.cjs} +21 -0
- package/dist/shared/{unplugin.D6hes1O8.cjs → unplugin.WVn08Fln.cjs} +5 -3
- package/dist/shared/{unplugin.CZKUWN1J.cjs → unplugin.jZsBqx54.cjs} +51 -50
- package/dist/shared/unplugin.nnsa7OVW.mjs +49 -0
- package/dist/shared/{unplugin.CtHwCYxE.mjs → unplugin.wx3cvxxX.mjs} +1180 -766
- package/dist/vite.cjs +4 -4
- package/dist/vite.d.cts +2 -25
- package/dist/vite.d.mts +1 -25
- package/dist/vite.mjs +4 -8
- package/dist/webpack.cjs +4 -4
- package/dist/webpack.d.cts +2 -5
- package/dist/webpack.d.mts +1 -5
- package/dist/webpack.mjs +4 -8
- package/package.json +7 -7
- package/dist/shared/unplugin.B1mblcm-.mjs +0 -9
- package/dist/shared/unplugin.B3RHYokB.mjs +0 -29
- package/dist/shared/unplugin.BCwRIUs_.cjs +0 -12
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.DUI48s3S.cjs');
|
|
6
6
|
require('node:crypto');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:module');
|
|
@@ -19,9 +19,9 @@ require('unplugin');
|
|
|
19
19
|
require('./css-mangler.cjs');
|
|
20
20
|
require('postcss');
|
|
21
21
|
require('postcss-selector-parser');
|
|
22
|
-
require('./shared/unplugin.
|
|
23
|
-
require('./shared/unplugin.
|
|
24
|
-
require('./shared/unplugin.
|
|
22
|
+
require('./shared/unplugin.DmuOKVS4.cjs');
|
|
23
|
+
require('./shared/unplugin.DVCQC5wq.cjs');
|
|
24
|
+
require('./shared/unplugin.BkRah5Ot.cjs');
|
|
25
25
|
require('postcss-value-parser');
|
|
26
26
|
|
|
27
27
|
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ae } from './shared/unplugin.CjCKWnoX.cjs';
|
|
2
|
+
export = ae;
|
|
2
3
|
import '@csszyx/compiler';
|
|
3
4
|
import '@csszyx/types';
|
|
4
5
|
import 'esbuild';
|
|
5
6
|
import 'rollup';
|
|
6
7
|
import 'unplugin';
|
|
7
8
|
import 'vite';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Vite plugin export for csszyx.
|
|
11
|
-
*
|
|
12
|
-
* This exports the Vite-specific plugin configuration which includes
|
|
13
|
-
* both pre and post transformation phases for optimal CSS processing.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { defineConfig } from 'vite';
|
|
18
|
-
* import csszyx from '@csszyx/unplugin/vite';
|
|
19
|
-
*
|
|
20
|
-
* export default defineConfig({
|
|
21
|
-
* plugins: [
|
|
22
|
-
* csszyx({
|
|
23
|
-
* development: { debug: true },
|
|
24
|
-
* production: { injectChecksum: true }
|
|
25
|
-
* })
|
|
26
|
-
* ]
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
export = vitePlugin;
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export { ae as default } from './shared/unplugin.CjCKWnoX.mjs';
|
|
2
2
|
import '@csszyx/compiler';
|
|
3
3
|
import '@csszyx/types';
|
|
4
4
|
import 'esbuild';
|
|
5
5
|
import 'rollup';
|
|
6
6
|
import 'unplugin';
|
|
7
7
|
import 'vite';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Vite plugin export for csszyx.
|
|
11
|
-
*
|
|
12
|
-
* This exports the Vite-specific plugin configuration which includes
|
|
13
|
-
* both pre and post transformation phases for optimal CSS processing.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* import { defineConfig } from 'vite';
|
|
18
|
-
* import csszyx from '@csszyx/unplugin/vite';
|
|
19
|
-
*
|
|
20
|
-
* export default defineConfig({
|
|
21
|
-
* plugins: [
|
|
22
|
-
* csszyx({
|
|
23
|
-
* development: { debug: true },
|
|
24
|
-
* production: { injectChecksum: true }
|
|
25
|
-
* })
|
|
26
|
-
* ]
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
export { vitePlugin as default };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { $ as default } from './shared/unplugin.wx3cvxxX.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:module';
|
|
@@ -15,11 +15,7 @@ import 'unplugin';
|
|
|
15
15
|
import './css-mangler.mjs';
|
|
16
16
|
import 'postcss';
|
|
17
17
|
import 'postcss-selector-parser';
|
|
18
|
-
import './shared/unplugin.
|
|
19
|
-
import './shared/unplugin.
|
|
20
|
-
import './shared/unplugin.
|
|
18
|
+
import './shared/unplugin.nnsa7OVW.mjs';
|
|
19
|
+
import './shared/unplugin.D-K57LNR.mjs';
|
|
20
|
+
import './shared/unplugin.B3XoSRB8.mjs';
|
|
21
21
|
import 'postcss-value-parser';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export { vitePlugin as default };
|
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.DUI48s3S.cjs');
|
|
6
6
|
require('node:crypto');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('node:module');
|
|
@@ -19,9 +19,9 @@ require('unplugin');
|
|
|
19
19
|
require('./css-mangler.cjs');
|
|
20
20
|
require('postcss');
|
|
21
21
|
require('postcss-selector-parser');
|
|
22
|
-
require('./shared/unplugin.
|
|
23
|
-
require('./shared/unplugin.
|
|
24
|
-
require('./shared/unplugin.
|
|
22
|
+
require('./shared/unplugin.DmuOKVS4.cjs');
|
|
23
|
+
require('./shared/unplugin.DVCQC5wq.cjs');
|
|
24
|
+
require('./shared/unplugin.BkRah5Ot.cjs');
|
|
25
25
|
require('postcss-value-parser');
|
|
26
26
|
|
|
27
27
|
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { af } from './shared/unplugin.CjCKWnoX.cjs';
|
|
2
|
+
export = af;
|
|
2
3
|
import '@csszyx/compiler';
|
|
3
4
|
import '@csszyx/types';
|
|
4
5
|
import 'esbuild';
|
|
5
6
|
import 'rollup';
|
|
6
7
|
import 'unplugin';
|
|
7
8
|
import 'vite';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export = webpackPlugin;
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export { af as default } from './shared/unplugin.CjCKWnoX.mjs';
|
|
2
2
|
import '@csszyx/compiler';
|
|
3
3
|
import '@csszyx/types';
|
|
4
4
|
import 'esbuild';
|
|
5
5
|
import 'rollup';
|
|
6
6
|
import 'unplugin';
|
|
7
7
|
import 'vite';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { webpackPlugin as default };
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { a0 as default } from './shared/unplugin.wx3cvxxX.mjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:module';
|
|
@@ -15,11 +15,7 @@ import 'unplugin';
|
|
|
15
15
|
import './css-mangler.mjs';
|
|
16
16
|
import 'postcss';
|
|
17
17
|
import 'postcss-selector-parser';
|
|
18
|
-
import './shared/unplugin.
|
|
19
|
-
import './shared/unplugin.
|
|
20
|
-
import './shared/unplugin.
|
|
18
|
+
import './shared/unplugin.nnsa7OVW.mjs';
|
|
19
|
+
import './shared/unplugin.D-K57LNR.mjs';
|
|
20
|
+
import './shared/unplugin.B3XoSRB8.mjs';
|
|
21
21
|
import 'postcss-value-parser';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export { webpackPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/unplugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9",
|
|
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/svelte-adapter": "0.11.
|
|
123
|
-
"@csszyx/types": "0.11.
|
|
124
|
-
"@csszyx/vue-adapter": "0.11.
|
|
120
|
+
"@csszyx/compiler": "0.11.9",
|
|
121
|
+
"@csszyx/core": "0.11.9",
|
|
122
|
+
"@csszyx/svelte-adapter": "0.11.9",
|
|
123
|
+
"@csszyx/types": "0.11.9",
|
|
124
|
+
"@csszyx/vue-adapter": "0.11.9"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@csszyx/runtime": "^0.11.
|
|
127
|
+
"@csszyx/runtime": "^0.11.9"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
130
|
"@tailwindcss/node": "4.3.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
function sortStrings(values) {
|
|
2
|
-
return [...values].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
function escapeHtmlAttribute(value) {
|
|
6
|
-
return value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { escapeHtmlAttribute as e, sortStrings as s };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const RUNTIME_IMPORT_CLAUSE_RE = /(?:import|export)\s+\{([^{}]*)\}\s*from\s*['"]@csszyx\/runtime['"]/g;
|
|
2
|
-
function clauseNames(clauseBody) {
|
|
3
|
-
const names = [];
|
|
4
|
-
for (const part of clauseBody.split(",")) {
|
|
5
|
-
const trimmed = part.trim();
|
|
6
|
-
if (!trimmed) {
|
|
7
|
-
continue;
|
|
8
|
-
}
|
|
9
|
-
const spaceAt = trimmed.search(/\s/);
|
|
10
|
-
names.push(spaceAt === -1 ? trimmed : trimmed.slice(0, spaceAt));
|
|
11
|
-
}
|
|
12
|
-
return names;
|
|
13
|
-
}
|
|
14
|
-
function importsRuntimeHelper(code, helper) {
|
|
15
|
-
RUNTIME_IMPORT_CLAUSE_RE.lastIndex = 0;
|
|
16
|
-
for (let match = RUNTIME_IMPORT_CLAUSE_RE.exec(code); match; match = RUNTIME_IMPORT_CLAUSE_RE.exec(code)) {
|
|
17
|
-
if (clauseNames(match[1]).includes(helper)) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
const RUNTIME_IMPORT_APPEND_RE = /(import\s+\{[^{}]*)\}\s*from\s*['"]@csszyx\/runtime['"]/;
|
|
24
|
-
function findRuntimeImportClause(code) {
|
|
25
|
-
const match = RUNTIME_IMPORT_APPEND_RE.exec(code);
|
|
26
|
-
return match ? { statement: match[0], prefixWithBody: match[1] } : null;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { findRuntimeImportClause as f, importsRuntimeHelper as i };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function sortStrings(values) {
|
|
4
|
-
return [...values].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function escapeHtmlAttribute(value) {
|
|
8
|
-
return value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
exports.escapeHtmlAttribute = escapeHtmlAttribute;
|
|
12
|
-
exports.sortStrings = sortStrings;
|