update: no vue-2 compatability (doesn't work with current build)
* README.md
This commit is contained in:
10
package.json
10
package.json
@@ -15,14 +15,12 @@
|
||||
"module": "dist/revue-flow.umd.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"nocss"
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc --noEmit && vite build",
|
||||
"build:dist": "rollup -c --environment NODE_ENV:production",
|
||||
"build:app": "vite build -c vite.config.app.ts",
|
||||
"serve": "vite preview",
|
||||
"prepublishOnly": "yarn build:dist",
|
||||
"test": "exit 0;",
|
||||
@@ -35,8 +33,7 @@
|
||||
"d3-selection": "^3.0.0",
|
||||
"d3-zoom": "^3.0.0",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"pinia": "^2.0.0-beta.3",
|
||||
"vue-demi": "latest"
|
||||
"pinia": "^2.0.0-beta.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.6",
|
||||
@@ -76,8 +73,7 @@
|
||||
"vue-tsc": "^0.0.24"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue/composition-api": "^1.0.0-rc.13",
|
||||
"vue": "^2.6.0 || >=3.0.5"
|
||||
"vue": ">=3.0.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
outDir: 'build'
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
vueJsx({
|
||||
// options are passed on to @vue/babel-plugin-jsx
|
||||
})
|
||||
]
|
||||
});
|
||||
@@ -1,32 +1,11 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { resolve } from 'path';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/index.ts'),
|
||||
name: 'RevueFlow'
|
||||
},
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
external: ['vue-demi'],
|
||||
output: {
|
||||
globals: {
|
||||
'vue-demi': 'VueDemi'
|
||||
},
|
||||
dir: 'dist',
|
||||
sourcemap: true,
|
||||
exports: 'named'
|
||||
},
|
||||
inlineDynamicImports: true
|
||||
},
|
||||
commonjsOptions: {
|
||||
include: 'node_modules/**'
|
||||
},
|
||||
polyfillDynamicImport: true
|
||||
outDir: 'build'
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
|
||||
6224
yarn-error.log
6224
yarn-error.log
File diff suppressed because it is too large
Load Diff
@@ -6606,11 +6606,6 @@ vite@^2.3.8:
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.2"
|
||||
|
||||
vue-demi@latest:
|
||||
version "0.10.1"
|
||||
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.10.1.tgz#229b81395510f02f4ee255344557a12cc0120930"
|
||||
integrity sha512-L6Oi+BvmMv6YXvqv5rJNCFHEKSVu7llpWWJczqmAQYOdmPPw5PNYoz1KKS//Fxhi+4QP64dsPjtmvnYGo1jemA==
|
||||
|
||||
vue-eslint-parser@^7.0.0, vue-eslint-parser@^7.6.0:
|
||||
version "7.6.0"
|
||||
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-7.6.0.tgz#01ea1a2932f581ff244336565d712801f8f72561"
|
||||
|
||||
Reference in New Issue
Block a user