Skip to main content
Question

How to export and import components from other .ts file


Hey guys. I am attempting to develop a plugin featuring multiple individual menus. I have noticed that incorporating all functions into a single code.ts file makes it rather difficult to manage. Apparently, Figma does not permit each plugin menu to possess its own *.ts file. Therefore, my resolution was to write each menu into separate .ts files and subsequently, export them, with the aim of importing them into the primary code.ts file. Unfortunately, this original plan of mine does not seem to be functioning as expected. Does anyone have a solution for this issue?

This topic has been closed for replies.

4 replies

tank666
  • 4873 replies
  • June 30, 2023

  • Author
  • 4 replies
  • June 30, 2023

thank you so much. is there any template of this?


tank666
  • 4873 replies
  • June 30, 2023

  • Author
  • 4 replies
  • July 6, 2023

Thank you so much.


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