-
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.
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.
-
Beta Was this translation helpful? Give feedback.
unjs/unbuild#395