Skip to content

Commit 49b5ba3

Browse files
committed
feat(pdfkit): compile nullish coalescing operator
1 parent 01b4ff5 commit 49b5ba3

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.changeset/stupid-waves-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-pdf/pdfkit": patch
3+
---
4+
5+
feat: compile nullish coalescing operator

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@babel/core": "^7.20.7",
3131
"@babel/plugin-proposal-class-properties": "^7.18.6",
3232
"@babel/plugin-proposal-optional-chaining": "^7.20.7",
33+
"@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6",
3334
"@babel/plugin-transform-runtime": "^7.19.6",
3435
"@babel/preset-env": "^7.20.2",
3536
"@babel/preset-react": "^7.18.6",

packages/pdfkit/babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default { extends: '../../babel.config.js' };
1+
export default { extends: '../../babel.config.js', plugins: ['@babel/plugin-transform-nullish-coalescing-operator'] };

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@
209209
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295"
210210
integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==
211211

212+
"@babel/helper-plugin-utils@^7.26.5":
213+
version "7.26.5"
214+
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35"
215+
integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==
216+
212217
"@babel/helper-remap-async-to-generator@^7.18.9":
213218
version "7.18.9"
214219
resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519"
@@ -711,6 +716,13 @@
711716
dependencies:
712717
"@babel/helper-plugin-utils" "^7.18.6"
713718

719+
"@babel/plugin-transform-nullish-coalescing-operator@^7.26.6":
720+
version "7.26.6"
721+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz#fbf6b3c92cb509e7b319ee46e3da89c5bedd31fe"
722+
integrity sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==
723+
dependencies:
724+
"@babel/helper-plugin-utils" "^7.26.5"
725+
714726
"@babel/plugin-transform-object-super@^7.18.6":
715727
version "7.18.6"
716728
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c"

0 commit comments

Comments
 (0)