From a49cbcd1ecd73cdf71919d90391626cf20393b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E7=AB=9E=E9=93=AD?= Date: Thu, 1 Jun 2023 10:33:22 +0800 Subject: [PATCH] feat: dirs add `exportAllByFileName` config (#388) --- playground/App.vue | 13 ++++++--- playground/utils/foo.ts | 3 ++ playground/utils/nested/bar.ts | 3 ++ playground/vite.config.ts | 5 +++- src/core/ctx.ts | 50 ++++++++++++++++++++++++++++------ src/core/unplugin.ts | 4 +-- src/types.ts | 7 ++++- 7 files changed, 68 insertions(+), 17 deletions(-) create mode 100644 playground/utils/foo.ts create mode 100644 playground/utils/nested/bar.ts diff --git a/playground/App.vue b/playground/App.vue index 2bcbb3fd..d8625151 100644 --- a/playground/App.vue +++ b/playground/App.vue @@ -2,8 +2,11 @@ import HelloWorld from './HelloWorld.vue' ElMessage.warning('Test') -const foo = useFoo() -const bar = useBar() +const composableFoo = useFoo() +const composableBar = useBar() + +const utilsFoo = foo.useFoo() +const utilsBar = bar.useBar()