@mpxjs/webpack-plugin 2.10.16-beta.2 → 2.10.16-beta.3

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.
@@ -100,7 +100,7 @@ module.exports = function (content) {
100
100
  MemberExpression (path) {
101
101
  const property = path.node.property
102
102
  if (
103
- (property.name === 'constructor' || property.value === 'constructor') &&
103
+ property && (property.name === 'constructor' || property.value === 'constructor') &&
104
104
  !(t.isMemberExpression(path.parent) && path.parentKey === 'object')
105
105
  ) {
106
106
  path.replaceWith(t.memberExpression(path.node, t.identifier('name')))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.16-beta.2",
3
+ "version": "2.10.16-beta.3",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"