Skip to content

Module loading improvements #1933

@muuvmuuv

Description

@muuvmuuv

As promised I will give back some improvements I made in my code-base (thanks Claude, good assistant). I had often came into issues when using module in plugins/index-html that come from my monorepo and have relative imports (and other issues with cjs/esm). Long story short I came across tsx and implemented it together with Claude.

The two relevant files:

So load-esm is no longer required, general syntax got more secure, no more Function loading and it handles all tsconfig-paths and other import issues someone might have out-of-the-box.

Additionalliy load-plugins can again load them in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions