From https://github.com/swc-project/swc-loader/issues/64#issue-1335268930 by @callmeteus > 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: > > ```javascript > 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; > ```