potatopotato?

This commit is contained in:
jmosrael@gmail.com
2024-06-07 22:23:25 -07:00
parent 43bd251940
commit 05c3136c7f
12 changed files with 2471 additions and 38 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()],
};