Skip to content

Commit c33ce37

Browse files
committed
[fix] Decorator Compiler compatibility
1 parent 2118260 commit c33ce37

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

MobX/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobx-web-cell",
3-
"version": "0.4.0-rc.4",
3+
"version": "0.4.0-rc.5",
44
"license": "LGPL-3.0",
55
"author": "[email protected]",
66
"description": "MobX adaptor for WebCell v2",
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"mobx": ">4.0.0 <6.0.0",
27-
"web-cell": "^2.4.0-rc.5"
27+
"web-cell": "^2.4.0-rc.6"
2828
},
2929
"devDependencies": {
3030
"@parcel/packager-ts": "^2.2.1",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-cell",
3-
"version": "2.4.0-rc.5",
3+
"version": "2.4.0-rc.6",
44
"description": "Web Components engine based on JSX & TypeScript",
55
"keywords": [
66
"web",

source/decorator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export function watch(
4646
(meta.configurable = true), (meta.enumerable = true);
4747

4848
if (!accessor) Object.defineProperty(prototype, key, meta);
49+
50+
return meta;
4951
}
5052

5153
export function attribute({ constructor }: Object, key: string) {

0 commit comments

Comments
 (0)