diff --git a/rollup.config.js b/rollup.config.js index e493377..8a4381e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -70,12 +70,12 @@ function createConfig(entry, out, closure = true) { babel(getBabelOptions({ useESModules: true }, '>1%, not dead, not ie 11, not op_mini all')), resolve({ extensions }), targetTypings(entry, out), - /*closure && + closure && compiler({ compilation_level: 'SIMPLE', jscomp_off: 'checkVars', }), - closure && addImport(`dist/${out}.js`, `import * as THREE from "three";`),*/ + closure && addImport(`dist/${out}.js`, `import * as THREE from "three";`), sizeSnapshot(), ], }, diff --git a/src/canvas.tsx b/src/canvas.tsx index f181d39..76a608a 100644 --- a/src/canvas.tsx +++ b/src/canvas.tsx @@ -631,7 +631,6 @@ export const useCanvas = (props: UseCanvasProps): DomEventHandlers => { // Dispose renderer on unmount useEffect( () => () => { - console.log('dispose') if (state.current.gl) { state.current.gl.renderLists.dispose() if (state.current.gl.forceContextLoss) state.current.gl.forceContextLoss() diff --git a/src/renderer.tsx b/src/renderer.tsx index 2bd91e0..8ce0d88 100644 --- a/src/renderer.tsx +++ b/src/renderer.tsx @@ -1,7 +1,5 @@ import * as THREE from 'three' import React from 'react' -//@ts-ignore -//import Reconciler from 'react-reconciler/cjs/react-reconciler.production.min' import Reconciler from 'react-reconciler' import { unstable_now as now, unstable_IdlePriority as idlePriority, unstable_runWithPriority as run } from 'scheduler' import { CanvasContext } from './canvas'