1.0.7 • Published 2 years ago
@keithwang/keith-babel-jsx v1.0.7
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