Hello!
I’m trying to create plugin for Figma. I use React + ESbuilder. I have src and dist folders.

My index.html contains:
<div id="root"></div>
<script src="ui.js"></script>
The problem is that plugin doesn’t see (or what?) ui.js. When I start plugin I see only empty screen.
If I write JS code exactly in script tag — it works. But with external file it doesn’t work.
There are no errors anywhere.
What should I do to solve this?