From 6de73df92e6ea9b7f5f7865d48883f06d6df3f3a Mon Sep 17 00:00:00 2001 From: nojaf Date: Thu, 26 Jun 2025 17:36:01 +0200 Subject: [PATCH] Add sample to reproduce --- tests/tests/src/jsx_preserve_custom_module.res | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/tests/src/jsx_preserve_custom_module.res diff --git a/tests/tests/src/jsx_preserve_custom_module.res b/tests/tests/src/jsx_preserve_custom_module.res new file mode 100644 index 0000000000..111e2c40de --- /dev/null +++ b/tests/tests/src/jsx_preserve_custom_module.res @@ -0,0 +1,16 @@ +@@config({ + flags: ["-bs-jsx", "4", "-bs-jsx-preserve", "-bs-jsx-module", "Custom"], +}) + +module Custom = { + type component<'props> = Jsx.component<'props> + type element = Jsx.element + + external jsx: (component<'props>, 'props) => element = "jsx" + + type fragmentProps = {children?: element} + + external jsxFragment: component = "Fragment" +} + +let _fragment = <> {Jsx.string("Hello, world!")}