I have the following webpack.config.ts:
var webpack = require( \'webpack\' );
var path = require( \'path\' );
module.exports = {
entry: [
Instead of excluding all of the npm dependencies to be bundled with nodeExternals you can also exclude only express by natively requiring it by replacing
import express from 'express';
// Or
const express = require('express');
To
const express = __non_webpack_require__('express');
That will suppress the warning caused by express