Reproduction link or steps
Suppose there are two entry point files A.js and B.js, and an additional file C.js. An exported function in A.js calls a function provided by C.js. B.js is a simple wrapper and re-exports the function from A.js.
A minimal reproducer can be found here.
What is expected?
Expected behavior might be generating two chunks, one containing the code from A.js and C.js, the other containing re-export declarations in B.js.
This behavior is what rollup does.
What is actually happening?
Actual behavior of rolldown is to generate three chunks, one containing the code from A.js and C.js, the other two containing re-export declarations.
System Info
Any additional comments?
Is this behavior intended?
Reproduction link or steps
Suppose there are two entry point files A.js and B.js, and an additional file C.js. An exported function in A.js calls a function provided by C.js. B.js is a simple wrapper and re-exports the function from A.js.
A minimal reproducer can be found here.
What is expected?
Expected behavior might be generating two chunks, one containing the code from A.js and C.js, the other containing re-export declarations in B.js.
This behavior is what rollup does.
What is actually happening?
Actual behavior of rolldown is to generate three chunks, one containing the code from A.js and C.js, the other two containing re-export declarations.
System Info
Any additional comments?
Is this behavior intended?