Commit 0154531
committed
deps: use rollup-plugin-node-externals
- instead of the custom JS code I wrote
- I was thinking of separating that into a plugin, but someone already
did that!
- and, importantly, also covered submodules, unlike _most_ of the
externals plugins
- see regex here: https://github.com/Septh/rollup-plugin-node-externals/blob/11a7b4454f57c76436e71ecead0cc59ab0cc3b80/src/index.ts#L106
- put it _before_ `node-resolve` as the docs state
- reduces my code a bit, which is always nice, and will make it easier
to split my Rollup config into its own "preset" package later on1 parent 6ed1a63 commit 0154531
3 files changed
+145
-20
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 14 | | |
32 | 15 | | |
33 | 16 | | |
| |||
56 | 39 | | |
57 | 40 | | |
58 | 41 | | |
59 | | - | |
60 | 42 | | |
| 43 | + | |
61 | 44 | | |
62 | 45 | | |
63 | 46 | | |
| |||
0 commit comments