This commit is contained in:
iamBadgers
2024-06-07 21:18:35 -07:00
parent 65378473e0
commit 17539449b6
13 changed files with 2471 additions and 67 deletions

27
backend/webpack.config.js Normal file
View File

@@ -0,0 +1,27 @@
const path = require('path');
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
const nodeExternals = require('webpack-node-externals');
module.exports = {
entry: './src/app.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
plugins: [
new NodePolyfillPlugin(),
],
externals: [nodeExternals()],
};