4 ms·
A note on the require issue: this makes sense if you think of requiring as it's compiled equal - importing. You can't dynamically import dependencies - so if y
by breeny592 10y ago
A note on the require issue: this makes sense if you think of requiring as it's compiled equal - importing.
You can't dynamically import dependencies - so if you're wanting to load JSON dynamically you should be using other mechanisms (even if it's just a FS operation or having an internal service to return JSON).