wyw-in-js icon indicating copy to clipboard operation
wyw-in-js copied to clipboard

`export * from 'xxx'` statements are incorrectly omitted by wyw

Open hjkcai opened this issue 2 months ago • 3 comments

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.

image

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'],
};

hjkcai avatar Apr 30 '24 06:04 hjkcai