Open liangyi-h5 opened 3 months ago
-- The JSX syntax extension is not currently enabled -- The esbuild loader for this file is currently set to "js" but it must be set to "jsx" to be able to parse JSX syntax. You can use "loader: { '.js': 'jsx' }" to do that
Minimum demo
demo
It has been taken care of. The @vue/compiler-sfc plug-in needs to be added, but there will be problems.
Use this plug-in to solve plugin-vue2-jsx-vite5
-- The JSX syntax extension is not currently enabled -- The esbuild loader for this file is currently set to "js" but it must be set to "jsx" to be able to parse JSX syntax. You can use "loader: { '.js': 'jsx' }" to do that