Turbopack: allow shadowing the `require` global in ESM (#70453)
Closes PACK-3275
Among other things, a regression from
https://github.com/vercel/next.js/pull/70255, but it could also happen
with `__dirname`.
To prevent `SyntaxError: Identifier 'require' has already been declared`