Vannsl / vue-3-sanitize

HTML sanitizer for Vue.js 3 apps
MIT License
21 stars 3 forks source link

Fix - Failed to resolve vue-3-sanitize #4

Closed MattAtESP closed 3 years ago

MattAtESP commented 3 years ago

Should fix #3 Added index.js to package.json files attribute. Updated index.js to export a const var instead of default (likely not really necessary). Rebuilt with updated files via the build script in the package.json. Updated some dependencies due to npm audit recommendations.

MattAtESP commented 3 years ago

Forgot to mention, the issue seemed to be that the index.js file was missing during "npm install". After I added it manually to my project it worked so I decided to make a PR in case it helps anyone else. I also followed the style from the vue-sanitize package, but likely it's not necessary as mentioned in the initial comment, ultimately both ways should be identical.

Vannsl commented 3 years ago

Thanks!