- Upgraded loader-utils dependendency to 1.4.2, which fixes a critical vulnerability
- Upgraded async dependency to 3.2.2 (#207)
- Fixed use stringifyRequest instead of absolute paths in loader output (#167)
- Use
loaderContext.rootContext
instead ofloaderContext.options
when used with Webpack 4 - Fixed resolving of inline partials and partial blocks with failover content (#106, #135)
- Added
ignoreHelpers
option to skip automatic lookup/bundling of helpers - Added
precompileOptions
to pass options to handlebars precompile
- Added
helperResolver
config option to override the default helper resolution
- Fixed webpack deprecation warnings
- Fixed resolving relative helpers on first pass when helper directories are given
- Added
ignorePartials
option to skip automatic lookup/bundling of partials - Added
compat
option to enable Mustache lookup compatibility. - Added
config
option to query so that configs can be specified in webpack config object or the loader query. Defaults tohandlebarsLoader
- Added
partialResolver
config option to override the default partial resolution
- Previously, if a partial name began with an
@
, it was ignored and treated as an internal to handlebars partial. Now that checks specifically for partials named@partial-block
so that{{> @a/b/c.hbs }}
is a valid partial reference
- New
partialDirs
query option allows specifying additional directories to be searched for partials. Thank you @lostthetrail. - New
preventIndent
query option to avoid nested partials adding whitespace totextarea
andpre
elements.
- Helpers can now use ECMAScript 6 export syntax and have their default export used. Thank you @kt0.
- New
exclude
query option lets you prevent helpers from being resolved to modules in specified directories (such asnode_modules
). Thank you @ericmatthys.
See keepachangelog.com for how to update this file.