Using a build-figma-plugin.main.js
file throws an Unexpected token 'export'
error when building
#197
Labels
bug
Something isn't working
I followed the instructions for adding an esbuild config file and used the code described there, but running a build with a
build-figma-plugin.main.js
file logs this error:error esbuild error Unexpected token 'export'
I believe that this line is using
importFresh()
to import the config file. But that seems to assume it's requiring a CJS module, so I don't see how that could import an exported ES module. If it's assuming CJS, then the build error makes sense.The text was updated successfully, but these errors were encountered: