Skip to content

Commit

Permalink
add transformerVariantGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
idmytro committed Feb 4, 2024
1 parent 4667995 commit edb17a1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions _2024-shadcn-uno/uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { presetShadcn } from 'unocss-preset-shadcn'
export default defineConfig({
transformers: [
transformerDirectives(),
// @ts-expect-error transformerVariantGroup is not yet typed
transformerVariantGroup(),
],
presets: [
Expand Down
1 change: 1 addition & 0 deletions _2024/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"devDependencies": {
"@antfu/eslint-config": "^2.6.2",
"@unocss/transformer-directives": "^0.58.3",
"@unocss/transformer-variant-group": "^0.58.5",
"@vitejs/plugin-vue": "^5.0.3",
"eslint": "^8.56.0",
"eslint-plugin-no-autofix": "^1.2.3",
Expand Down
13 changes: 13 additions & 0 deletions _2024/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions _2024/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { defineConfig } from 'unocss'
import transformerDirectives from '@unocss/transformer-directives'
import transformerVariantGroup from '@unocss/transformer-variant-group'

export default defineConfig({
transformers: [
transformerDirectives(),
// @ts-expect-error transformerVariantGroup is not yet typed
transformerVariantGroup(),
],
})

0 comments on commit edb17a1

Please sign in to comment.