Using modules with SES #1576
Answered
by
kriskowal
vamshich13
asked this question in
Q&A
Replies: 1 comment
-
|
To get synchronous execution under importNow, the module and its transitive
dependencies must first all be loaded, which is an asynchronous operation.
So:
```js
await c.load(s)
c.importNow(s)
```
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dckc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to use modules in SES.
I was able to run the code below with
mySESCompartment.import. How can I usemySESCompartment.importNow? I want to execute module code synchronously.Please reply to my query, [ @naugtur @kriskowal @michaelfig ]
Thanks
Beta Was this translation helpful? Give feedback.
All reactions