Commit 78b49c9
Expose as module and use browserify (#53)
Expose as module
Switch base library to commonjs format
Use require() rather than implicit global for StackTrace dependency.
Dedent library source, losing blame unfortunately.
Link test.html to built source that adds UMD wrapper.
Update eslint config to expect commonjs source everywhere.
Drop special handling for StackTrace object being undefined.
Fixes: #2
Bundle dist script with browserify
Change gulp dist task from concatting prebuilt source to building
from components and bundling using browserify.
Supply polyfills from core-js via browserify require, based on the
upstream polyfills in stacktrace-js. This may be overly conservative
as browsers back to IE 9 have good enough ES5 support, just filling
Promise is probably be reasonable.
* Update dependencies and drop to nise from sinon
The fake-xhr part of sinon has been split to its own package, so can
just use that drop a few unused packages.1 parent 8864fb4 commit 78b49c9
8 files changed
Lines changed: 1943 additions & 863 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | | - | |
32 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | | - | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
61 | | - | |
62 | | - | |
| 75 | + | |
| 76 | + | |
0 commit comments