Skip to content

Commit 79257a1

Browse files
authored
fix: correctly resolve the package version (#8016)
The property name is `VITE_PKG_VERSION` (not `PKG_VERSION`) Resolves #7984
1 parent dc66261 commit 79257a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/excalidraw/scene/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export const exportToSvg = async (
339339
assetPath =
340340
window.EXCALIDRAW_ASSET_PATH ||
341341
`https://unpkg.com/${import.meta.env.VITE_PKG_NAME}@${
342-
import.meta.env.PKG_VERSION
342+
import.meta.env.VITE_PKG_VERSION
343343
}`;
344344

345345
if (assetPath?.startsWith("/")) {

0 commit comments

Comments
 (0)