-
-
Notifications
You must be signed in to change notification settings - Fork 21
Latest version breaks template-compiler usage in the browser #350
Comments
In order for us to make this work, we have to leave the code untranspiled when given a dynamic value. |
When used dynamically in the browser, users should use |
ya, that makes sense @boris-petrov - Can you double check? |
We use |
Hmm, I see. Why not use a middleware (in testing) and have the same "backend compiles the template" workflow? Wouldn't it be much better to avoid having it behave so differently than production? |
Well, we have integration tests for that (which are slow). We want the frontend tests fast, so we don't want to run the backend server. Besides, mocking what the backend returns is literally 2 lines of code. I'm fine with the different behavior in the Ember tests. |
The state as of today is that |
A little update on that. |
Still happens on Ember v5. |
Using version 4.4.1 leads to the following when running
ember test
:With the import:
4.2.1 works fine.
Using
Ember.HTMLBars.compile
andEmber.HTMLBars.precompile
instead also works.Related Discord discussion.
cc @rwjblue
The text was updated successfully, but these errors were encountered: