4 ms·
> The only way around this is with `await import`, which would break the supposed static analyzer benefits, Isn't that the case for commonjs et al for similar
by its-summertime 3y ago
> The only way around this is with `await import`, which would break the supposed static analyzer benefits,
Isn't that the case for commonjs et al for similar situations? And wouldn't the solutions for commonjs also apply to ESM?
> and even then require weird hacks with parentheses to make it work correctly.
Operator/et-al precedence is something you'll fight regardless, no? Its annoying, yes, but that doesn't make it a "hack", its a oft well understood system.