Improve Bundling Docs Could Use More Info About Quirks


I’ve made plugins for Photoshop, Illustrator, InDesign, XD, Sketch, and now Figma. Figma has by far been the nicest developer experience, so thank you for that! Honestly the whole experience has been smooth except at one point — bundling. Specifically, I had to use some webpack plugins to work around a few syntax error issues that came from dependencies that were compiled for es6, which don’t go through TypeScript and don’t normally get transpiled by Webpack.

I realize this is a bit of a toolchain specific request, but since y’all have focused the bundling doc on Webpack and es6/esm modules are only becoming more common, I would have expected at least a callout or something that some extra work might be required. I think it’d be nice for future new plugin devs to have a bit of a heads up that some special considerations may be necessary when using dependencies.

Hopefully this is useful. Thanks again for the otherwise excellent DX!

Hey Cameron, thank you for your feedback! Please don’t forget to upvote this.

1 Like