@vercel/node 2.5.0 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,14 +210,16 @@ async function createEdgeRuntime(params) {
210
210
  initialCode: params.userCode,
211
211
  extend: (context) => {
212
212
  Object.assign(context, {
213
- __dirname: '',
214
- module: {
215
- exports: {},
216
- },
213
+ // This is required for esbuild wrapping logic to resolve
214
+ module: {},
215
+ // This is required for environment variable access.
216
+ // In production, env var access is provided by static analysis
217
+ // so that only the used values are available.
217
218
  process: {
218
219
  env: process.env,
219
220
  },
220
- }, wasmBindings);
221
+ wasmBindings,
222
+ });
221
223
  return context;
222
224
  },
223
225
  });