-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue is not considered as external with ckeditor4-vue3 #5
Comments
Thanks for bringing this issue up. I am attempting to replicate this issue currently. From what I understand, the build tool should automatically substitute the Meanwhile, could you try the following method of importing the editor into your Vue app and let me know if that makes a difference in the bundle size? You may remove the import form the root file and use the editor in individual Single File Components. <script setup>
import { ref } from 'vue'
import { component as ckeditor } from '@mayasabha/ckeditor4-vue3'
defineProps({
msg: String,
})
const count = ref(0)
</script>
<template>
<h1>{{ msg }}</h1>
<div class="card">
<ckeditor></ckeditor>
</div>
</template> |
I don't think it is related to Vite or my config, because I copy-pasted your You should have a look at your generated |
Thanks for the additional information. It was an issue with the configuration of the bundling tool used while creating the package. It is now fixed with commit ca062fa and the bundled size of |
Reproduction steps (if any)
Using Vite with this config
The generated bundle is large, very large and I've tracked it down to
node_modules/@mayasabha/ckeditor4-vue3/dist/ckeditor.js
This file does not seem to be up-to-date, or is importing the whole Vue framework
Expected result
The production files of
ckeditor4-vue3
should not include VueThe text was updated successfully, but these errors were encountered: