rsnext/packages/next/build/polyfills
Gal Schlezinger 4aa9879dcc
Allow dependencies to use environment variables in middlewares (#33141)
After discussing with @sokra, seems that the proposed solution is split in two:

* We need to make sure that the `process` polyfill uses `global.process` if available. This is because middlewares are bundled using `browser` target and therefore `process.env.MY_ENV` gets shimmed into `require('process').env.MY_ENV`.

* Allow `process.env` to be statically analyzed for dependencies so they will be exported to the manifest.

Related issues:

* should fix #33043.
2022-01-10 18:45:00 +00:00
..
fetch Integration test case for fetch alias (#9391) 2019-11-14 22:47:08 -08:00
object.assign Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
object-assign.js Polyfill Object.assign by Default (#9369) 2019-11-10 20:48:11 -08:00
process.js Allow dependencies to use environment variables in middlewares (#33141) 2022-01-10 18:45:00 +00:00