4 ms·
> You actually can reflect on module exports and dynamically change them with node modules; you can't do it with ES modules, but that has the significant advant
by lambdadmitry 8y ago
> You actually can reflect on module exports and dynamically change them with node modules; you can't do it with ES modules, but that has the significant advantage of enabling static analysis.
And yet even that advantage got thrown out from the language with the introduction of "import()". Apparently static analysis is a non-goal (see discussion in [1]).
[1]: https://github.com/tc39/proposal-dynamic-import/issues/35 https://github.com/tc39/proposal-dynamic-import/issues/35
- slikts 8y agoDynamic imports don't replace static imports.