Skip to content

Resolve warning about externalised node dependencies #874

Description

@garethbowen

npm run build emits warnings about node dependencies fs and path which are used by tree-sitter.

@getodk/xforms-engine:build: [build:js   ] [plugin vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/gareth/src/garethbowen/central-frontend/packages/xpath/dist/expressionParser-i89CXh5o.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

The correct fix for this is upstream in the web-tree-sitter package: tree-sitter/tree-sitter#5545

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions