I have the following webpack.config.ts:
webpack.config.ts
var webpack = require( \'webpack\' ); var path = require( \'path\' ); module.exports = { entry: [
For those that only need to remove the express due to the view lib as mentioned here you can also explicitly target express in externals from your webpack config.
externals: [{ 'express': { commonjs: 'express' } }]