Support module aliases in import statements by utilizing jiti's alias
option
#11914
philbaker4
started this conversation in
Ideas
Replies: 2 comments
-
My current particular use case is importing a custom plugin and themes from Nx libraries using the defined alias for those libraries (in tsconfig |
Beta Was this translation helpful? Give feedback.
0 replies
-
any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ideally, tailwind configs would utilize module aliases when importing custom plugins, theme overrides, etc. There's a previously closed issue documenting jiti's isolated environment approach. However, it does seem that jiti supports an
alias
option through which you could pass import aliases. Given that it is likely not preferable for tailwind to support all of the different methods through which module aliases might be defined in a repository, my brain jumps to enabling a newaliasPaths
property in tailwind configs that would be passed through to jiti'salias
option. I'm certain I'm glossing over important details but wanted to restart this conversation to see if there's any progress to be made in this direction.Beta Was this translation helpful? Give feedback.
All reactions