-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Missing getOptions.js in lib ? #205
Comments
|
@alexander-akait can we get a test/example on how to migrate getOptions to the new syntax? |
|
It really works for me. But I don't think it makes sense to just delete module.exports = function cultureLoader(source) {
// get loader options, replace const options = loaderUtils.getOptions(this);
const options = this.getOptions();
const { sensitiveWord } = options;
var callback = this.async();
callback(null, source.replace(sensitiveWord, ''.padEnd(sensitiveWord.length, '*')));
} |
You should use |
Related to TypeError: this.getOptions is not a function
The text was updated successfully, but these errors were encountered: