Webpack and Express - Critical Dependencies Warning

后端 未结 3 808
执笔经年
执笔经年 2020-12-14 02:10

I have the following webpack.config.ts:

var webpack = require( \'webpack\' );
var path = require( \'path\' );

module.exports = {

  entry: [
           


        
3条回答
  •  旧时难觅i
    2020-12-14 02:49

    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' } }]

提交回复
热议问题