Skip to content

Commit

Permalink
Adds a warning about html transforms. (#94)
Browse files Browse the repository at this point in the history
This comes up when using custom tsconfig files.
  • Loading branch information
radfahrer authored and thymikee committed Nov 17, 2017
1 parent de30963 commit 9183e21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ Override `globals` object in Jest config:
}
```

If you choose to overide `globals` in order to point at a specific tsconfig, you will need to add `"__TRANSFORM_HTML__": true` to the `globals` section too, otherwise you will get parse errors on any html templates.

### Unexpected token [import|export|other]

This means, that a file is not transformed through TypeScript compiler, e.g. because it is a JS file with TS syntax, or it is published to npm as uncompiled source files. Here's what you can do.
Expand Down

0 comments on commit 9183e21

Please sign in to comment.