From 49b5ba3262e563bf82bf9cb762b48590babc4015 Mon Sep 17 00:00:00 2001 From: Diego Muracciole Date: Wed, 5 Mar 2025 00:20:15 +0100 Subject: [PATCH] feat(pdfkit): compile nullish coalescing operator --- .changeset/stupid-waves-hunt.md | 5 +++++ package.json | 1 + packages/pdfkit/babel.config.js | 2 +- yarn.lock | 12 ++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .changeset/stupid-waves-hunt.md diff --git a/.changeset/stupid-waves-hunt.md b/.changeset/stupid-waves-hunt.md new file mode 100644 index 000000000..26554f8c0 --- /dev/null +++ b/.changeset/stupid-waves-hunt.md @@ -0,0 +1,5 @@ +--- +"@react-pdf/pdfkit": patch +--- + +feat: compile nullish coalescing operator diff --git a/package.json b/package.json index c74a41243..bdddce898 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@babel/core": "^7.20.7", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-optional-chaining": "^7.20.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6", "@babel/plugin-transform-runtime": "^7.19.6", "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", diff --git a/packages/pdfkit/babel.config.js b/packages/pdfkit/babel.config.js index 02d1cbbdb..f5f31703f 100644 --- a/packages/pdfkit/babel.config.js +++ b/packages/pdfkit/babel.config.js @@ -1 +1 @@ -export default { extends: '../../babel.config.js' }; +export default { extends: '../../babel.config.js', plugins: ['@babel/plugin-transform-nullish-coalescing-operator'] }; diff --git a/yarn.lock b/yarn.lock index e18651e97..5820a19db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -209,6 +209,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== +"@babel/helper-plugin-utils@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" + integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== + "@babel/helper-remap-async-to-generator@^7.18.9": version "7.18.9" 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 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" +"@babel/plugin-transform-nullish-coalescing-operator@^7.26.6": + version "7.26.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz#fbf6b3c92cb509e7b319ee46e3da89c5bedd31fe" + integrity sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw== + dependencies: + "@babel/helper-plugin-utils" "^7.26.5" + "@babel/plugin-transform-object-super@^7.18.6": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c"