Skip to content

Commit

Permalink
chore: support .ts|.tsx file compilation (#1071)
Browse files Browse the repository at this point in the history
* chore: support .ts|.tsx file compilation

* Trigger Build

Co-authored-by: delambo <[email protected]>
  • Loading branch information
dlemburg and delambo authored Sep 27, 2022
1 parent f867fd4 commit e8112ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kyt-core/src/config/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = options => {
},

resolve: {
extensions: ['.mjs', '.jsx', '.js', '.json'],
extensions: ['.mjs', '.jsx', '.js', '.json', '.ts', '.tsx'],
modules: [userNodeModulesPath, path.resolve(__dirname, '../node_modules'), 'node_modules'],
alias: {
// This is required so symlinks work during development.
Expand Down Expand Up @@ -85,7 +85,7 @@ module.exports = options => {
},
},
{
test: /\.(js|jsx)$/,
test: /\.(js|jsx|ts|tsx)$/,
loader: 'babel-loader',
exclude: [/node_modules/, buildPath, publicSrcPath],
// babel configuration should come from presets defined in the user's
Expand Down

0 comments on commit e8112ae

Please sign in to comment.