code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

Kebab-case does not work with importPaths in figma config.

Open jongjunpark opened this issue 6 months ago • 1 comments

  • figma.config.json
{
  "codeConnect": {
    "importPaths": {
      "src/*": "@test"
    }
  }
}

  • not kebab-case
import { SideSheet } from "./sidesheet.js";

figma.connect(
  SideSheet,
  "https://www.figma.com/...",
  ...
)

image this case apply importPaths

  • kebab-case
import { SideSheet } from "./side-sheet.js"; // kebab-case

figma.connect(
  SideSheet,
  "https://www.figma.com/...",
  ...
)

image does not apply importPaths

jongjunpark avatar Aug 12 '24 11:08 jongjunpark