Skip to content

Commit 164c37a

Browse files
authored
Merge pull request #2 from cvle/cvle-ts-ext
Add .ts extension for typescript support.
2 parents eb95872 + 61e2d68 commit 164c37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (source) {
1616
module.exports.pitch = function (request, prevRequest) {
1717
if(this.cacheable) this.cacheable();
1818
var callback = this.async();
19-
if (path.extname(request) === '.js') {
19+
if (['.js', '.ts'].indexOf(path.extname(request)) >= 0) {
2020
produce(this, request, callback);
2121
} else {
2222
var parts = request.split('!');

0 commit comments

Comments
 (0)