Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update loader-utils #11

Open
mdmoreau opened this issue Dec 19, 2017 · 2 comments · May be fixed by #13
Open

update loader-utils #11

mdmoreau opened this issue Dec 19, 2017 · 2 comments · May be fixed by #13

Comments

@mdmoreau
Copy link

See webpack/loader-utils#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!

@ArturBaybulatov
Copy link

This is an awesome loader. The update would be greatly appreciated

plumpNation pushed a commit to plumpNation/nunjucks-html-loader that referenced this issue Oct 17, 2023
Fixes ryanhornberger#11

While users of this library can always add suppression for this library,
it's probably better to simply update the dependencies.
@plumpNation
Copy link

plumpNation commented Oct 17, 2023

Since this issue was opened, v3 moved the getOptions function onto the loader context (this).

var opt = this.getOptions();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants