Open mdmoreau opened 6 years ago
See https://github.com/webpack/loader-utils/issues/56
Updating to the latest version of loader-utils and changing the line at https://github.com/ryanhornberger/nunjucks-html-loader/blob/master/index.js#L55 to var opt = utils.getOptions(this); fixed the deprecation warning for me locally.
var opt = utils.getOptions(this);
Thanks for the great loader!
This is an awesome loader. The update would be greatly appreciated
Since this issue was opened, v3 moved the getOptions function onto the loader context (this).
this
var opt = this.getOptions();
See https://github.com/webpack/loader-utils/issues/56
Updating to the latest version of loader-utils and changing the line at https://github.com/ryanhornberger/nunjucks-html-loader/blob/master/index.js#L55 to
var opt = utils.getOptions(this);
fixed the deprecation warning for me locally.Thanks for the great loader!