I am trying to publish my component on unpkg.com. While it is currently available there, it seems to not be working as expected. I have attempted to use the same UMD build for unpkg as I do for my npm build, but it appears that a specific build may be needed for unpkg. Here are the relevant sections of my package.json
:
"main": "dist/vuePolar.umd.js",
"unpkg": "dist/vuePolar.umd.min.js",
"scripts": {
"package": "vue-cli-service build --target lib --name vuePolar src/components/Polar.vue",
...
}
It seems like I might need an IIFE build rather than a UMD file, however, I do not see any such builds in my dist folder:
demo.html
vuePolar.common.js
vuePolar.common.js.map
vuePolar.umd.js
vuePolar.umd.js.map
vuePolar.umd.min.js
vuePolar.umd.min.js.map
Does anyone have any suggestions on how to create a build that will work properly with unpkg?