Skip to content

Commit 5a06c41

Browse files
committed
Tree shaking and bundlers FAQ items
1 parent ce85caf commit 5a06c41

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

_faqs/general-bundlers.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
question: "Can I use libraries with bundlers like Rollup or Webpack?"
3+
group: General
4+
priority: ADK
5+
---
6+
7+
Yes.
8+
9+
These libraries include ES6 modules in the distribution,
10+
so, any environment that uses `import` will be able to find modules
11+
without any additional configuration.

_faqs/general-tree-shaking.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
question: "Do these libraries work well with tree shaking?"
3+
group: General
4+
priority: ADM
5+
---
6+
7+
Yes.
8+
9+
The versions - `stomp-js@6`, `rx-stomp@1`, `ng2-stompjs@8` - are targeted to
10+
`es2015`. This ensures smaller code size.
11+
The code follows guidelines that should allow proper tree shaking behavior.
12+
13+
`rx-stomp`, prior to v1, was distributed as `commonjs` modules, which
14+
may not be tree shaking friendly. Please upgrade if you face issues.

0 commit comments

Comments
 (0)