YaoApp / pro

Commercial components and contents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System modules

xgen运行环境提供如下预先注入的包,这些包在打包的时候可使用rollup的external排除掉,以减小产物体积。

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 })

About

Commercial components and contents.


Languages

Language:TypeScript 97.3%Language:JavaScript 2.7%