Merge pull request #3068 from urbit/mp/ts-prod-build

interface: update production build for typescript
This commit is contained in:
matildepark 2020-06-29 23:26:43 -04:00 committed by GitHub
commit 064e1da7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ module.exports = {
module: { module: {
rules: [ rules: [
{ {
test: /\.js?$/, test: /\.(j|t)sx?$/,
use: { use: {
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {
@ -39,7 +39,7 @@ module.exports = {
] ]
}, },
resolve: { resolve: {
extensions: ['.js'] extensions: ['.js', '.ts', '.tsx']
}, },
devtool: 'inline-source-map', devtool: 'inline-source-map',
// devServer: { // devServer: {
@ -58,7 +58,7 @@ module.exports = {
output: { output: {
filename: 'index.js', filename: 'index.js',
chunkFilename: 'index.js', chunkFilename: 'index.js',
path: path.resolve(urbitrc.URBIT_PIERS[0] + '/app/landscape/', 'js'), path: path.resolve(__dirname, '../../arvo/app/landscape/js'),
publicPath: '/' publicPath: '/'
}, },
optimization: { optimization: {