Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Nov 18, 2021
1 parent e452bed commit 8d0abe0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ const join = require('path').join;
module.exports = {
entry: './ts/main.ts',
target: 'node',
resolve: {
mainFields: ['main', 'module'],
// extensions: ['.ts', '.js'],
},
output: {
path: join(__dirname, 'dist'),
filename: 'main.js',
filename: 'main.js'
// libraryTarget: "commonjs2",
},
devtool: 'source-map',
resolve: { extensions: ['.ts', '.js'] },
// optimization: { minimize: false },
module: {
rules: [{
test: /\.ts$/,
Expand Down

0 comments on commit 8d0abe0

Please sign in to comment.