Skip to content

v2.0.7 ships ESM files containing Flow type annotations #814

@mhdcodes

Description

@mhdcodes

Library version
v2.0.7

Describe the bug
When using [email protected]in a (Vite + esbuild) project, the build fails because the package ships ESM files containing Flow type annotations. (Vite + esbuild) does not transpile Flow syntax from node_modules, causing a parse error, note that v2.0.6 works just fine.

Error message

node_modules/.pnpm/[email protected]/node_modules/ua-parser-js/src/helpers/ua-parser-helpers.mjs (16:24)
Expected ',', got ':'
(Note that you need plugins to import files that are not JavaScript)

See: https://github.com/codiume/orbit/actions/runs/20054754913/job/57517658726?pr=1217

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions