Skip to content

Expose programmatic Node.JS API #1386

@mjames-c

Description

@mjames-c

Description

My company is in the process of spiking React Native builds using Re.pack. As part of exposing this to product devs we want to provide a custom TypeScript CLI which includes custom entry point resolution among other things. For example:

  const argv = yargs
    .option('entry', {
      type: 'string',
      demandOption: true,
      description: 'Path to the entry .ts/.tsx file',
    })
    .option('platform', {
      type: 'string',
      demandOption: true,
      choices: ['ios', 'android'] as const,
      description: 'Target platform',
    })
    // ...

Currently Re.pack doesn't provide a programatic API for starting the dev server and passing it a POJO config object. We would love if it did! (similar to what Rspack and Webpack provide).

Suggested solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:newNew issue, not reviewed by the team yet.type:featureProposal or idea for a new feature or enhancement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions