Skip to content

Remove required dependency on esbuild #2563

@philipgiuliani

Description

@philipgiuliani

Problem Description

In our development environment, we're not allowed to execute external processes. The npm install step fails because Lingui has a dependency on esbuild. esbuild runs esbuild --version during npm install to check whether the binary works correctly.

Proposed Solution

The dependency is currently only being used for extract-experimental. I suggest to make the esbuild dependency fully optional, so you can only use extract-experimental if you also add the esbuild dependency.

Alternatives Considered

Right now we're removing esbuild with the following override:

"overrides": {
  "@lingui/cli": {
    "esbuild": "npm:empty-npm-package@1.0.0"
  }
}

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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