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
You can use import.meta.resolve for JavaScript modules, but it’s not currently supported for files (as it assumes that the referenced file is in _import rather than _file). It would be nice as an alternative to FileAttachment(name).url() because it is synchronous, e.g.,
Related #954. Perhaps _import and _file could be combined? But the challenge there is we transpile JavaScript, and hence we want to keep _import and _file separate. 🤔
The text was updated successfully, but these errors were encountered:
We can also use FileAttachment(name).href for synchronous resolution, but it's good to have both, especially since import.meta.resolve is a built-in function.
You can use
import.meta.resolve
for JavaScript modules, but it’s not currently supported for files (as it assumes that the referenced file is in_import
rather than_file
). It would be nice as an alternative toFileAttachment(name).url()
because it is synchronous, e.g.,Related #954. Perhaps
_import
and_file
could be combined? But the challenge there is we transpile JavaScript, and hence we want to keep_import
and_file
separate. 🤔The text was updated successfully, but these errors were encountered: