Skip to content

Commit 2d5f331

Browse files
committed
Deploy
1 parent aff2c66 commit 2d5f331

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

cli/gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@ const script = ({src, name, mode}, done = _ => true) => {
4949
devtool: isProd ? undefined : 'cheap-source-map',
5050
// allow TS importing
5151
resolve: {
52-
extensions: ['.ts', '...']
52+
extensions: ['.ts', '.tsx', '...']
5353
},
54+
// use ts-loader to compile TS files
55+
module: {
56+
rules: [
57+
// all files with a `.ts`, `.cts`, `.mts` or `.tsx` extension will be handled by `ts-loader`
58+
{ test: /\.([cm]?ts|tsx)$/, loader: 'ts-loader' }
59+
]
60+
}
5461
};
5562

5663
return gulp.src(src)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"sass": "1.49.9",
103103
"sinon": "13.0.1",
104104
"sinon-chrome": "3.0.1",
105+
"ts-loader": "^9.5.0",
105106
"webpack-stream": "7.0.0",
106107
"yargs": "17.3.1"
107108
},

0 commit comments

Comments
 (0)