Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: centralize SourceTextModule compilation for builtin loader #52291

Merged
merged 1 commit into from
Apr 3, 2024

Commits on Mar 30, 2024

  1. module: centralize SourceTextModule compilation for builtin loader

    This refactors the code that compiles SourceTextModule for the
    built-in ESM loader to use a common routine so that it's easier
    to customize cache handling for the ESM loader. In addition
    this introduces a common symbol for import.meta and import()
    so that we don't need to create additional closures as handlers,
    since we can get all the information we need from the V8 callback
    already. This should reduce the memory footprint of ESM as well.
    joyeecheung committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    f0a1d34 View commit details
    Browse the repository at this point in the history