打包支持nodejs模块
This commit is contained in:
@@ -55,7 +55,7 @@ export function Serializable(config?: Partial<SnapshotConfig>) {
|
||||
*
|
||||
* 用于配置组件的快照行为
|
||||
*/
|
||||
export function SnapshotConfig(config: SnapshotConfig) {
|
||||
export function SnapshotConfigDecorator(config: SnapshotConfig) {
|
||||
return function (target: any) {
|
||||
target.prototype.snapshotConfig = config;
|
||||
};
|
||||
|
||||
@@ -14,6 +14,6 @@ export { SnapshotManager } from './SnapshotManager';
|
||||
export {
|
||||
ISnapshotExtension,
|
||||
Serializable,
|
||||
SnapshotConfig as SnapshotConfigDecorator,
|
||||
SnapshotConfigDecorator,
|
||||
SnapshotExtension
|
||||
} from './SnapshotExtension';
|
||||
Reference in New Issue
Block a user