From a4afa98f665fd30043b1633b610d319ef8e5d8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?chencheng=20=28=E4=BA=91=E8=B0=A6=29?= Date: Mon, 5 Dec 2022 12:08:03 +0800 Subject: [PATCH] feat(plugins/valtio): add derive export (#9951) --- libs/valtio/package.json | 2 +- libs/valtio/src/index.ts | 1 + packages/plugins/src/valtio.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/valtio/package.json b/libs/valtio/package.json index fd754acc0173..6fcfb51d6f8b 100644 --- a/libs/valtio/package.json +++ b/libs/valtio/package.json @@ -1,6 +1,6 @@ { "name": "@umijs/valtio", - "version": "1.0.0", + "version": "1.0.1", "description": "", "keywords": [], "homepage": "https://github.com/umijs/umi/tree/master/libs/valtio", diff --git a/libs/valtio/src/index.ts b/libs/valtio/src/index.ts index b9d2d1ec2602..8e08e7cec2bc 100644 --- a/libs/valtio/src/index.ts +++ b/libs/valtio/src/index.ts @@ -5,6 +5,7 @@ export { devtools as proxyWithDevtools, proxyMap, proxySet, + derive, } from 'valtio/utils'; // TODO: diff --git a/packages/plugins/src/valtio.ts b/packages/plugins/src/valtio.ts index 1cd6b140af2a..c2ba01a6d6e5 100644 --- a/packages/plugins/src/valtio.ts +++ b/packages/plugins/src/valtio.ts @@ -32,6 +32,7 @@ export { proxyWithDevtools, proxyMap, proxySet, + derive, } from '${libPath}'; `, });