Upgrades for Vue 3 including migration to storybook + vite.
BREAKING: Removes default export so now users will have to use the named import instead
i.e.
import InputFacade from 'vue-input-facade'
becomes
import { plugin as InputFacade } from 'vue-input-facade'
Rationale for removing default export
Previously we were using vue-cli-service build but now we are using vite + rollup. Rollup gives the following warning:
Entry module "src/plugin.js" is using named and default exports together. Consumers of your bundle will have to use vue-input-facade.default to access default export, which may not be what you want. Use output.exports: "named" to disable this warning.
Since it's bad practice to mix default and named exports and since Vue 3 is a breaking change already, I thought it would be a good opportunity to remove it.
Description
becomes
Rationale for removing default export
Previously we were using
vue-cli-service build
but now we are using vite + rollup. Rollup gives the following warning:Since it's bad practice to mix default and named exports and since Vue 3 is a breaking change already, I thought it would be a good opportunity to remove it.
Read more on why it's bad practice here: https://github.com/rollup/rollup/issues/1961#issuecomment-423037881
Checklist