You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change may seem significant, but for most users, it's likely to have minimal impact. If your project already uses type="module" in your package.json, you're good to go.
However, if your project hasn't yet made this transition, you'll need to rename your .figmaexportrc.js configuration file:
- .figmaexportrc.js+ .figmaexportrc.mjs
adjust the command you run:
figma-export use-config .figmaexportrc.mjs
and start using import foo from 'foo' instead of const foo = require('foo') to import the packages inside the .figmaexportrc.mjs. You can take a look at .figmaexportrc.example.js as an example.
This discussion was created from the release v6.0.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
v6.0.0 (2024-05-10)
☄️ Breaking Changes
cli
,core
,output-components-as-es6
,output-components-as-stdout
,output-components-as-svg
,output-components-as-svgr
,output-components-as-svgstore
,output-styles-as-css
,output-styles-as-less
,output-styles-as-sass
,output-styles-as-style-dictionary
,transform-svg-with-svgo
,types
,utils
,website
Committers: 1
What's inside?
Breaking changes
This library is now pure ESM.
This change may seem significant, but for most users, it's likely to have minimal impact. If your project already uses
type="module"
in yourpackage.json
, you're good to go.However, if your project hasn't yet made this transition, you'll need to rename your
.figmaexportrc.js
configuration file:adjust the command you run:
and start using
import foo from 'foo'
instead ofconst foo = require('foo')
to import the packages inside the.figmaexportrc.mjs
. You can take a look at .figmaexportrc.example.js as an example.This discussion was created from the release v6.0.0.
Beta Was this translation helpful? Give feedback.
All reactions