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.
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.