소스 검색

fix: correctly resolve the package version (#8016)

The property name is `VITE_PKG_VERSION` (not `PKG_VERSION`)

Resolves #7984
Guillaume Grossetie 1 년 전
부모
커밋
79257a1923
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/excalidraw/scene/export.ts

+ 1 - 1
packages/excalidraw/scene/export.ts

@@ -339,7 +339,7 @@ export const exportToSvg = async (
     assetPath =
       window.EXCALIDRAW_ASSET_PATH ||
       `https://unpkg.com/${import.meta.env.VITE_PKG_NAME}@${
-        import.meta.env.PKG_VERSION
+        import.meta.env.VITE_PKG_VERSION
       }`;
 
     if (assetPath?.startsWith("/")) {