Improve package loading compatibility in documentation
In some cases the import fails when trying to use the default export so its better if you also include aliases in the docs.
import * as WolframNotebookEmbedder from 'wolfram-notebook-embedder'
Any chance you could point us to a full example that demonstrates the failing import?
Sure, here is a typical vanilla js project with a bundler. https://codesandbox.io/s/wolfram-notebook-embedder-import-demo-o2wv7?file=/src/index.js
You can switch 3rd and 4th line to see what i mean.
Thank you!
I'm adding a default export as a courtesy, but also changing the documentation to encourage the named import (import * as WolframNotebookEmbedder or import {embed}).