@mpxjs/cli-shared-utils 2.1.25 → 2.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/webpack.js +3 -1
  2. package/package.json +1 -1
package/lib/webpack.js CHANGED
@@ -31,7 +31,9 @@ function updateWebpackName (api, config) {
31
31
  config.plugin('webpackbar').tap((args) => {
32
32
  const c = args[0]
33
33
  c.name = name
34
- c.reporter.name = c.name
34
+ if (c.reporter) {
35
+ c.reporter.name = c.name
36
+ }
35
37
  return args
36
38
  })
37
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/cli-shared-utils",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "share utils for mpx-cli",
5
5
  "main": "lib/index.js",
6
6
  "dependencies": {