@ecopages/postcss-processor 0.2.0-alpha.9 → 0.2.0-beta.1

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/src/plugin.ts DELETED
@@ -1,522 +0,0 @@
1
- /**
2
- * PostCssProcessorPlugin
3
- * @module @ecopages/postcss-processor
4
- */
5
-
6
- import path from 'node:path';
7
- import type { IClientBridge } from '@ecopages/core';
8
- import { fileSystem } from '@ecopages/file-system';
9
- import { Processor, type ProcessorConfig } from '@ecopages/core/plugins/processor';
10
- import type { EcoBuildPlugin } from '@ecopages/core/build/build-types';
11
- import { Logger } from '@ecopages/logger';
12
- import type postcss from 'postcss';
13
- import { PostCssProcessor } from './postcss-processor';
14
- import { createCssLoaderPlugin } from './runtime/css-loader-plugin';
15
- import type { CssTransformInput } from './runtime/css-runtime-contract';
16
-
17
- const logger = new Logger('[@ecopages/postcss-processor]', {
18
- debug: process.env.ECOPAGES_LOGGER_DEBUG === 'true',
19
- });
20
-
21
- /**
22
- * Record of PostCSS plugins keyed by name
23
- */
24
- export type PluginsRecord = Record<string, postcss.AcceptedPlugin>;
25
-
26
- /**
27
- * Lazily creates PostCSS plugins.
28
- *
29
- * This is primarily used in development when a non-CSS file change forces the
30
- * processor to rebuild tracked stylesheets. Some plugins, including Tailwind,
31
- * keep internal caches in long-lived plugin instances, so recreating them is
32
- * required to pick up newly discovered classes.
33
- */
34
- export type PluginFactoryRecord = Record<string, () => postcss.AcceptedPlugin>;
35
-
36
- /**
37
- * Configuration for the PostCSS processor
38
- */
39
- export interface PostCssProcessorPluginConfig {
40
- /**
41
- * Regex filter to match files to process
42
- */
43
- filter?: RegExp;
44
- /**
45
- * Function to transform the contents of the file.
46
- * It can be handy to add a custom header or footer to the file.
47
- * Useful for injecting Tailwind v4 `@reference` directives.
48
- * @param contents The contents of the file
49
- * @param filePath The absolute path to the CSS file being processed
50
- * @returns The transformed contents
51
- */
52
- transformInput?: (contents: string | Buffer, filePath: string) => string | Promise<string>;
53
- /**
54
- * Function to transform the output CSS after PostCSS processing.
55
- * It can be handy to add a custom header or footer to the processed CSS.
56
- * @param css The processed CSS
57
- * @returns The transformed CSS
58
- */
59
- transformOutput?: (css: string) => Promise<string> | string;
60
- /**
61
- * Custom PostCSS plugins to use instead of the default ones
62
- * @default undefined (uses default plugins)
63
- */
64
- plugins?: PluginsRecord;
65
- /**
66
- * Factory functions for recreating stateful PostCSS plugins.
67
- *
68
- * When provided, Ecopages uses these factories to build a fresh plugin list
69
- * for dependency-driven stylesheet rebuilds during development.
70
- */
71
- pluginFactories?: PluginFactoryRecord;
72
- }
73
-
74
- /**
75
- * PostCssProcessorPlugin
76
- * A Processor for transforming CSS files.
77
- */
78
- export class PostCssProcessorPlugin extends Processor<PostCssProcessorPluginConfig> {
79
- static DEFAULT_OPTIONS: Required<Pick<PostCssProcessorPluginConfig, 'filter'>> = {
80
- filter: /\.css$/,
81
- };
82
-
83
- private buildContributionsPrepared = false;
84
- private postcssPlugins: postcss.AcceptedPlugin[] = [];
85
- private pluginFactories?: PluginFactoryRecord;
86
- private readonly runtimeCssCache = new Map<string, string>();
87
- private readonly trackedCssFiles = new Set<string>();
88
- private watchQueue: Promise<void> = Promise.resolve();
89
-
90
- private getCssFilter(): RegExp {
91
- return this.options?.filter ?? PostCssProcessorPlugin.DEFAULT_OPTIONS.filter;
92
- }
93
-
94
- private resolveProcessedCssPath(filePath: string): string | null {
95
- if (!this.context) {
96
- return null;
97
- }
98
-
99
- const relativePath = path.relative(this.context.srcDir, filePath);
100
- if (relativePath.startsWith('..') || path.isAbsolute(relativePath)) {
101
- return null;
102
- }
103
-
104
- return path.join(this.context.distDir, 'assets', relativePath);
105
- }
106
-
107
- private readProcessedCssFromDist(filePath: string): string | null {
108
- const outputPath = this.resolveProcessedCssPath(filePath);
109
- if (!outputPath || !fileSystem.exists(outputPath)) {
110
- return null;
111
- }
112
-
113
- return fileSystem.readFileAsBuffer(outputPath).toString('utf-8');
114
- }
115
-
116
- private async persistProcessedCss(filePath: string, css: string): Promise<void> {
117
- const outputPath = this.resolveProcessedCssPath(filePath);
118
- if (!outputPath) {
119
- return;
120
- }
121
-
122
- fileSystem.ensureDir(path.dirname(outputPath));
123
- fileSystem.write(outputPath, css);
124
- }
125
-
126
- private async prewarmRuntimeCssCache(): Promise<void> {
127
- if (!this.context) {
128
- return;
129
- }
130
-
131
- const sourceFiles = await fileSystem.glob(['**/*.{css,scss,sass,less}'], {
132
- cwd: this.context.srcDir,
133
- });
134
-
135
- for (const relativePath of sourceFiles) {
136
- const filePath = path.join(this.context.srcDir, relativePath);
137
- if (!this.matchesFileFilter(filePath)) {
138
- continue;
139
- }
140
-
141
- this.trackedCssFiles.add(filePath);
142
-
143
- const rawContents = await fileSystem.readFile(filePath);
144
- let transformedInput = rawContents;
145
-
146
- if (this.options?.transformInput) {
147
- transformedInput = await this.options.transformInput(rawContents, filePath);
148
- }
149
-
150
- const processed = await this.process(transformedInput, filePath);
151
- this.runtimeCssCache.set(filePath, processed);
152
- await this.persistProcessedCss(filePath, processed);
153
- }
154
- }
155
-
156
- private transformCssSync(input: CssTransformInput): string {
157
- const cached = this.runtimeCssCache.get(input.filePath);
158
- if (cached) {
159
- return cached;
160
- }
161
-
162
- const persisted = this.readProcessedCssFromDist(input.filePath);
163
- if (persisted) {
164
- this.runtimeCssCache.set(input.filePath, persisted);
165
- return persisted;
166
- }
167
-
168
- const { contents } = input;
169
- return typeof contents === 'string' ? contents : contents.toString('utf-8');
170
- }
171
-
172
- private async transformCssAsync(input: CssTransformInput): Promise<string> {
173
- const { contents, filePath } = input;
174
- let transformed: string = typeof contents === 'string' ? contents : contents.toString('utf-8');
175
-
176
- if (this.options?.transformInput) {
177
- const result = this.options.transformInput(contents, filePath);
178
- transformed =
179
- typeof (result as unknown as Record<string, unknown>).then === 'function'
180
- ? await (result as Promise<string>)
181
- : (result as string);
182
- }
183
-
184
- const processed = await this.process(transformed, filePath);
185
- this.runtimeCssCache.set(filePath, processed);
186
- await this.persistProcessedCss(filePath, processed);
187
- return processed;
188
- }
189
-
190
- override matchesFileFilter(filepath: string): boolean {
191
- const filter = this.options?.filter ?? PostCssProcessorPlugin.DEFAULT_OPTIONS.filter;
192
- return filter.test(filepath);
193
- }
194
-
195
- private materializePluginFactories(pluginFactories: PluginFactoryRecord): postcss.AcceptedPlugin[] {
196
- return Object.values(pluginFactories).map((factory) => factory());
197
- }
198
-
199
- private refreshConfiguredPlugins(): void {
200
- if (!this.pluginFactories) {
201
- return;
202
- }
203
-
204
- this.postcssPlugins = this.materializePluginFactories(this.pluginFactories);
205
- }
206
-
207
- private enqueueWatchTask(task: () => Promise<void>): Promise<void> {
208
- const queuedTask = this.watchQueue.then(task, task);
209
- this.watchQueue = queuedTask.catch(() => undefined);
210
- return queuedTask;
211
- }
212
-
213
- private getTrackedCssFiles(): string[] {
214
- return Array.from(this.trackedCssFiles).filter(
215
- (filePath) => this.matchesFileFilter(filePath) && fileSystem.exists(filePath),
216
- );
217
- }
218
-
219
- private async handleDependencyChange(bridge: IClientBridge): Promise<void> {
220
- if (!this.context) {
221
- return;
222
- }
223
-
224
- const cssFiles = this.getTrackedCssFiles();
225
- if (cssFiles.length === 0) {
226
- return;
227
- }
228
-
229
- this.refreshConfiguredPlugins();
230
-
231
- for (const cssFilePath of cssFiles) {
232
- await this.handleCssChange(cssFilePath, bridge, false);
233
- }
234
- }
235
-
236
- constructor(
237
- config: Omit<ProcessorConfig<PostCssProcessorPluginConfig>, 'name' | 'description'> = {
238
- options: PostCssProcessorPlugin.DEFAULT_OPTIONS,
239
- },
240
- ) {
241
- super({
242
- name: 'ecopages-postcss-processor',
243
- description: 'A Processor for transforming CSS files using PostCSS.',
244
- capabilities: [
245
- {
246
- kind: 'stylesheet',
247
- extensions: ['*.{css,scss,sass,less}'],
248
- },
249
- ],
250
- watch: {
251
- paths: [],
252
- extensions: [
253
- '.css',
254
- '.scss',
255
- '.sass',
256
- '.less',
257
- '.tsx',
258
- '.ts',
259
- '.jsx',
260
- '.js',
261
- '.mdx',
262
- '.html',
263
- '.svelte',
264
- '.vue',
265
- ],
266
- onChange: async ({ path, bridge }) => {
267
- await this.enqueueWatchTask(async () => {
268
- if (this.matchesFileFilter(path)) {
269
- await this.handleCssChange(path, bridge);
270
- return;
271
- }
272
-
273
- await this.handleDependencyChange(bridge);
274
- });
275
- },
276
- onCreate: async ({ path, bridge }) => {
277
- await this.enqueueWatchTask(async () => {
278
- if (this.matchesFileFilter(path)) {
279
- await this.handleCssChange(path, bridge);
280
- return;
281
- }
282
-
283
- await this.handleDependencyChange(bridge);
284
- });
285
- },
286
- onDelete: async ({ path, bridge }) => {
287
- await this.enqueueWatchTask(async () => {
288
- if (this.matchesFileFilter(path)) {
289
- this.runtimeCssCache.delete(path);
290
- this.trackedCssFiles.delete(path);
291
- return;
292
- }
293
-
294
- await this.handleDependencyChange(bridge);
295
- });
296
- },
297
- },
298
- ...config,
299
- });
300
- }
301
-
302
- /**
303
- * Handles CSS file changes during development.
304
- * Processes the file and broadcasts a css-update event for hot reloading.
305
- */
306
- private async handleCssChange(filePath: string, bridge: IClientBridge, refreshPlugins = true): Promise<void> {
307
- if (!this.context) return;
308
- if (!fileSystem.exists(filePath)) return;
309
-
310
- try {
311
- this.trackedCssFiles.add(filePath);
312
-
313
- if (refreshPlugins) {
314
- this.refreshConfiguredPlugins();
315
- }
316
-
317
- let content = await fileSystem.readFile(filePath);
318
-
319
- if (this.options?.transformInput) {
320
- content = await this.options.transformInput(content, filePath);
321
- }
322
-
323
- const processed = await this.process(content, filePath);
324
-
325
- const cached = this.runtimeCssCache.get(filePath);
326
- if (cached === processed) {
327
- return;
328
- }
329
-
330
- this.runtimeCssCache.set(filePath, processed);
331
- await this.persistProcessedCss(filePath, processed);
332
-
333
- bridge.cssUpdate(filePath);
334
-
335
- logger.debug(`Processed CSS: ${filePath}`);
336
- } catch (error) {
337
- const errorMessage = error instanceof Error ? error.message : String(error);
338
- logger.error(`Failed to process CSS: ${filePath}`, errorMessage);
339
- bridge.error(errorMessage);
340
- }
341
- }
342
-
343
- get buildPlugins(): EcoBuildPlugin[] {
344
- return [
345
- createCssLoaderPlugin({
346
- name: 'postcss-processor-build-loader',
347
- filter: this.getCssFilter(),
348
- transform: this.transformCssAsync.bind(this),
349
- }),
350
- ];
351
- }
352
-
353
- get plugins(): EcoBuildPlugin[] {
354
- return [
355
- createCssLoaderPlugin({
356
- name: 'postcss-processor-runtime-loader',
357
- filter: this.getCssFilter(),
358
- transform: this.transformCssSync.bind(this),
359
- }),
360
- ];
361
- }
362
-
363
- /**
364
- * Resolves the configured PostCSS plugin list before config build seals the
365
- * app manifest.
366
- *
367
- * @remarks
368
- * Runtime setup reuses this prepared list and only performs cache prewarming.
369
- */
370
- override async prepareBuildContributions(): Promise<void> {
371
- if (this.buildContributionsPrepared) {
372
- return;
373
- }
374
-
375
- await this.collectPostcssPlugins();
376
- this.buildContributionsPrepared = true;
377
- }
378
-
379
- /**
380
- * Prepares build contributions if not already done and prewarms the runtime CSS cache.
381
- */
382
- async setup(): Promise<void> {
383
- await this.prepareBuildContributions();
384
- await this.prewarmRuntimeCssCache();
385
- }
386
-
387
- /**
388
- * Get the PostCSS plugins from the options or a config file.
389
- * Searches for postcss.config.{js,cjs,mjs,ts} in the root directory.
390
- */
391
- private async collectPostcssPlugins(): Promise<void> {
392
- if (!this.context) {
393
- throw new Error('Context must be set');
394
- }
395
-
396
- const configExtensions = ['js', 'cjs', 'mjs', 'ts'];
397
- let foundConfigPath: string | undefined;
398
- let loadedPlugins: postcss.AcceptedPlugin[] | undefined;
399
- let loadedPluginFactories: PluginFactoryRecord | undefined;
400
-
401
- for (const ext of configExtensions) {
402
- const configPath = path.join(this.context.rootDir, `postcss.config.${ext}`);
403
- if (fileSystem.exists(configPath)) {
404
- foundConfigPath = configPath;
405
- break;
406
- }
407
- }
408
-
409
- if (foundConfigPath) {
410
- try {
411
- logger.debug(`Loading PostCSS config from: ${foundConfigPath}`);
412
-
413
- const postcssConfigModule = await import(foundConfigPath);
414
- const postcssConfig = postcssConfigModule.default || postcssConfigModule;
415
- if (
416
- postcssConfig &&
417
- typeof postcssConfig.pluginFactories === 'object' &&
418
- postcssConfig.pluginFactories !== null
419
- ) {
420
- loadedPluginFactories = postcssConfig.pluginFactories as PluginFactoryRecord;
421
- }
422
-
423
- if (postcssConfig && typeof postcssConfig.plugins === 'object' && postcssConfig.plugins !== null) {
424
- if (Array.isArray(postcssConfig.plugins)) {
425
- loadedPlugins = postcssConfig.plugins;
426
- } else {
427
- loadedPlugins = Object.values(postcssConfig.plugins as PluginsRecord);
428
- }
429
- logger.debug(`Successfully loaded ${loadedPlugins?.length ?? 0} plugins from config file.`);
430
- } else {
431
- logger.warn(
432
- `PostCSS config file found (${foundConfigPath}), but no valid 'plugins' export detected.`,
433
- );
434
- }
435
- } catch (error: any) {
436
- logger.error(`Error loading PostCSS config from ${foundConfigPath}: ${error.message}`, error);
437
- loadedPlugins = undefined;
438
- }
439
- } else {
440
- logger.debug('No PostCSS config file found in root directory.');
441
- }
442
-
443
- if (loadedPluginFactories) {
444
- this.pluginFactories = loadedPluginFactories;
445
- this.postcssPlugins = this.materializePluginFactories(loadedPluginFactories);
446
- } else if (loadedPlugins) {
447
- this.pluginFactories = undefined;
448
- this.postcssPlugins = loadedPlugins;
449
- } else if (this.options?.pluginFactories || this.options?.plugins) {
450
- this.pluginFactories = this.options?.pluginFactories;
451
-
452
- if (this.options?.plugins) {
453
- logger.debug('Using PostCSS plugins provided in processor options.');
454
- this.postcssPlugins = Object.values(this.options.plugins);
455
- } else if (this.options?.pluginFactories) {
456
- logger.debug('Using PostCSS plugin factories provided in processor options.');
457
- this.postcssPlugins = this.materializePluginFactories(this.options.pluginFactories);
458
- }
459
- } else {
460
- logger.warn(
461
- 'No PostCSS plugins configured. Use a preset like tailwindV3Preset() or tailwindV4Preset(), ' +
462
- 'provide plugins via options, or create a postcss.config file.',
463
- );
464
- this.pluginFactories = undefined;
465
- this.postcssPlugins = [];
466
- }
467
-
468
- if (!this.postcssPlugins || this.postcssPlugins.length === 0) {
469
- logger.warn('No PostCSS plugins configured or loaded. CSS processing might be minimal.');
470
- this.postcssPlugins = [];
471
- }
472
- }
473
-
474
- /**
475
- * Process CSS content
476
- * @param fileAsString CSS content as string
477
- * @param filePath Optional file path for resolving relative imports
478
- * @returns Processed CSS
479
- */
480
- async process(fileAsString: string, filePath?: string): Promise<string> {
481
- const input =
482
- this.options?.transformInput && filePath
483
- ? await this.options.transformInput(fileAsString, filePath)
484
- : fileAsString;
485
-
486
- return await PostCssProcessor.processStringOrBuffer(input, {
487
- filePath,
488
- plugins: this.postcssPlugins,
489
- transformOutput: this.options?.transformOutput,
490
- });
491
- }
492
-
493
- processSync(fileAsString: string, filePath?: string): string {
494
- const input =
495
- this.options?.transformInput && filePath
496
- ? this.options.transformInput(fileAsString, filePath)
497
- : fileAsString;
498
-
499
- if (input instanceof Promise) {
500
- throw new Error('transformInput must be synchronous when used with processSync');
501
- }
502
-
503
- return PostCssProcessor.processStringOrBufferSync(input, {
504
- filePath,
505
- plugins: this.postcssPlugins,
506
- transformOutput: this.options?.transformOutput,
507
- });
508
- }
509
-
510
- /**
511
- * Teardown the PostCSS processor.
512
- */
513
- async teardown(): Promise<void> {
514
- logger.debug('Tearing down PostCSS processor');
515
- }
516
- }
517
-
518
- export const postcssProcessorPlugin = (config?: PostCssProcessorPluginConfig): PostCssProcessorPlugin => {
519
- return new PostCssProcessorPlugin({
520
- options: config,
521
- });
522
- };
@@ -1,157 +0,0 @@
1
- /**
2
- * This module contains the PostCSS Processor
3
- * @module
4
- */
5
-
6
- import { existsSync, readFileSync } from 'node:fs';
7
- import { Logger } from '@ecopages/logger';
8
- import postcss from 'postcss';
9
-
10
- /**
11
- * PostCSS Processor Options
12
- */
13
- export type PostCssProcessorOptions = {
14
- plugins?: postcss.AcceptedPlugin[];
15
- /**
16
- * Optional file path for resolving relative imports
17
- */
18
- filePath?: string;
19
- /**
20
- * Optional callback to transform the output CSS
21
- * @param css The processed CSS
22
- * @returns The transformed CSS
23
- */
24
- transformOutput?: (css: string) => string | Promise<string>;
25
- };
26
-
27
- /**
28
- * ProcessPath
29
- * @param path string
30
- * @param options {@link PostCssProcessorOptions}
31
- * @returns string
32
- */
33
- export type ProcessPath = (path: string, options?: PostCssProcessorOptions) => Promise<string>;
34
-
35
- /**
36
- * ProcessStringOrBuffer
37
- * @param contents string | Buffer
38
- * @param options {@link PostCssProcessorOptions}
39
- * @returns string
40
- */
41
- export type ProcessStringOrBuffer = (contents: string | Buffer, options?: PostCssProcessorOptions) => Promise<string>;
42
-
43
- const appLogger = new Logger('[@ecopages/postcss-processor]');
44
-
45
- export function getFileAsBuffer(path: string): Buffer {
46
- try {
47
- if (!existsSync(path)) {
48
- throw new Error(`File: ${path} not found`);
49
- }
50
- return readFileSync(path);
51
- } catch (error) {
52
- const errorMessage = error instanceof Error ? error.message : String(error);
53
- throw new Error(`[ecopages] Error reading file: ${path}, ${errorMessage}`);
54
- }
55
- }
56
-
57
- const getPlugins = (options?: PostCssProcessorOptions): postcss.AcceptedPlugin[] => {
58
- if (!options || !options.plugins) return [];
59
- return Array.isArray(options.plugins) ? options.plugins : Object.values(options.plugins);
60
- };
61
-
62
- /**
63
- * It processes the given path using PostCSS
64
- * @param path string
65
- * @param options {@link PostCssProcessorOptions}
66
- * @returns string
67
- *
68
- * @example
69
- * ```ts
70
- * PostCssProcessor.processPath('path/to/file.css').then((processedCss) => {
71
- * console.log(processedCss);
72
- * });\n */
73
- const processPath: ProcessPath = async (path, options) => {
74
- const contents = getFileAsBuffer(path);
75
-
76
- return postcss(getPlugins(options))
77
- .process(contents, { from: path })
78
- .then((result) => result.css)
79
- .catch((error) => {
80
- appLogger.error('Error processing file with PostCssProcessor', error.message);
81
- return '';
82
- });
83
- };
84
-
85
- /**
86
- * It processes the given string or buffer using PostCSS
87
- * @param contents string | Buffer
88
- * @param options {@link PostCssProcessorOptions}
89
- * @returns string
90
- *
91
- * @example
92
- * ```ts
93
- * const css = `body { @apply bg-blue-500; }`;
94
- *
95
- * PostCssProcessor.processString(css).then((processedCss) => {
96
- * console.log(processedCss);
97
- * });
98
- * ```
99
- */
100
- const processStringOrBuffer: ProcessStringOrBuffer = async (contents, options) => {
101
- if (!contents) return '';
102
-
103
- return postcss(getPlugins(options))
104
- .process(contents, { from: options?.filePath })
105
- .then(async (result) => {
106
- let css = result.css;
107
- if (options?.transformOutput) {
108
- css = await options.transformOutput(css);
109
- }
110
- return css;
111
- })
112
- .catch((error) => {
113
- appLogger.error('Error processing string or buffer with PostCssProcessor', error.message);
114
- return '';
115
- });
116
- };
117
-
118
- export type ProcessStringOrBufferSync = (contents: string | Buffer, options?: PostCssProcessorOptions) => string;
119
-
120
- const processStringOrBufferSync: ProcessStringOrBufferSync = (contents, options) => {
121
- if (!contents) return '';
122
-
123
- try {
124
- const result = postcss(getPlugins(options)).process(contents, { from: options?.filePath });
125
- let css = result.css;
126
- if (options?.transformOutput) {
127
- const output = options.transformOutput(css);
128
- if (output instanceof Promise) {
129
- throw new Error('transformOutput must be synchronous when used with processStringOrBufferSync');
130
- }
131
- css = output;
132
- }
133
- return css;
134
- } catch (error) {
135
- if (error instanceof Error && error.message.includes('transformOutput must be synchronous')) {
136
- throw error;
137
- }
138
- appLogger.error('Error processing string or buffer with PostCssProcessor', (error as Error).message);
139
- return '';
140
- }
141
- };
142
-
143
- /**
144
- * PostCSS Processor
145
- * - {@link processPath} : It processes the given path using PostCSS
146
- * - {@link processStringOrBuffer}: It processes the given string or buffer using PostCSS
147
- * - {@link processStringOrBufferSync}: It processes the given string or buffer synchronously using PostCSS (requires all plugins to be sync)
148
- */
149
- export const PostCssProcessor: {
150
- processPath: ProcessPath;
151
- processStringOrBuffer: ProcessStringOrBuffer;
152
- processStringOrBufferSync: ProcessStringOrBufferSync;
153
- } = {
154
- processPath,
155
- processStringOrBuffer,
156
- processStringOrBufferSync,
157
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * PostCSS Processor Presets
3
- * @module @ecopages/postcss-processor/presets
4
- */
5
-
6
- export { tailwindV3Preset } from './tailwind-v3';
7
- export { tailwindV4Preset, type TailwindV4PresetOptions } from './tailwind-v4';