feat(brian): No need to import plugin-mirror, it's in the bundle now
This commit is contained in:
parent
64a5cd8def
commit
e0e2d589a0
3 changed files with 6 additions and 5 deletions
|
@ -179,11 +179,13 @@ paco:
|
|||
peer:
|
||||
'@freesewing/titan': *freesewing
|
||||
plugin-bundle:
|
||||
_:
|
||||
dev:
|
||||
'@freesewing/plugin-buttons': *freesewing
|
||||
'@freesewing/plugin-cutonfold': *freesewing
|
||||
'@freesewing/plugin-dimension': *freesewing
|
||||
'@freesewing/plugin-grainline': *freesewing
|
||||
'@freesewing/plugin-logo': *freesewing
|
||||
'@freesewing/plugin-mirror': *freesewing
|
||||
'@freesewing/plugin-title': *freesewing
|
||||
'@freesewing/plugin-scalebox': *freesewing
|
||||
'@freesewing/plugin-round': *freesewing
|
||||
|
|
|
@ -7,7 +7,7 @@ import { name, version, description, author, license, main, module, rollup } fro
|
|||
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
||||
const output = [
|
||||
{
|
||||
banner
|
||||
banner,
|
||||
file: main,
|
||||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
|
@ -16,7 +16,7 @@ const output = [
|
|||
]
|
||||
if (typeof module !== 'undefined')
|
||||
output.push({
|
||||
banner
|
||||
banner,
|
||||
file: module,
|
||||
format: 'es',
|
||||
sourcemap: true
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import freesewing from '@freesewing/core'
|
||||
import plugins from '@freesewing/plugin-bundle'
|
||||
import mirrorPlugin from '@freesewing/plugin-mirror'
|
||||
import config from '../config'
|
||||
// Parts
|
||||
import draftBase from './base'
|
||||
|
@ -10,7 +9,7 @@ import draftSleevecap from './sleevecap'
|
|||
import draftSleeve from './sleeve'
|
||||
|
||||
// Create design
|
||||
const Pattern = new freesewing.Design(config, [plugins, mirrorPlugin])
|
||||
const Pattern = new freesewing.Design(config, plugins)
|
||||
|
||||
// Attach draft methods to prototype
|
||||
Pattern.prototype.draftBase = draftBase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue