0.0.12 • Published 7 months ago

vue-module-demi v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

vue-module-demi npm version

Module '"vue"' has no exported member 'Fragment'

When I was developing a library compatible with Vue2 & 3, I often encountered work that could not continue because the two packages did not export similar modules.

For example, I wanted to assert whether the current VNode type is Fragment. I Can't import Fragment from Vue for comparison because ESM doesn't allow destructuring imports that don't exist, and if I use import * as Vue from 'vue' and Vue.Fragment, it won't be tree-shaking friendly.

Overall, this library smooths out the inconsistency of Vue2 & 3 modules export. If a module doesn't exist, it will be exported as undefined in Vue2.

0.0.11

7 months ago

0.0.12

7 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago