It seems that this code is not failsafe
let loaderOptions = (typeof this.getOptions === 'function' ? this.getOptions() : require('loader-utils').getOptions(this)) || {};
That is the only code that really changed since 0.2.1
Before it was
let loaderOptions = this.getOptions() || {};
So either revert back to that or make the code failesafer.
It seems that this code is not failsafe
let loaderOptions = (typeof this.getOptions === 'function' ? this.getOptions() : require('loader-utils').getOptions(this)) || {};
That is the only code that really changed since 0.2.1 Before it was
let loaderOptions = this.getOptions() || {};
So either revert back to that or make the code failesafer.