-
-
Notifications
You must be signed in to change notification settings - Fork 432
Support TypeScript for non-component source code #57
Comments
I'm a tad worried by this change. If we support TypeScript out of the box (and make everyone using sapper-template download its compiler whether they use it or not), why not [language X that compiles to js]? Would this be better handled by some sort of plugin architecture? |
That's a good point. Maybe just make |
I don't think there's a problem with having a wiki entry on how to support typescript - but I think it'd still bug me making a change to this regex in sapper itself. The way it is now, supporting additional file types can be done from outside of sapper (by adding new webpack plugins/loaders), but supporting additional file extensions requires changes to sapper. I feel a better solution is to let that regex be configurable when calling |
I think I agree re leaving sapper-template alone and making it a documentation concern — it should be possible to use TypeScript (or whatever else people are into) but we probably shouldn't clutter up the default config with something that will be extraneous to most people.
What if we recognised all files in |
allow server routes to be .ts files (or anything else)
I guess we just need to recognise file extensions other than .js, and update the webpack config in sapper-template
The text was updated successfully, but these errors were encountered: