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
In 1 of our projects we dynamically import files at runtime based on what the user has requested. Previously when we were using webpack to build the project it would automatically detect those import lines and include all the files that matched the base of the import in the bundle out of the box, however I cannot get this to work with esbuild. An example of 1 of the import lines is as follows:
Further digging lead me to #56, which shows that it's in fact a limitation of esbuild that is not intended to be resolved. Unfortunate, but will look at the workarounds suggested in that issue.
Oh that's really good to hear (and very useful timing!), I will subscribe to that PR and await for a version to be released with this change for now then and continue with other things (still got a whole bunch of other things to migrate over for this specific project anyway, so the old webpack builder will suffice until that new change is released)
In 1 of our projects we dynamically import files at runtime based on what the user has requested. Previously when we were using webpack to build the project it would automatically detect those import lines and include all the files that matched the base of the import in the bundle out of the box, however I cannot get this to work with esbuild. An example of 1 of the import lines is as follows:
Is there a way I can make esbuild detect these imports and include the files in the bundle similarly to webpack?
The text was updated successfully, but these errors were encountered: