You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first, let me sincerely thank for your efforts. What an extraordinary speed in a bundler, and i have tried all of them.
Unfortunately i have found a bug.
If you define esm as output format, and are importing from different files the same method, i believe something is not like it should be.
First file app.js:
import{pasPart,h,render}from'./import';import{Internal}from'./in2';constApp=()=><Part><Internal/> T </Part>;render(<App/>,document.getElementById('app'));
Second file in2.js:
import{pasPart,h}from'./import';exportconstInternal=()=><Part> Test 2 </Part>;
// src/import.jsimport{h,render}from"preact";constp="p";// src/in2.jsconstInternal=()=>h3(p,null," Test 2 ");// src/in.jsconstApp=()=>h2(p,null,h2(Internal,null)," T ");render2(h2(App,null),document.getElementById("app"));
Note the broken h2, render2, h3 functions.
Preact is marked as external file, output format esm. Yes i know this is an uncommon way of doing it. But, in other bundlers, output bundle is smaller, because the reexported function is only referenced once, and i am able to reuse it, and its possible to reexport it with the same name. What is important, with h and render in react/preact ...
Thank you.
The text was updated successfully, but these errors were encountered:
Thank you for the clear description of what's wrong and for the minimal test case. It looks like I'm not binding imports to re-exports. I'm surprised I haven't run into this issue yet with all of my testing. This will be fixed soon.
At first, let me sincerely thank for your efforts. What an extraordinary speed in a bundler, and i have tried all of them.
Unfortunately i have found a bug.
If you define esm as output format, and are importing from different files the same method, i believe something is not like it should be.
First file app.js:
Second file in2.js:
Third file import.js:
output:
Note the broken h2, render2, h3 functions.
Preact is marked as external file, output format esm. Yes i know this is an uncommon way of doing it. But, in other bundlers, output bundle is smaller, because the reexported function is only referenced once, and i am able to reuse it, and its possible to reexport it with the same name. What is important, with h and render in react/preact ...
Thank you.
The text was updated successfully, but these errors were encountered: