Closed WearyMonkey closed 4 years ago
@peterpoe @cb-eli @benochr thanks for your feedback on #85
Could you please test this version for me? I don't have a production angular 1 project anymore.
Hello @WearyMonkey
Sorry for the delay in response. Been on holiday last week.
I can confirm that our problems are solved when using the version in this branch toby-html-loader-1-fix
When using the old version with html-loader version 1.1.0 we get following error when running our tests:
Chrome Headless 84.0.4147.0 (Mac OS 10.15.5) ERROR
An error was thrown in afterAll
Uncaught Error: Module parse failed: Unexpected token (3:0)
File was processed with these loaders:
* ./node_modules/ngtemplate-loader/index.js
* ./node_modules/html-loader/dist/cjs.js
* ./loaders/i18n-loader.js
You may need an additional loader to handle the result of these loaders.
| var path = 'dialogs/app.directive.html';
| var html = // Module
> var code =
A similar error occurs when starting a local development server.
After updating ngtemplate-loader
with this branch the errors are gone:
Chrome Headless 84.0.4147.0 (Mac OS 10.15.5): Executed 391 of 395 (skipped 4) SUCCESS (0.905 secs / 0.608 secs)
TOTAL: 391 SUCCESS
PS: I also checked this branch with the old version of html-loader
we were using, version 0.5.5, and all works well. So it seems backward compatible.
@WearyMonkey any plans to merge and release this?
@WearyMonkey any plans to merge and release this
will release it tomorrow
@WearyMonkey any plans to merge and release this
will release it tomorrow
this timing couldn't be better for me... only just found your project today!
Sorry for the delay, I've released it now.
Makes content capture more robust by replacing the default export with a variable, and then using that variable. Instead of the crazy custom string parsing I was doing before.