Skip to content

[babel 8] Align cli flags handling between node and babel-node #16704

Description

@nicolo-ribaudo

Given this file:

console.log(typeof gc, process.argv.slice(2));
  1. node demo.js --expose-gc logs undefined [ '--expose-gc' ]
  2. node --expose-gc demo.js logs function []
  3. babel-node demo.js --expose-gc logs function []
  4. babel-node --expose-gc demo.js logs function []

(3) should behave the same as (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: node

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions