@keithwang/keith-babel-jsx
v1.0.7
Published
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/KeithWang2019/Keith-Babel-JSX/blob/master/LICENSE) [![webpack](https://img.shields.io/badge/webpack-%5E5.74.0-green)](#) [![@babel/core](https://img.shields.io/bad
Downloads
19
Maintainers
Readme
Keith-Babel-JSX
什么是Keith-Babel-JSX
Keith-Babel-JSX是一套转译代码,通过对JSX转译成对应的Keith-Core虚拟对象,Keith-Core负责渲染。
引用方式
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
plugins: [
[
"@babel/plugin-transform-react-jsx",
{
runtime: "automatic",
importSource: "@keithwang/keith-babel-jsx",
},
],
],
},
},
}
完整参考
代码结构与工程Keith-Demo