@mybricks/cloud-com-loader

1.0.4 • Public • Published

@mybricks/cloud-com-loader

webpack编译时动态加载云组件

1.安装

npm i @mybricks/cloud-com-loader -D

2.配置

{
  test: /\.(jsx|tsx)$/,
  use: [
    ...{...},
    {
      loader: "@mybricks/cloud-com-loader",
      options: {
        tagName: "Mytag",
        defKeyword: "mydef",
        api: "https://xxx/xxx"
      }
    }
  ]
}

3.使用云组件

function App () {
  return (
    <Mytag
      mydef="test@1.0.0"
    />
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @mybricks/cloud-com-loader

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

683 kB

Total Files

81

Last publish

Collaborators

  • moyukai
  • zhuba-ahhh
  • tangxiaoxin
  • cocolbell
  • yingpengsha
  • z35635
  • letterletter
  • zeeker
  • jidan.wd
  • stuzhaoxing
  • leo306
  • godstream
  • leon_js
  • mybricks-group