swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

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

Open janlent1 opened 2 years ago

janlent1 commented 2 years ago

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.