wyw-in-js
wyw-in-js copied to clipboard
`export * from 'xxx'` statements are incorrectly omitted by wyw
Environment
- wyw-in-js version: 0.5.3
- custom processor: No
- Bundler (+ version): Webpack 5.88.2
- Node.js version: 16.20.2
- OS: Arch Linux
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:
// main.js
import { foo, bar } from './a';
console.log(foo, bar); // cannot find 'foo'
// a.js
export * from './b';
export const bar = 'baz';
// b.jsx
export const foo = 42;
Configuration File (wyw-in-js.config.js):
module.exports = {
extensions: ['.js'],
};