Skip to content

Dual nodejs/browser version for @lingui/message-utilsΒ #2381

@timofei-iatsenko

Description

@timofei-iatsenko

Related #2320 (comment)

The calculation of the lingui id is using js only cryptography, to be able to use this in browser. Performance could be improved for the nodejs execution using nodejs built-in methods.

We can create node-only and browser-only version of these packages using exports condition https://nodejs.org/api/packages.html#conditional-exports

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