Bundle: Allows TypeScript in JS bundles. (#1347)

For details, please visit #1347

Now lets hope I don't break everyone's life :smiley: