swc-loader icon indicating copy to clipboard operation
swc-loader copied to clipboard

After updating from 0.2.1 to 0.2.3, build silently fails and doesnt get executed anymore

Open janlent1 opened this issue 3 years ago • 0 comments

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.

janlent1 avatar Sep 12 '22 10:09 janlent1