Skip to content

Commit

Permalink
...使用一个 reactivedb 无需摇树的版本
Browse files Browse the repository at this point in the history
添加的 `import 'rxjs/internal/symbol/observable` 是用来保证在
reactivedb 的 rxjs 依赖完全清瘦的情况下,SymbolConstructor 上的
observable 字段被挂上,令 ts 编译通过。
  • Loading branch information
chuan6 committed Sep 27, 2018
1 parent d433513 commit d9239de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/rx.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
7 changes: 4 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2449,9 +2449,10 @@ [email protected]:
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"
[email protected]:
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"
Expand Down

0 comments on commit d9239de

Please sign in to comment.