chore: post publish docs & examples changes (#9217)

This commit is contained in:
Marcel Mraz 2025-03-11 13:02:59 +01:00 committed by GitHub
parent d587b8a3de
commit 69bc5bdaab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 256 additions and 388 deletions

View file

@ -9,9 +9,9 @@ export class ExcalidrawFontFace {
public readonly fontFace: FontFace;
private static readonly ASSETS_FALLBACK_URL = `https://esm.sh/${
import.meta.env.VITE_PKG_NAME
? `${import.meta.env.VITE_PKG_NAME}@${import.meta.env.VITE_PKG_VERSION}` // should be provided by vite during package build
: "@excalidraw/excalidraw" // fallback to latest package version (i.e. for app)
import.meta.env.PKG_NAME
? `${import.meta.env.PKG_NAME}@${import.meta.env.PKG_VERSION}` // is provided during package build
: "@excalidraw/excalidraw" // fallback to the latest package version (i.e. for app)
}/dist/prod/`;
constructor(family: string, uri: string, descriptors?: FontFaceDescriptors) {