Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Simple conditions flag #537

@guybedford

Description

@guybedford

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions