Your clean approach described in the README looks nice. I felt on your plugin trying to use snowpack and avoid webpack slowness in our devs.
So I did notice that <style scoped> is not working. It seems to come from a wider problem which is not reflected in your paragraph: https://github.com/Morgul/snowpack-plugin-vue2#vue-library-choice. That problem is that @vue/compiler-sfc does things that were not backported with @vue/component-compiler-utils, its Vue 2 false equivalent. They are similarities between SFCTemplateCompileOptions (1) and TemplateCompileOptions (2) but the scoped style feature lacks.
With webpack it worked because vue-loader precisely fulfills those discrepancies. I am not even sure that requesting you this feature (roughly to copy vue-loader work (3)) is the best solution. Shouldn't this have been done directly within @vue/component-compiler-utils?
Hi @Morgul
Your clean approach described in the README looks nice. I felt on your plugin trying to use snowpack and avoid webpack slowness in our devs.
So I did notice that
<style scoped>
is not working. It seems to come from a wider problem which is not reflected in your paragraph: https://github.com/Morgul/snowpack-plugin-vue2#vue-library-choice. That problem is that@vue/compiler-sfc
does things that were not backported with@vue/component-compiler-utils
, its Vue 2 false equivalent. They are similarities betweenSFCTemplateCompileOptions
(1) andTemplateCompileOptions
(2) but the scoped style feature lacks.With webpack it worked because
vue-loader
precisely fulfills those discrepancies. I am not even sure that requesting you this feature (roughly to copy vue-loader work (3)) is the best solution. Shouldn't this have been done directly within@vue/component-compiler-utils
?