Skip to main content

Improve Bundling Docs Could Use More Info About Quirks

  • December 20, 2023
  • 2 replies
  • 190 views

Cameron_McEfee

Hello!

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!

2 replies

Gayani_S
Figmate
  • Community Support
  • 1935 replies
  • December 21, 2023

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


Claudia Mockridge

Yeah, bundling can be tricky, especially when dealing with es6 dependencies. Had a similar issue once while working on a Pearl Lemon Commercial repairs project ended up tweaking Webpack configs to make it work!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings