Commit e3ac22d
committed
feat: add declaration maps for consumers
- fancy source maps for declarations
- apparently I left these out of `ts-library-base` so they didn't get
copied here either
- but most of my tsconfig there was copied too, so I suspect I left
it out either because of @wessberg/rollup-plugin-ts's bugs with it
or because TSDX previously had bugs with it
- c.f. ezolenko/rollup-plugin-typescript2#221
and the worse downstream version I had written first:
jaredpalmer/tsdx#488
- Unfortunately I did encounter a small error with declaration maps when
using rpts2 as a configPlugin, due to an unexpected edge case in code
I wrote myself in the above PR
- wrote up an issue for it and will probably PR it myself too:
ezolenko/rollup-plugin-typescript2#310
- as a workaround, I wrote a small `tsconfig.rollup.json` to be used
with rpts2 as a configPlugin that disables `declarationMap`
- and also adds some optimizations over my base tsconfig
- took me a bit to figure out how to use options with configPlugins,
as that was one of the reasons I didn't use @rollup/plugin-babel
as the configPlugin
- I still can't get it to read my `babel.config.js` even with
options as it has no option for this (it auto-detects it) :/1 parent 646b4b3 commit e3ac22d
3 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments