ejs-compiled-loader
ejs-compiled-loader copied to clipboard
Replace loaderUtils.parseQuery() with loaderUtils.getOptions()
(node:2732) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
As of WebPack 2, passing string to parseQuery() is deprecated. In the next major version of loader-utils it will be removed. So, what about changing
var query = utils.parseQuery(this.query);
to
var query = utils.getOptions(this);
PS. I am talking about ejs-render-loader. BTW, do you know that https://npmjs.com/package/ejs-render-loader links to ejs-compiled-loader?
+1
@imachug I believe this another package was created to have less misleading name.
@bazilio91 I've been using this loader a lot in our company codebase. Would you mind to add me as a collaborator to make these minor fixes? Nonetheless I'll make a PRs soon you'll have time to merge/review it?
Thanks!
any updates here?
+1