This is the ONLY file in the package allowed to import node:*: a browser
bundle that resolves node:fs is a build failure for every other module, so
it is reachable only through this separate subpath (see package.json
exports), never through the package root. Everything else -- FcbReader,
the CityJSON emitters, the query types -- comes from the root entry point
and works unchanged in both runtimes.
The
@cityjson/flatcitybuf/nodeentry point: reading a local.fcbfile from Node.This is the ONLY file in the package allowed to import
node:*: a browser bundle that resolvesnode:fsis a build failure for every other module, so it is reachable only through this separate subpath (see package.jsonexports), never through the package root. Everything else --FcbReader, the CityJSON emitters, the query types -- comes from the root entry point and works unchanged in both runtimes.