Skip to content

Commit 85b01dc

Browse files
committed
feat: add preprocessors in configs
1 parent 24c8766 commit 85b01dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export const makeSdTailwindConfig = ({
9797
transforms,
9898
buildPath,
9999
prefix,
100-
tailwind
100+
tailwind,
101+
preprocessors
101102
}: SdTailwindConfigType): Config => {
102103
if (type === undefined) {
103104
throw new Error('type is required')
@@ -108,6 +109,7 @@ export const makeSdTailwindConfig = ({
108109
}
109110

110111
return {
112+
preprocessors,
111113
source: getConfigValue(source, ['tokens/**/*.json']),
112114
hooks: {
113115
formats: {

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export type SdTailwindConfigType = {
2424
formatType?: TailwindFormatType
2525
isVariables?: boolean
2626
source?: Config['source']
27+
preprocessors?: Config['preprocessors']
2728
transforms?: PlatformConfig['transforms']
2829
buildPath?: PlatformConfig['buildPath']
2930
prefix?: PlatformConfig['prefix']

0 commit comments

Comments
 (0)