chore: Switched to default inport for version
The previous import of the version number from package.json looked like a named import, but was actually object destructuring that was supported by the rollup json plugin. This causes issues when importing patterns with webpack (as we do with our new NextJS based frontend) so this commit switches to importing JSON as the default export, which is also ok with webpack
This commit is contained in:
parent
be89dbb8e8
commit
2a220392d4
47 changed files with 93 additions and 105 deletions
|
@ -1,10 +1,8 @@
|
|||
import { version } from '../package.json'
|
||||
|
||||
// ?? 🤔 ?? --> https://en.freesewing.dev/packages/core/config
|
||||
import pkg from '../package.json'
|
||||
|
||||
export default {
|
||||
name: 'tutorial',
|
||||
version,
|
||||
version: pkg.version,
|
||||
design: 'joostdecock',
|
||||
code: 'joostdecock',
|
||||
department: 'accessorties',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue