dillonkearns / elm-typescript-interop

Generate TypeScript declaration files for your elm ports!
BSD 3-Clause "New" or "Revised" License
165 stars 13 forks source link

webpack interop #2

Open muelli opened 6 years ago

muelli commented 6 years ago

Currently, it seems as if calling a separate process (elm-typescript-interop) is required.

Generally I like having separate processes and lean interfaces between them. The webpack architecture seems to make it hard to use though. I'm using the watch mode to have webpack build a project repeatedly. Because currently, webpack is not aware of the elm-typescript-interop, it cannot run it.

I would like being able to use webpack --watch and have the typescript files built along, if at all possible.

dillonkearns commented 6 years ago

@muelli thanks so much for the feedback! I've thought the same thing myself, it would be great to be able to configure elm-typescript-interop as a webpack plugin so it runs it as part of the webpack build process. This would make it a lot less error-prone and more intuitive. I'll need to do some research on this, but it is one of my top priorities.

pnaylor commented 5 years ago

+1 This is a great idea and would make this tool much smoother to integrate and use I imagine.