Add typescript dependency & tsconfig.json

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2019-11-23 21:08:30 +01:00 committed by Sheogorath
parent 63095e6c78
commit 0d788e0aec
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18
3 changed files with 24 additions and 4 deletions

View file

@ -357,7 +357,7 @@ module.exports = {
resolve: {
modules: ['node_modules'],
extensions: ['.js'],
extensions: ['.js', '.ts', '.tsx'],
alias: {
codemirror: path.join(__dirname, 'node_modules/codemirror/codemirror.min.js'),
inlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
@ -388,6 +388,9 @@ module.exports = {
module: {
rules: [{
test: /\.tsx?$/,
use: [{ loader: 'awesome-typescript-loader' }]
}, {
test: /\.js$/,
use: [{ loader: 'babel-loader' }],
exclude: [/node_modules/, /public\/vendor/]