Open hjkcai opened 2 months ago
Can you please provide a complete example on Stackblitz?
https://stackblitz.com/edit/webpack-5-react-starter-sywkqd
I found the key problem: If b.jsx
was ignored from wyw, and a.js
has export * from './b'
, the statement will be removed by wyw in explodeReexports.ts Line 98.
In my project, all .ts
files are ignored to make compliation faster. Only .tsx
files are processed by wyw. Then this issue occurs.
@layershifter Hi! Any thoughts?
Environment
Description
As the issue title said. I tried to debug the webpack loader. I am sure that wyw's loader has omitted the
export *
statement.Reproducible Demo
Source Code:
Configuration File (wyw-in-js.config.js):