We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4877a92 commit 55ecb13Copy full SHA for 55ecb13
packages/core/src/components/TresCanvas.vue
@@ -26,7 +26,7 @@ import {
26
watch,
27
watchEffect,
28
} from 'vue'
29
-import pkg from '../../package.json'
+import { version } from '../../package.json'
30
import type { RendererOptions, TresContext } from '../composables'
31
import { useTresContextProvider } from '../composables'
32
import { INJECTION_KEY as CONTEXT_INJECTION_KEY } from '../composables/useTresContextProvider'
@@ -286,7 +286,7 @@ export type TresCanvasEmits = {
286
ref="canvasRef"
287
:data-scene="scene.uuid"
288
:class="$attrs.class"
289
- :data-tres="`tresjs ${pkg.version}`"
+ :data-tres="`tresjs ${version}`"
290
:style="{
291
display: 'block',
292
width: '100%',
0 commit comments