From 1d7fa8c6a677acb8c5a9e74ecb264a153077b10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CIsaac?= Date: Thu, 2 May 2024 00:09:02 +1000 Subject: [PATCH] fix: add babel preset @babel/preset-react --- .changeset/sharp-poems-trade.md | 5 +++++ packages/arancini-react/rollup.config.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/sharp-poems-trade.md diff --git a/.changeset/sharp-poems-trade.md b/.changeset/sharp-poems-trade.md new file mode 100644 index 00000000..1496c95a --- /dev/null +++ b/.changeset/sharp-poems-trade.md @@ -0,0 +1,5 @@ +--- +"@arancini/react": patch +--- + +fix: don't include react/jsx-runtime in bundle diff --git a/packages/arancini-react/rollup.config.js b/packages/arancini-react/rollup.config.js index 4814c555..7ecf4004 100644 --- a/packages/arancini-react/rollup.config.js +++ b/packages/arancini-react/rollup.config.js @@ -28,7 +28,7 @@ const babelOptions = { export default [ { input: `./src/index.tsx`, - external: ['@arancini/core', 'react', 'react-dom'], + external: ['@arancini/core', 'react', 'react-dom', 'react/jsx-runtime'], output: [ { file: `dist/index.mjs`,