This is a loader for webpack 5 to load *.dovm files.
npm i --save-dev dovm-loader
This loader required to chain with ts-loader
due to it produce TypeScript from *.dovm. Example webpack.config.js
:
module.exports = {
module: {
rules: [
{
test: /\.dovm$/i,
use: [
{
loader: 'ts-loader',
options: {
onlyCompileBundledFiles: true,
appendTsSuffixTo: [/\.dovm$/i]
}
},
{
loader: 'dovm-loader'
}
]
}
]
}
};
sourceFile
:true
to dump a compiled source tocomponent.dovm.ts
. The purpose of this option is for debugging.
MIT