We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee517d commit 256da4eCopy full SHA for 256da4e
src/wrap-require.ts
@@ -3,7 +3,7 @@ import * as path from 'path'
3
export const wrapRequire = new Proxy(__non_webpack_require__, {
4
apply: (target, thisArg, [moduleID]) => {
5
if (moduleID.startsWith('.')) {
6
- moduleID = path.join(process.cwd(), moduleID)
+ moduleID = path.resolve(moduleID)
7
return target.apply(thisArg, [moduleID])
8
}
9
0 commit comments