vue2.7-jsx-esbuild
v1.0.2
Published
vue2 tsx jsx for esbuild-loader
Downloads
4
Readme
vue2-jsx-esbuild
work with vue2-jsx-esbuild, and just for vue2 jsx
How To Use
at first, you have to use jsx in vue2 and esbuild-loader in webpack
in webpack rules
...
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'esbuild-loader',
options: {
loader: 'jsx',
jsxFactory: 'vue2JsxEsbuild',
target: 'es2015'
},
}
}
]
}
...
in webpack plugins
plugins: [
new webpack.ProvidePlugin({
vue2JsxEsbuild: ["vue2-jsx-esbuild", "default"]
})
]