Since the PR for a --dev flag got stalled at nodejs/node#33171 it could still be useful to provide a top-level way to set Node.js conditions like "development" and "production".
The simplest proposal then would just be to have a top-level --conditions flag:
node --conditions=production,custom x.js
as a comma-separated list of conditions to add to the resolution process.
Perhaps if there is time to discuss this today we can get some feedback before any PR work is attempted.
Since the PR for a
--devflag got stalled at nodejs/node#33171 it could still be useful to provide a top-level way to set Node.js conditions like"development"and"production".The simplest proposal then would just be to have a top-level
--conditionsflag:as a comma-separated list of conditions to add to the resolution process.
Perhaps if there is time to discuss this today we can get some feedback before any PR work is attempted.