Support TypeScript files as bundle sources (Case 199344) #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for TypeScript files to the Webpack bundling task.
The gulp task including the modifications from this PR is already in use in https://github.com/webfactory/webfactory-de-projekt-controlling, which can be set back to using the upstream task after this has been merged.
Apart from being necessary for our Projekt Controlling app, I'd like to make it easier to use TypeScript in webfactory projects to encourage its use.
It might be "cleaner" to open the gulp preset for downstream Webpack config modifications rather than adding TypeScript upstream. However, this is already how we decided to handle Svelte support, which is used by a similarly small amount of webfactory projects, and it seems to be easier right now – the downsides of requiring TypeScript upstream should not be this big, given this is just a dev dependency.
That doesn't mean I wouldn't be positive designing an interface for additional webpack configuration from downstream, and maybe bringing the syntax expected in
gulp-config.jscloser to the well documented Webpack config format.