Sets where the package's runtime files (dist/: worker.js, twip-wasm.js, twip_wasm.wasm, transport/ and worker/) are
served from, for an application whose bundler doesn't follow new URL(..., import.meta.url). Call it once, before
anything starts the engine: the first FontLibrary call, Editor.mount or
HeadlessEditor.create. The engine is shared by every session, so it's not a per-session option.
assets is the folder, resolved against the document's base URL. It may be on another origin (a CDN), which must
then send CORS headers for every file; see the package README.
Parameters
options: {assets:string|URL}
Returns void
Throws
EditorErrornot-allowed when the engine has already loaded from another folder.
Sets where the package's runtime files (dist/: worker.js, twip-wasm.js, twip_wasm.wasm, transport/ and worker/) are served from, for an application whose bundler doesn't follow
new URL(..., import.meta.url). Call it once, before anything starts the engine: the first FontLibrary call, Editor.mount or HeadlessEditor.create. The engine is shared by every session, so it's not a per-session option.assetsis the folder, resolved against the document's base URL. It may be on another origin (a CDN), which must then send CORS headers for every file; see the package README.