From 64884952ba5aeb4ee0806b2cc32fdfbc9519847e Mon Sep 17 00:00:00 2001 From: doktordirk Date: Fri, 12 Aug 2016 19:04:57 +0200 Subject: [PATCH] fix(property-decorator): set configurable=true current version leaves the property non-configurable.this prevents aurelia from observing the property see https://github.com/SpoonX/aurelia-orm/issues/177 see https://github.com/aurelia/framework/issues/541 --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index b63b3d1..3b4c2cd 100644 --- a/src/index.js +++ b/src/index.js @@ -234,6 +234,7 @@ export default function({types: t}){ t.arrayExpression(decorators.map(dec => dec.expression)), t.objectExpression([ t.objectProperty(t.identifier('enumerable'), t.booleanLiteral(true)), + t.objectProperty(t.identifier('configurable'), t.booleanLiteral(true)), t.objectProperty(t.identifier('initializer'), initializer), ]), ])),