Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,28 @@ If a string is provided, it will be an assumed path to a TypeScript configuratio
}
```

#### templateCompiler

You can provide [TemplateCompileOptions](https://github.com/vuejs/component-compiler-utils#compiletemplatetemplatecompileoptions-templatecompileresults) in `templateCompiler` section like this:

```json
{
"jest": {
"globals": {
"vue-jest": {
"templateCompiler": {
"transpileOptions": {
"transforms": {
"dangerousTaggedTemplateString": true
}
}
}
}
}
}
}
```

### Supported template languages

- **pug** (`lang="pug"`)
Expand Down
4 changes: 1 addition & 3 deletions lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ function processTemplate(template, filename, config) {
compilerOptions: {
optimize: false,
...userTemplateCompilerOptions.compilerOptions
},
transformAssetUrls: { ...userTemplateCompilerOptions.transformAssetUrls },
transpileOptions: { ...userTemplateCompilerOptions.transpileOptions }
}
})

logResultErrors(result)
Expand Down