When webpack4.x is packaged, the same library is introduced into the third-party library and the project code. Can it be packaged together?

text-encoding is introduced into my code and third-party libraries. Can you package it together?

now I can only introduce my own package together.


configure optimization. For example, I typed all the plug-ins used for upload to

.
 optimization: {
    runtimeChunk: {
      name: 'manifest'
    },
    splitChunks: {
      maxInitialRequests: 10,
      cacheGroups: {
       // upload.js
        cosUpload: {
          test: /(cosUploadUtil|exif|lrz.all.bundle|qcloud_sdk)/,
          name: 'upload',
          chunks: 'initial',
          minChunks: 1
        }
      }
    }
  },
Menu