[resolved] weex introduces ali-oss packaging error report

clipboard.png

clipboard.png

weexh5 ali-oss in xxx.bundle.js from UglifyJsda undefined
demo import ali-oss 5
weex create test
npm install ali-oss --save
index ali-oss


https://blog.csdn.net/airdark...
https://segmentfault.com/a/11...
babel-preset-es2015.......
weex

clipboard.png
clipboard.png
read other people"s answers and feel that they have something to do with this? This is a bit difficult for me as a novice. I need the help of the bosses. There are examples above that you can try packaging failure

Mar.02,2021

clipboard.png

clipboard.png

clipboard.png

cnpm install uglifyjs-webpack-plugin --save-dev

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

 new UglifyJsPlugin({
      uglifyOptions: {
        ie8: false,
        ecma: 8,
        mangle: true,
        output: { comments: false },
        compress: { warnings: false }
      },
      sourceMap: false,
      cache: true,
      parallel: os.cpus().length * 2
    })
Menu