Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit 4663afb

Browse files
committed
Resolve build error because poi doesnt support alias and babel when build component
1 parent f6296a9 commit 4663afb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010
"SVG"
1111
],
1212
"main": "dist/vue-annotator.js",
13+
"files": [
14+
"src/components/",
15+
"src/mixins/"
16+
],
1317
"author": "Fahmi Akbar Wildana",
1418
"license": "MIT",
1519
"private": false,
1620
"bugs": "https://github.com/DrSensor/vue-annotator/issues",
1721
"scripts": {
1822
"dev": "poi --config .storybook/poi.config.js --storybook -o",
1923
"build:storybook": "poi build --config .storybook/poi.config.js --storybook",
20-
"build:component": "poi build src/components/Annotator.vue --component vue-annotator",
24+
"build:component": "poi build src/components/Annotator.vue --library",
25+
"build:component:umd": "poi build src/components/Annotator.vue --library Annotator",
2126
"deploy": "surge .storybook/dist"
2227
},
2328
"devDependencies": {

src/components/Annotator.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ import 'svg.select.js'
2323
import 'svg.draw.js'
2424
2525
// import { printSlotElement } from 'utils/debug'
26-
import { manipulate, drawing, select, delete as del } from 'mixins'
26+
import manipulate from '../mixins/manipulate'
27+
import drawing from '../mixins/drawing'
28+
import select from '../mixins/select'
29+
import del from '../mixins/delete'
30+
2731
2832
export default {
2933
name: 'Annotator',

0 commit comments

Comments
 (0)