-
Hi, does anyone know how to dynamically import TypeScript files with export const command = {
ping: () => import(findPath('ping')).then(m => m.default || m)
} However, during the prepack with |
Beta Was this translation helpful? Give feedback.
Answered by
pi0
May 7, 2024
Replies: 2 comments
-
When the argument of import is a static string like './commands/ping' the chunks folder is generated on prepack and everything works well but with a variable, in my case |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nethriis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
unjs/unbuild#395