fix(plugin-mirror): Use default import for JSON
This commit is contained in:
parent
435b00eb53
commit
ebf7c41570
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
import { name, version } from '../package.json'
|
||||
import pkg from '../package.json'
|
||||
|
||||
const lineValues = (start, end) => {
|
||||
const { x: x1, y: y1 } = start
|
||||
|
@ -22,10 +22,10 @@ const mirrorGen = (start, end) => {
|
|||
const capFirst = (string) => string.charAt(0).toUpperCase() + string.slice(1)
|
||||
|
||||
export default {
|
||||
name: name,
|
||||
version: version,
|
||||
name: pkg.name,
|
||||
version: pkg.version,
|
||||
hooks: {
|
||||
preRender: (svg) => svg.attributes.setIfUnset('freesewing:plugin-mirror', version),
|
||||
preRender: (svg) => svg.attributes.setIfUnset('freesewing:plugin-mirror', pkg.version),
|
||||
},
|
||||
macros: {
|
||||
mirror: function ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue