-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Description
Is there any options to config the target of esbuild? I want to compile code to es5 to be compatible with more browsers.
// ./src/assets/test.jsx
ReactDOM.render(
<div>Hello world</div>,
document.querySelector('#root')
);
// ./dist/assets/test.js
(() => { // <- Here is ES6 arrow function
// assets/test.jsx
ReactDOM.render(/* @__PURE__ */ React.createElement("div", null, "Hello world"), document.querySelector("#root"));
})();
Metadata
Metadata
Assignees
Labels
No labels