plotly.js
plotly.js copied to clipboard
[chore] Replace require() with import/export
Newer tooling expect import/export, so gradually getting this sorted out will help with:
- #7111
@gvwilson This requires extra refactoring. Let's keep it open.
Doesn't the move to esbuild mean we have to get rid of require() ?
Doesn't the move to esbuild mean we have to get rid of
require()?
No. We don't have to.
:+1: How many more days of work do you think it will be to remove require() when the time comes?
👍 How many more days of work do you think it will be to remove
require()when the time comes?
I think not only the require calls should be changed to import; but also the module export and type should change to ESM. Also the filenames may need to be converted from .js to .mjs. No?
That looks it require a couple of weeks.
@birkskyum Have you done similar change modernizing the mapbox > maplibre code?