Closed FelixSelter closed 2 years ago
For now Im using https://www.jsdelivr.com/package/npm/automerge?version=1.0.1-preview.0 After this release the file contains requires
Hi @FelixSelter. I think the best approach would be to use the dist/automerge.js
file generated by yarn build
, since it bundles the library dependencies (including uuid) into a single file. That file ought to be included in the npm releases so that jsDelivr can find it, but for some reason it seems to be missing from the last couple of releases. I will look into it when I next do a release.
Thank you. awesome work
Let's keep this issue open for now until we actually have it working properly with jsDelivr.
Hi @FelixSelter, I've now figured out how to publish the bundled JS file to npm and jsDelivr, and you should now be able to access it like this: https://cdn.jsdelivr.net/npm/automerge@1.0.1-preview.7/dist/automerge.js
Thank you
I now of this:https://www.jsdelivr.com/package/npm/automerge
But if I try to include it with a script tag it tells me that require is not a function
So I tried loading this first: https://cdnjs.com/libraries/require.js Then it told me:
Uncaught Error: Module name "uuid" has not been loaded yet for context: _. Use require([])
So I tried loading https://cdnjs.com/libraries/uuid at the beginning but the error remainsI also know of this:
But I would like to host using github pages and I cant put a file with your sourcecode in my repository. Plus the build failes
It would be nice if someone could explain me how I can load this in the browser as the following is not working: