-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bemhtml-es2015 tech #274
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need such techs (es2015, es2016, etc) in enb-bemxjst
?
techs/bemhtml-es2015.js
Outdated
@@ -0,0 +1,42 @@ | |||
var path = require('path'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable.
In techs such enb-es2015 (https://github.com/DimitryDushkin/enb-es2015) we can transpile just source files (form blocks) before gathering to a single file. If we need to transpile bemhtml code for browser, we should use babel+bemhtml processing before gathering to a single file. |
@miripiruni Because of ENB-mechanics. It doesn't allow to process source files before putting them to processing technologies. |
@rakchaev it should be possible to compile BEMHTML bundle with default tech, transpile it to ES5 with universal transpiler tech and then merge with client bundle. |
But he said:
|
I've got two questions:
|
|
No description provided.