…if you’re so inclined to do things exactly as you did in the past. I’m pretty sure bundlers will even transform that into an ordinary module import.
The cases where you actually need dynamic imports are few and far between. Are we actually talking about engine limitations here, or is it just a few snowflakes that insist on creating loggers like this?
require("debug")("acme")
What is so particularly pretty about that is beyond me.
The cases where you actually need dynamic imports are few and far between. Are we actually talking about engine limitations here, or is it just a few snowflakes that insist on creating loggers like this?
What is so particularly pretty about that is beyond me.> ESM import runs side effects as well.
At runtime, yes. Not during static analysis.