@figma-export/output-components-as-es6
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "@figma-export/output-components-as-es6", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Outputter for @figma-export that exports components in javascript file", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "504328785193bdd5143d25ce4abb4ab1242f4ea2" | ||
"gitHead": "bd8cc66c1a044618f2bb694450aa799a1964db2f" | ||
} |
@@ -30,3 +30,5 @@ # @figma-export/output-components-as-es6 | ||
```js | ||
module.exports = { | ||
import asES6 from '@figma-export/output-components-as-es6' | ||
export default { | ||
commands: [ | ||
@@ -37,3 +39,3 @@ ['components', { | ||
outputters: [ | ||
require('@figma-export/output-components-as-es6')({ | ||
asES6({ | ||
output: './output' | ||
@@ -52,7 +54,8 @@ }) | ||
```js | ||
const { camelCase } = require('@figma-export/utils'); | ||
import asES6 from '@figma-export/output-components-as-es6' | ||
import { camelCase } from '@figma-export/utils' | ||
... | ||
require('@figma-export/output-components-as-es6')({ | ||
asES6({ | ||
output: './output', | ||
@@ -59,0 +62,0 @@ getVariableName: (options) => camelCase(options.componentName.trim()), |
10009
100