schema-utils-js icon indicating copy to clipboard operation
schema-utils-js copied to clipboard

dereferenceDocument is excluded from the browser build

Open potterbm-cb opened this issue 2 months ago • 1 comments

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

potterbm-cb avatar Sep 23 '25 15:09 potterbm-cb