Skip to content

Commit

Permalink
feat(transformer): support tagged template function
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 7, 2024
1 parent 224d533 commit cbff8bd
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 149 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ import { RemoveWrapperFunction } from 'unplugin-ast/transformers'
/**
* Removes wrapper function. e.g `defineComponent`, `defineConfig`...
* @param functionNames - function names to remove
*
* @example defineComponent()
* @example tw`text-red-500 ${expr}`
*/
declare const RemoveWrapperFunction: (
functionNames: Arrayable<string>,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@babel/generator": "^7.24.5",
"@babel/parser": "^7.24.5",
"@rollup/pluginutils": "^5.1.0",
"ast-kit": "^1.0.0",
"ast-kit": "^1.3.1",
"magic-string-ast": "^0.6.0",
"unplugin": "^1.10.1"
},
Expand Down
178 changes: 36 additions & 142 deletions pnpm-lock.yaml

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

Loading

0 comments on commit cbff8bd

Please sign in to comment.