swc-loader
swc-loader copied to clipboard
__webpack_require__(...).context is not a function
I'm trying to port from babel-loader and ts-loader to swc-loader, but everytime require.context is called, it returns undefined.
When printing the require variable, it returns the following module:
function webpackEmptyContext(req) {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
webpackEmptyContext.keys = () => ([]);
webpackEmptyContext.resolve = webpackEmptyContext;
webpackEmptyContext.id = 5102;
module.exports = webpackEmptyContext;
@theprometeus sorry for delay, the problems still exists? Can you create reproducible test repo?