sveltejs / sapper-template

Starter template for Sapper apps
703 stars 214 forks source link

Webpack TypeScript support #276

Closed CitRUSprod closed 4 years ago

CitRUSprod commented 4 years ago

Add script for start use TypeScript with Webpack.

benmccann commented 4 years ago

there's a lot of duplicated code between the webpack and rollup scripts. can we address that somehow?

Conduitry commented 4 years ago

I'd be fine with a single setup script that works for both and checks for the existence of rollup.config.js or webpack.config.js before deciding what to do.

Actually, it just struck me that we could refactor this all a bit and automatically produce four different branches (rollup, rollup-typescript, webpack, webpack-typescript) from a single branch, and get rid of the need for end users to deal with this script at all - but that should be a separate later PR.

CitRUSprod commented 4 years ago

there's a lot of duplicated code between the webpack and rollup scripts. can we address that somehow?

Done.