From 9686f3483a06f12c7bf3cc5a5fc479524cca9d37 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 29 Jun 2020 22:48:17 -0400 Subject: [PATCH] interface: update production build for typescript --- pkg/interface/config/webpack.prod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/interface/config/webpack.prod.js b/pkg/interface/config/webpack.prod.js index e19e15940e..3e00ad14d2 100644 --- a/pkg/interface/config/webpack.prod.js +++ b/pkg/interface/config/webpack.prod.js @@ -11,7 +11,7 @@ module.exports = { module: { rules: [ { - test: /\.js?$/, + test: /\.(j|t)sx?$/, use: { loader: 'babel-loader', options: { @@ -39,7 +39,7 @@ module.exports = { ] }, resolve: { - extensions: ['.js'] + extensions: ['.js', '.ts', '.tsx'] }, devtool: 'inline-source-map', // devServer: { @@ -58,7 +58,7 @@ module.exports = { output: { filename: 'index.js', chunkFilename: 'index.js', - path: path.resolve(urbitrc.URBIT_PIERS[0] + '/app/landscape/', 'js'), + path: path.resolve(__dirname, '../../arvo/app/landscape/js'), publicPath: '/' }, optimization: {