PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.03k stars 346 forks source link

[BUG] In monorepo project, the jsx component in a shared ui library can not be transformed by 'automatic'. #869

Open shlroland opened 7 months ago

shlroland commented 7 months ago

What happened?

image

My project structure

you can see the Icon component

image

had been transform to

image

But I did not explicitly declare the introduction of react in the original file.So there war an error.

image

The jsx component in the src folder in the plasmo project can be transformed and automatically imported.

image image

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct