@unreals/vue2-jsx-esbuild
v1.2.1
Published
vue2 jsx for esbuild-loader
Downloads
2
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"]
})
]