RonaldJerez / vue-input-facade

A lightweight and dependency free input masking library created specific for Vue
https://ronaldjerez.github.io/vue-input-facade/latest/
182 stars 27 forks source link

feat(vue3): various upgrades for vue 3 #84

Closed Robo-Rin closed 8 months ago

Robo-Rin commented 8 months ago

Description

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.

Read more on why it's bad practice here: https://github.com/rollup/rollup/issues/1961#issuecomment-423037881

Checklist

github-actions[bot] commented 8 months ago

:tada: This PR is included in version 3.0.0-beta.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: