Implemented @theatre/browser-bundles

This commit is contained in:
Aria Minaei 2021-09-30 21:58:22 +02:00
parent 4a12a92428
commit 097ff51a7a
11 changed files with 195 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import * as core from '@theatre/core'
import studio from '@theatre/studio'
// @ts-ignore
window.Theatre = {
core,
studio,
}

View file

@ -0,0 +1,12 @@
import * as core from '@theatre/core'
// @ts-ignore
window.Theatre = {
core,
get studio() {
alert(
"Theatre.studio is only available in the core-and-studio.js bundle. You're using the core-only.min.js bundle.",
)
return undefined
},
}