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
{{ message }}
Repository navigation
Cannot implement import attribute with { type: "external" } #3646
is a pretty punishing operation. What you ask from esbuild here is call a javascript method on every single import statement, which blocks esbuild from grinding through your project as fast as possible, as it can only pick the next file when your resolver answered. Even if this took only a millisecond to answer, on 1000 import statements you added 1 second of overhead.
Reacted by Rom, Levi Hechenberger Di Valentino and Brian Kim
It might turn out to be a really handy option. As for possible performance issues I saw someone had suggested to introduce extra filtering property, smth. like { filter: /.*/, withType: "external" }.
Activity
evanw commentedon Feb 20, 2024
This is not currently supported, but it's something to add to esbuild in the future. I think this issue is related to at least #3384 and #3639.
sod commentedon Feb 21, 2024
Keep in mind that
is a pretty punishing operation. What you ask from esbuild here is call a javascript method on every single import statement, which blocks esbuild from grinding through your project as fast as possible, as it can only pick the next file when your resolver answered. Even if this took only a millisecond to answer, on 1000 import statements you added 1 second of overhead.
magoniac commentedon Apr 16, 2024
It might turn out to be a really handy option. As for possible performance issues I saw someone had suggested to introduce extra filtering property, smth. like { filter: /.*/, withType: "external" }.
fix evanw#3639, fix evanw#3646: pass `with` to `onResolve`