Skip to content

Design: Runtime module shouldn't be an module #19

Open

Description

@hyfdev

Currently we exposed the ability of being able to modify/touch the runtime module by intercepting id \0rolldown/runtime.js in transform hook.

I saw situation in rolldown/rolldown#10906:

  • babel-plugin transpiles the \0rolldown/runtime.js module
  • \0rolldown/runtime.js imports other modules
  • other modules rely on \0rolldown/runtime.js
  • error throwed because other module needs helper function from \0rolldown/runtime.js but \0rolldown/runtime.js rely on other fuction

Thoughts:

  • "Runtime" should be something more meta-like

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions