Skip to content

Commit

Permalink
fix: webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Jul 9, 2021
1 parent e86e6b2 commit da8c190
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/lib/wapi/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,21 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
const path = require('path');

module.exports = {
entry: './wapi.js',
// mode: 'development',
// devtool: 'source-map',
entry: './middleware.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
output: {
path: path.resolve(__dirname, '../../../dist/lib/wapi'),
filename: 'wapi.js'
filename: 'middleware.js',
path: path.resolve(__dirname, '../../../dist/lib/middleware')
}
};

0 comments on commit da8c190

Please sign in to comment.