Thanks to visit codestin.com Credit goes to github.com
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.
2 parents c758586 + 256da4e commit b616178Copy full SHA for b616178
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