https://github.com/yaoapp/pro
Commercial components and contents.
https://github.com/yaoapp/pro
Last synced: 2 months ago
JSON representation
Commercial components and contents.
- Host: GitHub
- URL: https://github.com/yaoapp/pro
- Owner: YaoApp
- Created: 2023-04-03T07:15:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-12T08:38:59.000Z (over 1 year ago)
- Last Synced: 2025-02-16T08:27:48.338Z (4 months ago)
- Language: TypeScript
- Size: 253 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### System modules
xgen运行环境提供如下预先注入的包,这些包在打包的时候可使用rollup的external排除掉,以减小产物体积。
```tsx
import { Form, Input } from 'antd'
import { deepEqual } from 'fast-equals'
import * as Mobx from 'mobx'
import * as MobxReactLite from 'mobx-react-lite'
import React from 'react'
import ReactDom from 'react-dom'
import ReactDomClient from 'react-dom/client'
import JsxRuntime from 'react/jsx-runtime'
import * as Tsyringe from 'tsyringe'System.set('app:antd', { Input, Form })
System.set('app:fast-equals', { deepEqual })
System.set('app:tsyringe', { ...Tsyringe })
System.set('app:mobx', { ...Mobx })
System.set('app:mobx-react-lite', { ...MobxReactLite })
System.set('app:react', { default: React, __useDefault: true })
System.set('app:react/jsx-runtime', { ...JsxRuntime })
System.set('app:react-dom', { default: ReactDom, __useDefault: true })
System.set('app:react-dom/client', { default: ReactDomClient, __useDefault: true })
```