Open gyz0072004 opened 2 years ago
the swc-loader is using this.getOptions() function, which is introduced in webpack 5. Need to use loader-utils to getOptions when webpack is <= 4
this.getOptions()
loader-utils
Wait why are you not using swc-loader like in the docs?
swc-loader
AFAIK you don't need @swc-node/swc-loader
@swc-node/swc-loader
the swc-loader is using
this.getOptions()
function, which is introduced in webpack 5. Need to useloader-utils
to getOptions when webpack is <= 4