From 5939e30c3a74069c2421bea4d5d3c4ebd0d48ce5 Mon Sep 17 00:00:00 2001 From: Patryk Zdunowski Date: Wed, 8 Oct 2025 22:00:22 +0000 Subject: [PATCH] feat(more-postcss-options): impl --- src/declarations.ts | 3 ++- src/index.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/declarations.ts b/src/declarations.ts index 9cb33dd..4b173c5 100644 --- a/src/declarations.ts +++ b/src/declarations.ts @@ -1,6 +1,7 @@ export * from '@stencil/core/internal'; +import {ProcessOptions} from "postcss" -export interface PluginOptions { +export interface PluginOptions extends Omit { injectGlobalPaths?: string[]; plugins?: any[]; } diff --git a/src/index.ts b/src/index.ts index 62437e0..ed40cef 100755 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,11 @@ export function postcss(opts: d.PluginOptions = {}): d.Plugin { return new Promise((resolve) => { postCss(renderOpts.plugins) .process(renderOpts.data, { + map: opts.map || undefined, + parser: opts.parser || undefined, + stringifier: opts.stringifier || undefined, + syntax: opts.syntax || undefined, + to: opts.to || undefined, from: fileName, }) .then((postCssResults) => {