r3f fixes (#222)

* Minify r3f extension bundle, because it is expected by the React dead code elimination check, since we bundle React in it

* Add children to props, since it is required by React 18 types

* Fix getting context attributes for gl in ReferenceWindow

* Don't bundle threejs in extension

* Fix editor not responding to scene initialization

* Fix SnapshotEditor css
This commit is contained in:
Andrew Prifer 2022-06-18 02:59:45 +02:00 committed by GitHub
parent 16e255fd57
commit 262d7d61d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 44 deletions

View file

@ -58,7 +58,7 @@ async function createBundles() {
'@theatre/studio',
'@theatre/dataverse',
'@theatre/r3f',
// 'three',
'three',
// '@react-three/fiber',
// '@react-three/drei',
// 'three-stdlib',
@ -69,6 +69,7 @@ async function createBundles() {
outfile: path.join(__dirname, '../dist/extension/index.js'),
format: 'cjs',
metafile: true,
minify: true,
}
const result = await build(esbuildConfig)