You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
removed getOptions in favor loaderContext.getOptions (loaderContext is this inside loader function), note - special query parameters like ?something=true is not supported anymore, if you need this please do it on loader side, but we strongly recommend avoid it, as alternative you can use ?something=1 and handle 1 as true
Activity
alexander-akait commentedon Jan 31, 2022
geOptionswas removed https://github.com/webpack/loader-utils/releases/tag/v3.0.0andrralv commentedon Feb 25, 2022
@alexander-akait can we get a test/example on how to migrate getOptions to the new syntax?
alexander-akait commentedon Feb 26, 2022
this.getOptions,thisis loaderContext inside loader functionAddJunZ commentedon Jan 4, 2024
It really works for me. But I don't think it makes sense to just delete
loaderUtils.getOptions(this).alexander-akait commentedon Jan 4, 2024
You should use
this.getOptionsinsteadloaderUtils.getOptions(this), now it is a part of webpack logic