Implemented @theatre/browser-bundles
This commit is contained in:
parent
4a12a92428
commit
097ff51a7a
11 changed files with 195 additions and 0 deletions
8
packages/browser-bundles/src/core-and-studio.ts
Normal file
8
packages/browser-bundles/src/core-and-studio.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import * as core from '@theatre/core'
|
||||
import studio from '@theatre/studio'
|
||||
|
||||
// @ts-ignore
|
||||
window.Theatre = {
|
||||
core,
|
||||
studio,
|
||||
}
|
12
packages/browser-bundles/src/core-only.ts
Normal file
12
packages/browser-bundles/src/core-only.ts
Normal 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
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue