-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Hi,
I'm interested in running JavaScript code that uses JS modules, including remote imports like
import { memoize } from 'https://cdn.jsdelivr.net/npm/underscore/+esm';
but I get the error
SyntaxError: Cannot use import statement outside a module
I can get this to work in STPyV8 by making an old-school bundle (or adapting the bundler made by @liran-funaro in issue #60 !)
However, V8 does support JavaScript modules, so I wonder if there's a way for STPyV8 to support this, how tricky it might be and if there is an interest in develop it?
I guess that this might be mostly just providing a switch, similar to the --input-type flag in nodejs.
Thanks!
Declan
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed