Open hitautodestruct opened 4 years ago
Or point me in the direction to how to add this myself. Is it at the plugin level? Is it a vue issue?
Anyone? @FredKSchott
It appears to be a limitation of our Vue plugin. I'm not familiar enough with the Vue compiler to add but I'd love to review if anyone can submit a PR.
Logic is here: https://github.com/pikapkg/create-snowpack-app/blob/master/packages/plugin-vue/plugin.js
vue compiler plugin is here: https://www.npmjs.com/package/@vue/compiler-sfc
In snowpack it is not clear how to enable css modules for
.vue
files using themodule
attribute.Usage example:
Using the above with snowpack the app throws an error in the browser:
Vue-loader for webpack allows this behaviour see docs.