Skip to content

Commit

Permalink
fix(feedback): Fix __self and __source attributes on feedback nod…
Browse files Browse the repository at this point in the history
…es (#14356)

This fixes an issue with sucrase build output where it adds `__self` and
`__source` attributes to DOM nodes.

This seems to [only affect
JSX](https://github.com/alangpierce/sucrase#jsx-options), which AFAIK
only the feedback package uses.
  • Loading branch information
billyvg authored Nov 19, 2024
1 parent e75bcb8 commit 11fdb3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/feedback/rollup.bundle.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default [
jsxPragma: 'h',
jsxFragmentPragma: 'Fragment',
jsxRuntime: 'classic',
production: true,
},
}),
),
Expand All @@ -30,6 +31,7 @@ export default [
jsxPragma: 'h',
jsxFragmentPragma: 'Fragment',
jsxRuntime: 'classic',
production: true,
},
}),
),
Expand Down
1 change: 1 addition & 0 deletions packages/feedback/rollup.npm.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default makeNPMConfigVariants(
jsxPragma: 'h',
jsxFragmentPragma: 'Fragment',
jsxRuntime: 'classic',
production: true,
},
}),
);

0 comments on commit 11fdb3c

Please sign in to comment.