-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for passing
baseUrl
when running
Previously, `baseUrl` was supported at compile time. That meant it wasn’t possible to use `compile` with `outputFormat: 'function-body'` on a server and `run` on a client, and choosing the URL there, which is likely what you want in that setup, to pass `import.meta.url`. Additionally, `import()` expressions using an exression (e.g., `'@mdx-js/' + 'mdx'`) are now supported. If you use `run` or `evaluate`, you *should* pass `baseUrl`, likely as `import.meta.url`. If you don’t, and it is needed (because `export … from`, `import`, or `import.meta.url`), you will get a runtime error.
- Loading branch information
Showing
7 changed files
with
429 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.