-
Hey there, I was playing around a bit with spack. As far as I understand, right now you cannot configure it to understand different filetypes. I'm interested in getting .vue files working. How do you think that should work? Should custom loaders written in JS be supported similar to webpack or will support have to be added directly to spack? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Both are acceptable, but I think implementing it in rust would be better because it will show errors when required type definitions (ast) are changed. |
Beta Was this translation helpful? Give feedback.
-
const SWC_LOADER_TS = {
test: /\.ts$/,
use: [
{
loader: 'swc-loader',
options: {
jsc: {
parser: {
syntax: 'typescript',
decorators: true
},
},
},
},
],
}; |
Beta Was this translation helpful? Give feedback.
Both are acceptable, but I think implementing it in rust would be better because it will show errors when required type definitions (ast) are changed.
Just like jest support, it can be implemented via some internal apis with
@swc/vue
.