v8: Do the JavaScript "import" and "require" statements work as intended with v8?

loadmess's icon

The title is self-explanatory.

Do the JavaScript "import" and "require" statements work as intended with v8?

I didn't find any examples.

Thanks

Joshua Kit Clayton's icon

import (ESM) does not work for v8 at this time, but require (CommonJS) and include (max specific) do.

Here's a little require example that uses numeric.js

02-numeric-example.zip
zip


loadmess's icon

🙏 Thank You very much Joshua!