You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the JavaScript parser to understand JSX syntax so that parsing and minimization can operate on files that keep JSX in the final bundle.
723
+
724
+
Enable this option when you set the loader's JSX mode to "preserve" and want to defer the actual JSX transform to a later tool (for example, libraries that ship JSX output or rely on a custom JSX runtime).
725
+
726
+
```js title="rspack.config.mjs"
727
+
exportdefault {
728
+
module: {
729
+
parser: {
730
+
javascript: {
731
+
jsx:true,
732
+
},
733
+
},
734
+
},
735
+
};
736
+
```
737
+
738
+
:::warning
739
+
This option is experimental in Rspack and may change or be removed.
740
+
:::
741
+
716
742
### module.parser["javascript/auto"]
717
743
718
744
Parser options for `javascript/auto` modules, same as the [`javascript` parser options](#moduleparserjavascript).
0 commit comments