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:
parent
16e255fd57
commit
262d7d61d3
5 changed files with 59 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue