I'm encountering difficulties when trying to integrate certain elements from threejs's examples, such as EffectComposer or Detector, with webpack and typescript.
Although the necessary *.d.ts files are installed using tsd, I am struggling to make webpack include files from the threejs examples/js/ directory.
When using three installed via npm, I am able to import THREE with:
import THREE = require('three');
This method works well, but does not provide access to the additional features I require. While there are other threejs packages on npm that bundle plugins, they seem incompatible with typescript (for example, require('three-js')(['EffectComposer']) causes issues with the typescript compiler).
Has anyone been successful in making elements from this package (such as postprocessing) work with typescript?