Skip to content

Computed properties + uglify #99

Closed
@kenjiqq

Description

@kenjiqq

I found an issue with the way computed properties are implemented and the very common library uglify. I guess it might be the same way for any minification library.

When you have a computed block like:

computed: {
  computedField: function (field1, field2) {
    return field1 + field2;
  }
}

it turns into this after being run though uglify

computed:{
  computedField: function(a,b){
    return a+b
  }
}

I think that is a pretty big issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions