NoelOConnell / quill-image-uploader

A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded
MIT License
244 stars 100 forks source link

esm.browser #107

Open fedottt opened 4 months ago

fedottt commented 4 months ago

hi can you add *.esm.browser.js ?

i use scripts like

<script type="importmap">
    {
        "imports": {
            "vue": "../npm/node_modules/vue/dist/vue.esm-browser.js",
            "quill": "../npm/node_modules/@vueup/vue-quill/dist/vue-quill.esm-browser.prod.js",
            "quill-image-uploader": "../js/quill/quill.imageUploader.js"
        }
    }
</script>
<script type="module" src="../js/hd_1.js"></script> 

and hd_1.js like

import { createApp,ref,nextTick } from 'vue'
import { QuillEditor } from 'quill'
import ImageUploader from "quill-image-uploader"

how i use quill.imageUploader.js from src folder and edit src/blots/image.js to this (add brackets):

import { Quill } from "quill";

but in this case i must copy this files to another dir to prevent it modifing from npm package manager