You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup the Jinja extension and it works great. When I add "babel" to the filters argument, babel does not appear to be processing the assets. I believe Babel requires a preset to be provided otherwise it passes the code through untouched.
I do not see a way to provide the es2015 preset to babel using the Jinja asset tag.
Ok, I was able to get this working. The underlying issue was that the babel presets don't invalidate the cache... I though I had cleared the cache by wiping the .webassets-cache directory, but apparently I had to wipe my output directory also.
For future reference, the cleanest way to configure filters is using the asset config:
I setup the Jinja extension and it works great. When I add "babel" to the
filters
argument, babel does not appear to be processing the assets. I believe Babel requires a preset to be provided otherwise it passes the code through untouched.I do not see a way to provide the
es2015
preset to babel using the Jinja asset tag.The docs for the babel filter only show it being used with the bundle interface:
builtin_filters.html#webassets.filter.babel.Babel
The text was updated successfully, but these errors were encountered: