@csszyx/unplugin 0.7.0 → 0.9.0
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 +32 -1
- package/dist/css-mangler.cjs +27 -72
- package/dist/css-mangler.d.cts +2 -1
- package/dist/{css-mangler.d.ts → css-mangler.d.mts} +2 -1
- package/dist/{chunk-4M7CPGP7.js → css-mangler.mjs} +13 -31
- package/dist/index.cjs +47 -1856
- package/dist/index.d.cts +15 -2
- package/dist/{index.d.ts → index.d.mts} +13 -3
- package/dist/index.mjs +16 -0
- package/dist/shared/unplugin.BEOG6ePC.mjs +2159 -0
- package/dist/shared/unplugin.CL0F6RZa.cjs +2192 -0
- package/dist/vite.cjs +24 -1678
- package/dist/vite.d.cts +2 -2
- package/dist/{vite.d.ts → vite.d.mts} +1 -1
- package/dist/vite.mjs +20 -0
- package/dist/webpack.cjs +24 -1687
- package/dist/webpack.d.cts +2 -2
- package/dist/{webpack.d.ts → webpack.d.mts} +1 -1
- package/dist/webpack.mjs +20 -0
- package/package.json +51 -27
- package/dist/chunk-GXGGTRUA.js +0 -1602
- package/dist/css-mangler.js +0 -14
- package/dist/index.js +0 -51
- package/dist/vite.js +0 -10
- package/dist/webpack.js +0 -10
- /package/dist/{unplugin-DUbr5w-N.d.cts → shared/unplugin.DUbr5w-N.d.cts} +0 -0
- /package/dist/{unplugin-DUbr5w-N.d.ts → shared/unplugin.DUbr5w-N.d.mts} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import _default from './shared/unplugin.DUbr5w-N.cjs';
|
|
1
2
|
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.cjs';
|
|
2
|
-
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
export = _default;
|
|
5
|
+
export { e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.DUbr5w-N.cjs';
|
|
3
6
|
import 'postcss';
|
|
4
7
|
import '@csszyx/types';
|
|
5
8
|
import 'esbuild';
|
|
@@ -78,6 +81,15 @@ declare function findRSCBoundaryViolation(code: string, id: string): RSCBoundary
|
|
|
78
81
|
* @returns graph metadata for the module
|
|
79
82
|
*/
|
|
80
83
|
declare function createRSCModuleRecord(code: string, id: string): RSCModuleRecord;
|
|
84
|
+
/**
|
|
85
|
+
* Removes a module record after the bundler watcher reports that the file was
|
|
86
|
+
* deleted.
|
|
87
|
+
*
|
|
88
|
+
* @param records module graph records keyed by normalized module ID
|
|
89
|
+
* @param id module ID/path from the watcher event
|
|
90
|
+
* @returns true when a stale record was removed
|
|
91
|
+
*/
|
|
92
|
+
declare function deleteRSCModuleRecord(records: Map<string, RSCModuleRecord>, id: string): boolean;
|
|
81
93
|
/**
|
|
82
94
|
* Finds forbidden runtime helper imports reachable from an RSC server module.
|
|
83
95
|
* Traversal stops at `'use client'` modules because they define a separate
|
|
@@ -150,4 +162,5 @@ declare function mergeThemes(themes: ParsedTheme[]): ParsedTheme;
|
|
|
150
162
|
*/
|
|
151
163
|
declare function hasTokens(theme: ParsedTheme): boolean;
|
|
152
164
|
|
|
153
|
-
export {
|
|
165
|
+
export { assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, deleteRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
|
|
166
|
+
export type { ParsedTheme, RSCBoundaryViolation, RSCModuleRecord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.
|
|
2
|
-
export { u as default, e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './unplugin
|
|
1
|
+
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
|
|
2
|
+
export { u as default, e as esbuildPlugin, m as mangleCodeClassesSync, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.DUbr5w-N.mjs';
|
|
3
3
|
import 'postcss';
|
|
4
4
|
import '@csszyx/types';
|
|
5
5
|
import 'esbuild';
|
|
@@ -78,6 +78,15 @@ declare function findRSCBoundaryViolation(code: string, id: string): RSCBoundary
|
|
|
78
78
|
* @returns graph metadata for the module
|
|
79
79
|
*/
|
|
80
80
|
declare function createRSCModuleRecord(code: string, id: string): RSCModuleRecord;
|
|
81
|
+
/**
|
|
82
|
+
* Removes a module record after the bundler watcher reports that the file was
|
|
83
|
+
* deleted.
|
|
84
|
+
*
|
|
85
|
+
* @param records module graph records keyed by normalized module ID
|
|
86
|
+
* @param id module ID/path from the watcher event
|
|
87
|
+
* @returns true when a stale record was removed
|
|
88
|
+
*/
|
|
89
|
+
declare function deleteRSCModuleRecord(records: Map<string, RSCModuleRecord>, id: string): boolean;
|
|
81
90
|
/**
|
|
82
91
|
* Finds forbidden runtime helper imports reachable from an RSC server module.
|
|
83
92
|
* Traversal stops at `'use client'` modules because they define a separate
|
|
@@ -150,4 +159,5 @@ declare function mergeThemes(themes: ParsedTheme[]): ParsedTheme;
|
|
|
150
159
|
*/
|
|
151
160
|
declare function hasTokens(theme: ParsedTheme): boolean;
|
|
152
161
|
|
|
153
|
-
export {
|
|
162
|
+
export { assertNoRSCBoundaryViolation, assertNoRSCGraphViolation, createRSCModuleRecord, deleteRSCModuleRecord, findRSCBoundaryViolation, findRSCGraphViolation, hasTokens, hasUseClientDirective, hasUseServerDirective, isRSCServerModule, mergeThemes, parseThemeBlocks };
|
|
163
|
+
export type { ParsedTheme, RSCBoundaryViolation, RSCModuleRecord };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.mjs';
|
|
2
|
+
export { a as assertNoRSCBoundaryViolation, b as assertNoRSCGraphViolation, c as createRSCModuleRecord, u as default, d as deleteRSCModuleRecord, e as esbuildPlugin, f as findRSCBoundaryViolation, g as findRSCGraphViolation, h as hasTokens, i as hasUseClientDirective, j as hasUseServerDirective, k as isRSCServerModule, m as mangleCodeClassesSync, l as mergeThemes, p as parseThemeBlocks, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './shared/unplugin.BEOG6ePC.mjs';
|
|
3
|
+
import 'postcss';
|
|
4
|
+
import 'postcss-selector-parser';
|
|
5
|
+
import 'node:fs';
|
|
6
|
+
import 'node:module';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:perf_hooks';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import '@csszyx/compiler';
|
|
11
|
+
import '@csszyx/core';
|
|
12
|
+
import '@csszyx/svelte-adapter';
|
|
13
|
+
import '@csszyx/types';
|
|
14
|
+
import '@csszyx/vue-adapter';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import 'node:crypto';
|