Does importing just a type from a package requires the package to be a dependency? #27
Unanswered
rafael-lua
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
My issue is simple: My build was breaking and when investigating it, I found that it was because I moved a package to dev dependencies rather than a dependency. The reason was that I only used a
import { type ... }
from it, so it did not seem as a dependency.I solved by declaring the package as external in uno config
externals: ["@unocss/core"]
.My question here is if this is the correct behavior and if using external is a solution, or I should indeed declare the package a dependency?
Beta Was this translation helpful? Give feedback.
All reactions