@csszyx/unplugin 0.1.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 +52 -0
- package/dist/chunk-4M7CPGP7.js +202 -0
- package/dist/chunk-JKM7IRGZ.js +663 -0
- package/dist/css-mangler.cjs +240 -0
- package/dist/css-mangler.d.cts +123 -0
- package/dist/css-mangler.d.ts +123 -0
- package/dist/css-mangler.js +14 -0
- package/dist/index.cjs +905 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +27 -0
- package/dist/unplugin-B9noIooS.d.cts +33 -0
- package/dist/unplugin-B9noIooS.d.ts +33 -0
- package/dist/vite.cjs +755 -0
- package/dist/vite.d.cts +30 -0
- package/dist/vite.d.ts +30 -0
- package/dist/vite.js +10 -0
- package/dist/webpack.cjs +764 -0
- package/dist/webpack.d.cts +10 -0
- package/dist/webpack.d.ts +10 -0
- package/dist/webpack.js +10 -0
- package/package.json +81 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.cjs';
|
|
2
|
+
export { u as default, e as esbuildPlugin, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './unplugin-B9noIooS.cjs';
|
|
3
|
+
import 'postcss';
|
|
4
|
+
import '@csszyx/types';
|
|
5
|
+
import 'esbuild';
|
|
6
|
+
import 'rollup';
|
|
7
|
+
import 'unplugin';
|
|
8
|
+
import 'vite';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CSSManglerOptions, CSSManglerResult, MangleMap, createPostCSSPlugin, escapeCSSClassName, mangleCSS, mangleCSSSync, unescapeTailwindClass } from './css-mangler.js';
|
|
2
|
+
export { u as default, e as esbuildPlugin, r as rollupPlugin, u as unplugin, v as vitePlugin, w as webpackPlugin } from './unplugin-B9noIooS.js';
|
|
3
|
+
import 'postcss';
|
|
4
|
+
import '@csszyx/types';
|
|
5
|
+
import 'esbuild';
|
|
6
|
+
import 'rollup';
|
|
7
|
+
import 'unplugin';
|
|
8
|
+
import 'vite';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
esbuildPlugin,
|
|
3
|
+
rollupPlugin,
|
|
4
|
+
unplugin,
|
|
5
|
+
vitePlugin,
|
|
6
|
+
webpackPlugin
|
|
7
|
+
} from "./chunk-JKM7IRGZ.js";
|
|
8
|
+
import {
|
|
9
|
+
createPostCSSPlugin,
|
|
10
|
+
escapeCSSClassName,
|
|
11
|
+
mangleCSS,
|
|
12
|
+
mangleCSSSync,
|
|
13
|
+
unescapeTailwindClass
|
|
14
|
+
} from "./chunk-4M7CPGP7.js";
|
|
15
|
+
export {
|
|
16
|
+
createPostCSSPlugin,
|
|
17
|
+
unplugin as default,
|
|
18
|
+
esbuildPlugin,
|
|
19
|
+
escapeCSSClassName,
|
|
20
|
+
mangleCSS,
|
|
21
|
+
mangleCSSSync,
|
|
22
|
+
rollupPlugin,
|
|
23
|
+
unescapeTailwindClass,
|
|
24
|
+
unplugin,
|
|
25
|
+
vitePlugin,
|
|
26
|
+
webpackPlugin
|
|
27
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PartialCsszyxConfig } from '@csszyx/types';
|
|
2
|
+
import { Plugin } from 'esbuild';
|
|
3
|
+
import { InputPluginOption } from 'rollup';
|
|
4
|
+
import { UnpluginInstance, WebpackPluginInstance } from 'unplugin';
|
|
5
|
+
import { PluginOption } from 'vite';
|
|
6
|
+
|
|
7
|
+
declare const unplugin: UnpluginInstance<PartialCsszyxConfig, boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Vite plugin array with both pre-transform and post-mangle plugins.
|
|
10
|
+
* @param options - csszyx configuration options
|
|
11
|
+
* @returns array of Vite plugins for pre-transform and post-mangle phases
|
|
12
|
+
*/
|
|
13
|
+
declare const vitePlugin: (options?: PartialCsszyxConfig) => PluginOption[];
|
|
14
|
+
/**
|
|
15
|
+
* Creates a combined Webpack plugin that applies both pre-transform and post-mangle phases.
|
|
16
|
+
* @param options - csszyx configuration options
|
|
17
|
+
* @returns a Webpack plugin instance combining both phases
|
|
18
|
+
*/
|
|
19
|
+
declare const webpackPlugin: (options?: PartialCsszyxConfig) => WebpackPluginInstance;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a Rollup plugin array with both pre-transform and post-mangle plugins.
|
|
22
|
+
* @param options - csszyx configuration options
|
|
23
|
+
* @returns array of Rollup plugins for pre-transform and post-mangle phases
|
|
24
|
+
*/
|
|
25
|
+
declare const rollupPlugin: (options?: PartialCsszyxConfig) => InputPluginOption[];
|
|
26
|
+
/**
|
|
27
|
+
* Creates an esbuild plugin that delegates setup to both pre-transform and post-mangle plugins.
|
|
28
|
+
* @param options - csszyx configuration options
|
|
29
|
+
* @returns an esbuild plugin combining both pre-transform and post-mangle phases
|
|
30
|
+
*/
|
|
31
|
+
declare const esbuildPlugin: (options?: PartialCsszyxConfig) => Plugin;
|
|
32
|
+
|
|
33
|
+
export { esbuildPlugin as e, rollupPlugin as r, unplugin as u, vitePlugin as v, webpackPlugin as w };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PartialCsszyxConfig } from '@csszyx/types';
|
|
2
|
+
import { Plugin } from 'esbuild';
|
|
3
|
+
import { InputPluginOption } from 'rollup';
|
|
4
|
+
import { UnpluginInstance, WebpackPluginInstance } from 'unplugin';
|
|
5
|
+
import { PluginOption } from 'vite';
|
|
6
|
+
|
|
7
|
+
declare const unplugin: UnpluginInstance<PartialCsszyxConfig, boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Vite plugin array with both pre-transform and post-mangle plugins.
|
|
10
|
+
* @param options - csszyx configuration options
|
|
11
|
+
* @returns array of Vite plugins for pre-transform and post-mangle phases
|
|
12
|
+
*/
|
|
13
|
+
declare const vitePlugin: (options?: PartialCsszyxConfig) => PluginOption[];
|
|
14
|
+
/**
|
|
15
|
+
* Creates a combined Webpack plugin that applies both pre-transform and post-mangle phases.
|
|
16
|
+
* @param options - csszyx configuration options
|
|
17
|
+
* @returns a Webpack plugin instance combining both phases
|
|
18
|
+
*/
|
|
19
|
+
declare const webpackPlugin: (options?: PartialCsszyxConfig) => WebpackPluginInstance;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a Rollup plugin array with both pre-transform and post-mangle plugins.
|
|
22
|
+
* @param options - csszyx configuration options
|
|
23
|
+
* @returns array of Rollup plugins for pre-transform and post-mangle phases
|
|
24
|
+
*/
|
|
25
|
+
declare const rollupPlugin: (options?: PartialCsszyxConfig) => InputPluginOption[];
|
|
26
|
+
/**
|
|
27
|
+
* Creates an esbuild plugin that delegates setup to both pre-transform and post-mangle plugins.
|
|
28
|
+
* @param options - csszyx configuration options
|
|
29
|
+
* @returns an esbuild plugin combining both pre-transform and post-mangle phases
|
|
30
|
+
*/
|
|
31
|
+
declare const esbuildPlugin: (options?: PartialCsszyxConfig) => Plugin;
|
|
32
|
+
|
|
33
|
+
export { esbuildPlugin as e, rollupPlugin as r, unplugin as u, vitePlugin as v, webpackPlugin as w };
|