Commit eb2d165
Robert Jackson
Update babel-plugin-htmlbars-inline-precompile to 3.0.1.
Prior to this a template like:
```js
hbs`some content */`
```
Would emit invalid JS:
```js
Ember.HTMLBars.template(
/*
some content */
*/
{
// some stuff emitted by actual compilation
}
)
```
The comment showing the original template was added as a
developer aide (makes looking at files with many inline
templates such as tests much easier), but without
escaping `*/` we risk the template content itself
breaking the JS parsing within the file.
This commit ensures that `*/` is escaped to `*\/` which
avoids the issue.1 parent b33cb2f commit eb2d165
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6873 | 6873 | | |
6874 | 6874 | | |
6875 | 6875 | | |
6876 | | - | |
6877 | | - | |
6878 | | - | |
| 6876 | + | |
| 6877 | + | |
6879 | 6878 | | |
6880 | 6879 | | |
6881 | 6880 | | |
| |||
0 commit comments