ejs-compiled-loader icon indicating copy to clipboard operation
ejs-compiled-loader copied to clipboard

Replace loaderUtils.parseQuery() with loaderUtils.getOptions()

Open purplesyringa opened this issue 8 years ago • 3 comments
trafficstars

(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?

purplesyringa avatar Apr 21 '17 17:04 purplesyringa

+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!

kbtz avatar Apr 30 '17 16:04 kbtz

any updates here?

axten avatar Aug 05 '17 19:08 axten

+1

hetz avatar Jul 18 '20 06:07 hetz