Skip to content

dereferenceDocument is excluded from the browser build #974

@potterbm-cb

Description

@potterbm-cb

Describe the bug
The dereferenceDocument function is exported in index.ts (source) but not exported in index-web.ts (source).

It seems like this is an intentional exclusion but I can't figure out why that would be. The documentation doesn't mention this omission.

To Reproduce
Steps to reproduce the behavior:

  1. Install @open-rpc/schema-utils-js in any webpack app
  2. Add import { dereferenceDocument } from '@open-rpc/schema-utils-js'; to any file
  3. The dereferenceDocument import will be undefined.

Expected behavior
index-web.ts should export dereferenceDocument

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