-
I basically did this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Are you looking for something like this? import { name } from "./mymodule.js";
log(name); https://github.com/sebastienros/jint?tab=readme-ov-file#using-modules |
Beta Was this translation helpful? Give feedback.
-
Require returns an object with exported values. Probably something like this would work
|
Beta Was this translation helpful? Give feedback.
-
ok, I got around this problem by doing:
and now import { name } from "./mymodule.js"; works as expected in JavaScript |
Beta Was this translation helpful? Give feedback.
ok, I got around this problem by doing:
and now import { name } from "./mymodule.js"; works as expected in JavaScript