From 6687571a1b3759b07b216208938e9a16db6b2412 Mon Sep 17 00:00:00 2001 From: chuan6 Date: Thu, 27 Sep 2018 00:38:19 +0800 Subject: [PATCH] =?UTF-8?q?...=E4=BD=BF=E7=94=A8=E4=B8=80=E4=B8=AA=20react?= =?UTF-8?q?ivedb=20=E6=97=A0=E9=9C=80=E6=91=87=E6=A0=91=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加的 `import 'rxjs/internal/symbol/observable` 是用来保证在 reactivedb 的 rxjs 依赖完全清瘦的情况下,SymbolConstructor 上的 observable 字段被挂上,令 ts 编译通过。 --- package.json | 2 +- src/rx.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6943117dd..baebcfe7a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "moment": "^2.18.1", "node-watch": "^0.5.8", "nyc": "^11.2.1", - "reactivedb": "~0.11.0", + "reactivedb": "0.11.1-alpha.0-rxnotreeshake", "rollup": "^0.60.5", "rollup-plugin-alias": "^1.3.1", "rollup-plugin-commonjs": "^8.4.1", diff --git a/src/rx.ts b/src/rx.ts index 5c345f79f..0f82d5901 100644 --- a/src/rx.ts +++ b/src/rx.ts @@ -1,3 +1,5 @@ +import 'rxjs/internal/symbol/observable' + export { defer } from 'rxjs/internal/observable/defer' export { empty } from 'rxjs/internal/observable/empty' export { forkJoin } from 'rxjs/internal/observable/forkJoin'