Phaser3 with webpack + typescript?

My goal is to setup a phaser project with webpack and typescript from scratch.

The problem is, I can not get it to work without pasting the definition files into my src directory.
If I do that everything runs fine.

But the definition files are already packaged under node_modules/phaser/types/phaser.d.ts

So I should (no longer) need to also add them to my source directory.

This might be more of a webpack or typescript question - but has anyone got it to work using the definitions that are published?

All boiler plates still use the “copy the definitions into your project” approach - which according to github issue should no longer be necessary.

Never mind - the tsconfig.json from the last comment is working!

Working (tsconfig.json)[https://github.com/photonstorm/phaser/issues/3224#issuecomment-506386460] to use the npm phaser definitions

Thanks sh4bang!