From 0ea734c2f35485f7c65a3a57ee4796c7fb710515 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Mon, 18 Nov 2024 22:20:06 -0500 Subject: [PATCH] fix(feedback): Fix `__self` and `__source` attributes on feedback nodes This fixes an issue with sucrase build output where it adds `__self` and `__source` attributes to DOM nodes. --- packages/feedback/rollup.bundle.config.mjs | 2 ++ packages/feedback/rollup.npm.config.mjs | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/feedback/rollup.bundle.config.mjs b/packages/feedback/rollup.bundle.config.mjs index 18343602562c..a5efc6140c06 100644 --- a/packages/feedback/rollup.bundle.config.mjs +++ b/packages/feedback/rollup.bundle.config.mjs @@ -15,6 +15,7 @@ export default [ jsxPragma: 'h', jsxFragmentPragma: 'Fragment', jsxRuntime: 'classic', + production: true, }, }), ), @@ -30,6 +31,7 @@ export default [ jsxPragma: 'h', jsxFragmentPragma: 'Fragment', jsxRuntime: 'classic', + production: true, }, }), ), diff --git a/packages/feedback/rollup.npm.config.mjs b/packages/feedback/rollup.npm.config.mjs index 2b4f6af2739c..c91c37ec84f8 100644 --- a/packages/feedback/rollup.npm.config.mjs +++ b/packages/feedback/rollup.npm.config.mjs @@ -20,6 +20,7 @@ export default makeNPMConfigVariants( jsxPragma: 'h', jsxFragmentPragma: 'Fragment', jsxRuntime: 'classic', + production: true, }, }), );