Skip to content

Commit eb2d165

Browse files
author
Robert Jackson
committed
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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6873,9 +6873,8 @@ mocha@^6.2.2:
68736873
yargs-unparser "1.6.0"
68746874

68756875
"module-name-inliner@link:./tests/dummy/lib/module-name-inliner":
6876-
version "0.1.0"
6877-
dependencies:
6878-
ember-cli-version-checker "*"
6876+
version "0.0.0"
6877+
uid ""
68796878

68806879
morgan@^1.9.1:
68816880
version "1.9.1"

0 commit comments

Comments
 (0)