@keithwang/keith-babel-jsx

1.0.7 • Public • Published

GitHub license webpack @babel/core @babel/plugin-transform-react-jsx

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

/@keithwang/keith-babel-jsx/

    Package Sidebar

    Install

    npm i @keithwang/keith-babel-jsx

    Weekly Downloads

    7

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    7.49 kB

    Total Files

    4

    Last publish

    Collaborators

    • keithwang