feat(core): 导出version,兼容mobx

This commit is contained in:
huangxuan 2024-04-02 09:51:58 +08:00
parent eb5cb8237b
commit ec34490202
No known key found for this signature in database
GPG Key ID: E79F50C67022565D
1 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,8 @@ import {
import { syncUpdates as flushSync } from './renderer/TreeBuilder'; import { syncUpdates as flushSync } from './renderer/TreeBuilder';
import { toRaw } from './inulax/proxy/ProxyHandler'; import { toRaw } from './inulax/proxy/ProxyHandler';
const version = __VERSION__;
const Inula = { const Inula = {
Children, Children,
createRef, createRef,
@ -122,9 +124,9 @@ const Inula = {
Profiler, Profiler,
StrictMode, StrictMode,
Suspense, Suspense,
version,
}; };
export const version = __VERSION__;
export { export {
Children, Children,
createRef, createRef,
@ -178,6 +180,7 @@ export {
Profiler, Profiler,
StrictMode, StrictMode,
Suspense, Suspense,
version,
}; };
export * from './types'; export * from './types';