Skip to content

Commit aff2c66

Browse files
committed
Add TS importing
1 parent 9210b94 commit aff2c66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ const script = ({src, name, mode}, done = _ => true) => {
4646
// match sourcemap name with configured js file name
4747
output: {filename: `${name}.js`},
4848
// use source map with dev builds only
49-
devtool: isProd ? undefined : 'cheap-source-map'
49+
devtool: isProd ? undefined : 'cheap-source-map',
50+
// allow TS importing
51+
resolve: {
52+
extensions: ['.ts', '...']
53+
},
5054
};
5155

5256
return gulp.src(src)

0 commit comments

Comments
 (0)