Skip to content

How to add libraries to the javascript scripting engine? #14924

Answered by lampersky
weirdyang asked this question in Q&A
Discussion options

You must be logged in to vote

@weirdyang another idea is to just change a bit "createScope" method and add a way to register external modules:

here I've just hardcoded two dummy modules, just to make sure it works:

example:

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@weirdyang
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@weirdyang
Comment options

Answer selected by weirdyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants