You can read more about the available configuration options in the API documentation. js files instead, you can tell esbuild to allow this using the -loader.js=jsx flag. While esbuild can be configured, it attempts to have reasonable defaults so that many common situations work automatically. Notice that esbuild also converted JSX syntax to JavaScript without any configuration other than the. If you run the code using node out.js, you should see something like this: Hello, world! The code is completely self-contained and no longer depends on your node_modules directory. This should have created a file called out.js containing your code and the React library bundled together. \node_modules\.bin\esbuild app.jsx -bundle -outfile=out.js node_modules/.bin/esbuild app.jsx -bundle -outfile=out.js.
0 Comments
Leave a Reply. |