How To Fix Express Warning Webpack?
I am using webpack to boundle server and client... here is webpack config: const webpack = require('webpack'); const path = require('path'); const HtmlWebpackPlugin = require('html
Solution 1:
You can declare express as an external dependency, so Webpack does not bundle the module.
Just add the following:
module.exports = {
...
externals: {
'express': 'commonjs express'
}
...
};
Post a Comment for "How To Fix Express Warning Webpack?"