Skip to content

Commit ea5fbe1

Browse files
committed
docs: add templateCompiler section in README
1 parent 229cbf9 commit ea5fbe1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,28 @@ If a string is provided, it will be an assumed path to a TypeScript configuratio
271271
}
272272
```
273273

274+
#### templateCompiler
275+
276+
You can provide [TemplateCompileOptions](https://github.com/vuejs/component-compiler-utils#compiletemplatetemplatecompileoptions-templatecompileresults) in `templateCompiler` section like this:
277+
278+
```json
279+
{
280+
"jest": {
281+
"globals": {
282+
"vue-jest": {
283+
"templateCompiler": {
284+
"transpileOptions": {
285+
"transforms": {
286+
"dangerousTaggedTemplateString": true
287+
}
288+
}
289+
}
290+
}
291+
}
292+
}
293+
}
294+
```
295+
274296
### Supported template languages
275297

276298
- **pug** (`lang="pug"`)

0 commit comments

Comments
 (0)