code-connect
code-connect copied to clipboard
Kebab-case does not work with importPaths in figma config.
- figma.config.json
{
"codeConnect": {
"importPaths": {
"src/*": "@test"
}
}
}
- not kebab-case
import { SideSheet } from "./sidesheet.js";
figma.connect(
SideSheet,
"https://www.figma.com/...",
...
)
this case apply importPaths
- kebab-case
import { SideSheet } from "./side-sheet.js"; // kebab-case
figma.connect(
SideSheet,
"https://www.figma.com/...",
...
)
does not apply importPaths