fix(plugin-scalebox): Use default import for JSON
This commit is contained in:
parent
93f5966be1
commit
4adf6a4bb8
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
import { version, name } from '../package.json'
|
||||
import pkg from '../package.json'
|
||||
import scalebox from './scalebox'
|
||||
import miniscale from './miniscale'
|
||||
|
||||
export default {
|
||||
name: name,
|
||||
version: version,
|
||||
name: pkg.name,
|
||||
version: pkg.version,
|
||||
hooks: {
|
||||
preRender: (svg) => svg.attributes.setIfUnset('freesewing:plugin-scalebox', version),
|
||||
preRender: (svg) => svg.attributes.setIfUnset('freesewing:plugin-scalebox', pkg.version),
|
||||
},
|
||||
macros: { scalebox, miniscale },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue