Skip to content

Commit 2cf7d48

Browse files
committed
WIP
1 parent 8314ed9 commit 2cf7d48

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dev-packages/rollup-utils/plugins/npmPlugins.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export function makeSucrasePlugin(options = {}, sucraseOptions = {}) {
3030
{
3131
transforms: ['typescript', 'jsx'],
3232
// We use a custom forked version of sucrase,
33-
// where optional chaining & nullish coalescing are never polyfilled (even if this is false)
34-
// If this is disabled, then numeric separators & class fields are not polyfilled anymore, which we rely on
33+
// where there is a new option `disableES2019Transforms`
3534
disableESTransforms: false,
35+
disableES2019Transforms: true,
3636
...sucraseOptions,
3737
},
3838
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"gauge/strip-ansi": "6.0.1",
148148
"wide-align/string-width": "4.2.3",
149149
"cliui/wrap-ansi": "7.0.0",
150-
"**/sucrase": "getsentry/sucrase#es2020-polyfills"
150+
"**/sucrase": "getsentry/sucrase#fn/do-not-polyfill"
151151
},
152152
"version": "0.0.0",
153153
"name": "sentry-javascript",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31668,9 +31668,9 @@ [email protected], stylus@^0.59.0:
3166831668
sax "~1.2.4"
3166931669
source-map "^0.7.3"
3167031670

31671-
sucrase@^3.27.0, sucrase@^3.35.0, sucrase@getsentry/sucrase#es2020-polyfills:
31671+
sucrase@^3.27.0, sucrase@^3.35.0, sucrase@getsentry/sucrase#fn/do-not-polyfill:
3167231672
version "3.35.0"
31673-
resolved "https://codeload.github.com/getsentry/sucrase/tar.gz/d465b752e6355bc696bd5d3e0465f6329ea74ec8"
31673+
resolved "https://codeload.github.com/getsentry/sucrase/tar.gz/83055fad8fa6316bf82adbb6df32798535aad1df"
3167431674
dependencies:
3167531675
"@jridgewell/gen-mapping" "^0.3.2"
3167631676
commander "^4.0.0"

0 commit comments

Comments
 (0)