Releases: ogonkov/nunjucks-loader
v3.2.0
v3.1.0
v3.0.1
Webpack 5 support
v2.0.3
v2.0.2
v2.0.1
v2: more async
-
BREAKING CHANGE: global function
static
replaced withstatic
tag (#74). This happens because globals is not supporting async operations, while dynamic assets is using promises, when loaded withimport()
syntax. To upgrade to this version you need to replace all globalstatic
invocation with newstatic
tag.- {{ static('image.png') }} + {% static 'image.png' %}
- {% set foo = static('bar.jpg') %} + {% static 'bar.jpg' as foo %}
-
BREAKING CHANGE: handling of async templates is now even better (#67). When loader found async tags or extensions it calls template render via callback, and wrap it to
Promise
. It was only available for asynchronous filters before, and in some cases could prevent templates from proper rendering, now it should cover all cases, when asynchronous render required. -
New option
esModule
added (#65). It will change output to ES module syntax. -
Minor changes to readme (#63), defaults handling (#72), refactoring (#73)