I'm having a lot of trouble getting stuff in threejs's examples (like EffectComposer or Detector) to work with webpack and typescript.
First off the relevant *.d.ts
files are all present and installed via tsd
. My problem is getting webpack to actually include files outside of the default threejs build (namely things in examples/js/
).
With three
installed from npm I can do something like
import THREE = require('three');
Which works fine but lacks any of the aforementioned goodies. There are a few other threejs packages on npm that bundle plugins but I don't think they work with typescript (since require('three-js')(['EffectComposer'])
is rejected by the typescript compiler.
Has anyone gotten something in this package (like postprocessing) to work with typescript?