Skip to content

Conversation

@FloEdelmann
Copy link
Owner

This allows ESM-native apps to use this library without transpilation.

Note: Since Vue 3 no longer has a default export, ESM doesn't like the import statement import Vue from 'vue' as is. Changing it to import * as Vue from 'vue' would work, but break tree-shaking in projects using this library.

Since Vue 2 is long EOL (but still supported by this library) and console.warn works just as fine for Vue 2 (only with a little less context), removing that specialized support is fine in a minor version.

Since Vue 3 no longer has a default export,
ESM doesn't like the import statement as is.
Changing it to `import * as Vue from 'vue'` would work,
but break tree-shaking in projects using this library.

Since Vue 2 is long EOL (but still supported by this library)
and `console.warn` works just as fine for Vue 2
(only with a little less context), removing that specialized
support is fine in a minor version.
@FloEdelmann FloEdelmann merged commit 0bd37eb into main Nov 28, 2025
8 checks passed
@FloEdelmann FloEdelmann deleted the esm branch November 28, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants