You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround for #2672 which requires more work, we could initially extend the --no-bundle to support uploading multiple files by traversing the entry-point module pointed to via main property, and extracting graph of modules imported via static and dynamic ES imports.
It would be sufficient if we initially supported dynamic imports with literal strings instead (i.e. not support import(someVariable).
There are various tools out there that can scan files for ES imports. I believe Vite uses some library that avoids building up the whole AST, but maybe we could just try using ESBuild first since we already depend on it, and use it just to extract the graph (and not do any code transformation).
The text was updated successfully, but these errors were encountered:
Describe the solution
As a workaround for #2672 which requires more work, we could initially extend the
--no-bundle
to support uploading multiple files by traversing the entry-point module pointed to viamain
property, and extracting graph of modules imported via static and dynamic ES imports.It would be sufficient if we initially supported dynamic imports with literal strings instead (i.e. not support
import(someVariable)
.There are various tools out there that can scan files for ES imports. I believe Vite uses some library that avoids building up the whole AST, but maybe we could just try using ESBuild first since we already depend on it, and use it just to extract the graph (and not do any code transformation).
The text was updated successfully, but these errors were encountered: