Skip to content

Commit

Permalink
Add TS importing
Browse files Browse the repository at this point in the history
  • Loading branch information
limdingwen committed Nov 12, 2023
1 parent 9210b94 commit aff2c66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ const script = ({src, name, mode}, done = _ => true) => {
// match sourcemap name with configured js file name
output: {filename: `${name}.js`},
// use source map with dev builds only
devtool: isProd ? undefined : 'cheap-source-map'
devtool: isProd ? undefined : 'cheap-source-map',
// allow TS importing
resolve: {
extensions: ['.ts', '...']
},
};

return gulp.src(src)
Expand Down

0 comments on commit aff2c66

Please sign in to comment.