JSPM

  • Created
  • Published
  • Downloads 82
  • Score
    100M100P100Q88449F
  • License MIT

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sharedb-client-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    sharedb-client-browser

    A browser build of the ShareDB client suitable for use from a CDN.

    There are two builds provided, one with ot-json0 bundled as the default OT type, and one with ot-json1 bundled as the default OT type (this build does not include ot-json0 in the bundle). These builds both introduce the browser global ShareDBClient.

    Example use:

    <script src="https://cdn.jsdelivr.net/npm/sharedb-client-browser@2.2.41/sharedb-client-json1-browser.min.js"></script>

    Files provided include:

    • sharedb-client-json0-browser.js
    • sharedb-client-json0-browser.min.js
    • sharedb-client-json1-browser.js
    • sharedb-client-json1-browser.min.js

    See also index of files in JSDelivr (shows file sizes).

    This build uses Rollup, rollup-plugin-polyfill-node, Google Closure Compiler and Terser to optimize bundle size.

    Some node_modules hackery was done to replace ot-json0 with ot-json1 such that ot-json0 is excluded entirely from the bundle.

    See also