Skip to content

Commit 11fdb3c

Browse files
authored
fix(feedback): Fix __self and __source attributes on feedback nodes (#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.
1 parent e75bcb8 commit 11fdb3c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/feedback/rollup.bundle.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default [
1515
jsxPragma: 'h',
1616
jsxFragmentPragma: 'Fragment',
1717
jsxRuntime: 'classic',
18+
production: true,
1819
},
1920
}),
2021
),
@@ -30,6 +31,7 @@ export default [
3031
jsxPragma: 'h',
3132
jsxFragmentPragma: 'Fragment',
3233
jsxRuntime: 'classic',
34+
production: true,
3335
},
3436
}),
3537
),

packages/feedback/rollup.npm.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default makeNPMConfigVariants(
2020
jsxPragma: 'h',
2121
jsxFragmentPragma: 'Fragment',
2222
jsxRuntime: 'classic',
23+
production: true,
2324
},
2425
}),
2526
);

0 commit comments

Comments
 (0)