feat(core): 导出version,兼容mobx
This commit is contained in:
parent
eb5cb8237b
commit
ec34490202
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue