diff --git a/README.md b/README.md index b860c8ec..3d98aded 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,7 @@ import '@braks/revue-flow/dist/style.css'; ``` ## Vue2 -With Vue2 make sure you have the composition api installed as a dependency. Same goes for Nuxtjs. -```bash -# install revue flow -$ yarn add @braks/revue-flow @vue/composition-api - -# or -$ npm i --save @braks/revue-flowy @vue/composition-api -``` +This doesn't work with Vue2, sorry. ## Development This project uses Vite for development and Rollup to create type definitions. diff --git a/rollup.config.js b/rollup.config.js index 438491e0..cc9fdf89 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -82,7 +82,7 @@ function createConfig(format, output, plugins = []) { output.sourcemap = !!process.env.SOURCE_MAP; output.banner = banner; output.externalLiveBindings = false; - output.globals = { 'vue-demi': 'VueDemi' }; + output.globals = { 'vue': 'Vue' }; const isProductionBuild = /\.prod\.js$/.test(output.file); const isGlobalBuild = format.startsWith('global'); @@ -111,7 +111,7 @@ function createConfig(format, output, plugins = []) { // during a single build. hasTSChecked = true; - const external = ['vue-demi']; + const external = ['vue']; const nodePlugins = [resolve(), commonjs({ include: 'node_modules/**' })]; diff --git a/src/App.vue b/src/App.vue index 9392ce97..06efe323 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@