johndatserakis/vue-simple-context-menu

sideEffects vs css file inclusion

stephane-martin opened this issue · 1 comments

(not a JS expert, please forgive me if imprecise)

When building an app using parcel/vue3, even though I include the CSS file (import 'vue-simple-context-menu/dist/vue-simple-context-menu.css'), the resulting distribution does not contain the style.

I think it's related to sideEffects: false in package.json. It may triggers parcel's scope hoisting (https://parceljs.org/features/scope-hoisting/).

Similar issue in another vue component: Vuepic/vue-datepicker#526

Thank you, updated.