'esnext'--syntax <value> (repeatable, e.g. --syntax es2018 or --syntax="node 14" --syntax="Chrome 103")Configure the syntax to which JavaScript and CSS will be downgraded.
See Output Compatibility - Syntax Downgrade for more details.
You can set the ECMAScript version directly, such as es2015, es2022, etc.
You can also set the Browserslist query, such as last 2 versions, > 1%, node >= 16, chrome >= 80, etc.
You can also mix ECMAScript version and Browserslist query, such as es2015 and node 20. Rslib will turn ECMAScript Version into Browserslist query, and then merge them together.