Package Exports
- vue-demi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-demi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-demi
WIP
Vue Demi
(french "half") is a plugin dev utility that allows you to write Vue plugins for Vue 2 and 3 without worry about users' installed version. See more details in this blog.
Usage
Install this as your plugin's dependency:
{
"dependencies": {
"vue-demi": "*"
}
}
import every thing from it, it will redirect to vue@2
@vue/composition-api
or vue@next
based on users' environments.
import { ref, reactive, defineComponent } from 'vue-demi'
Publish your plugin and all is done!