Inspired by Electron, a simple event emitter you can use to communicate between your main script
and your html
UI. Original by @mattdesl, adapted to TypeScript by me.
Webpack guide for Figma plugins: https://www.figma.com/plugin-docs/bundling-webpack/
Install types for events
:
npm install @types/events