handlebars-loader
handlebars-loader copied to clipboard
[Regression] Specifying knownHelpers in 1.1.0
In version 1.0.2, we were able to specify an array of knownHelpers
along with the helperDirs
like so:
{
test: /\.hbs$/,
loader: 'handlebars-loader',
query: {
helperDirs: [path.join(__dirname, 'src/templates/helpers')],
knownHelpers: ['inline-if']
}
},
In version 1.1.0, the configuration above fails. You instead have to specify the extension for each helper specified in knownHelpers
like so:
{
test: /\.hbs$/,
loader: 'handlebars-loader',
query: {
helperDirs: [path.join(__dirname, 'src/templates/helpers')],
knownHelpers: ['inline-if.js']
}
},
I looked at the readme docs in addition to the release notes to see if something had changed or was mentioned however, I was not able to find anything.
Is this change intended? Is the config option meant to work with or without an extension?