Skip to content

Commit 9fae484

Browse files
committed
override @sentry/typescript's importHelpers value in repo-level tsconfig
1 parent be5e875 commit 9fae484

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77
"declarationMap": false,
88
"skipLibCheck": true,
99
"types": ["node"],
10+
// Setting this to `false` causes TS to include the full code for each helper it injects, which allows us to remove
11+
// `tslib` as a dependency, with the advantage that it means we don't have to worry about `tslib` version
12+
// compatibility with our version of TS. Since we now use Sucrase and Rollup for our main builds, this only affects
13+
// our ES5 bundles (which would pull in the helper code in any case, even if specified in an import) and tests
14+
// (where the built files last only long enough to run tests againt), so it's safe to include it here in the root
15+
// tsconfig.
16+
"importHelpers": false,
1017
}
1118
}

0 commit comments

Comments
 (0)