You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common = import_common()
function Render() {
return `render = ${common.some_value()}`
}
function import_common() {
function some_value() {
return 'imported value'
}
return {
some_value
}
}
I tried to extract import_common into a separate script, but no luck.
I tried with a variable in the global context, returning an object from the script and none of the methods worked.
Is there a way to resolve the import in some dirty way before the module import changes arrive?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
i got this script:
I tried to extract import_common into a separate script, but no luck.
I tried with a variable in the global context, returning an object from the script and none of the methods worked.
Is there a way to resolve the import in some dirty way before the module import changes arrive?
Beta Was this translation helpful? Give feedback.
All reactions