From d9239de55d16a45630b6fdf892b3419b4ab9d886 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 ++ yarn.lock | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) 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' diff --git a/yarn.lock b/yarn.lock index 5d9600c14..62e132863 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2449,9 +2449,10 @@ rc@1.2.5: minimist "^1.2.0" strip-json-comments "~2.0.1" -reactivedb@~0.11.0: - version "0.11.0" - resolved "https://registry.npmjs.org/reactivedb/-/reactivedb-0.11.0.tgz#de0952b908455fb83094d38631462062c9f60fd4" +reactivedb@0.11.1-alpha.0-rxnotreeshake: + version "0.11.1-alpha.0-rxnotreeshake" + resolved "https://registry.npmjs.org/reactivedb/-/reactivedb-0.11.1-alpha.0-rxnotreeshake.tgz#35ab43d561f039d063bb6ef06f00c511396c51f2" + integrity sha512-PtRRrdWTfO6FBoeiFq9iZet4ALu+n1z/WmYDJ2BVQBaM2T31cHgJu+t3uxV0INleE4mVKI8lkVkuKLu+bxoRgA== dependencies: "@types/lovefield" "^2.1.1" lovefield "2.1.12"