sideEffects vs css file inclusion
Closed this issue · 1 comments
stephane-martin commented
(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
johndatserakis commented
Thank you, updated.