From 0cb7fe12cff4fceae9b65ff93f7305c74bacca92 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Tue, 23 Jan 2024 12:02:16 +0900 Subject: [PATCH] docs: fix extension loader mistake --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 60e0152..7f7fb34 100644 --- a/README.md +++ b/README.md @@ -71,12 +71,12 @@ Here's an example of how to set it up in your `webpack.config.js`: In this setup, esbuild will automatically determine how to handle each file based on its extension: - `.js` files will be treated as JS (no JSX allowed) -- `.jsx` & `.tsx` files as JSX -- `.ts` as TS (no JSX allowed) +- `.jsx` as JSX +- `.ts` as TS (no TSX allowed) - `.tsx` as TSX -If you want to force a specific handler on different file extensions (e.g. to allow JSX in `.js` files), you can use the [`loader`](https://github.com/privatenumber/esbuild-loader/#loader) option: +If you want to force a specific loader on different file extensions (e.g. to allow JSX in `.js` files), you can use the [`loader` option](https://github.com/privatenumber/esbuild-loader/#loader): ```diff {