Skip to content

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

@purplesyringa

Description

@purplesyringa

(node:2732) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions