diff --git a/package.json b/package.json
index a9ae97c1..c1ba33ce 100644
--- a/package.json
+++ b/package.json
@@ -17,10 +17,10 @@
],
"scripts": {
"dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
+ "build": "vue-tsc --noEmit && vite build && yarn build:dist",
"build:dist": "rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist",
"serve": "vite preview",
- "prepublishOnly": "yarn build:dist",
+ "prepublishOnly": "yarn build",
"test": "exit 0;",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"lint": "yarn lint:js"
@@ -28,7 +28,7 @@
"dependencies": {
"d3": "^7.0.0",
"pinia": "^2.0.0-beta.3",
- "vue": "^3.0.5"
+ "vue-demi": "^0.10.1"
},
"devDependencies": {
"@babel/core": "^7.14.6",
@@ -65,8 +65,18 @@
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.3.5",
"vite": "^2.3.8",
+ "vue": "^3.0.5",
"vue-tsc": "^0.0.24"
},
+ "peerDependencies": {
+ "@vue/composition-api": "^1.0.0-rc.1",
+ "vue": "^2.0.0 || >=3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@vue/composition-api": {
+ "optional": true
+ }
+ },
"publishConfig": {
"access": "public",
"registry": "http://registry.npmjs.org/"
diff --git a/rollup.config.js b/rollup.config.js
index 6f488f76..8e6e9c22 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -58,7 +58,7 @@ export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injec
babel({
extensions: [...DEFAULT_BABEL_EXTENSIONS, '.ts', '.tsx'],
exclude: 'node_modules/**',
- babelHelpers: 'bundled'
+ babelHelpers: 'inline'
})
]
});
diff --git a/src/App.vue b/src/App.vue
index f0402ea2..422aeea3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,18 +1,15 @@
Revue Flow
-