From db85c86827ba5c0236721fc0078e328752222cdd Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Fri, 26 Jul 2024 17:32:28 +0800 Subject: [PATCH] feat(runtime): add directive runtime (#1784) --- examples/sites/playground/App.vue | 1 + internals/cli/src/commands/build/build-runtime.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/examples/sites/playground/App.vue b/examples/sites/playground/App.vue index 86e0cf3b0..40bd9665d 100644 --- a/examples/sites/playground/App.vue +++ b/examples/sites/playground/App.vue @@ -49,6 +49,7 @@ const createImportMap = (version) => { '@opentiny/vue-icon': `${getRuntime(version)}tiny-vue-icon.mjs`, '@opentiny/vue-locale': `${getRuntime(version)}tiny-vue-locale.mjs`, '@opentiny/vue-common': `${getRuntime(version)}tiny-vue-common.mjs`, + '@opentiny/vue-directive': `${getRuntime(version)}tiny-vue-directive.mjs`, '@opentiny/vue-theme/': `${cdnHost}/@opentiny/vue-theme${versionDelimiter}${version}/${fileDelimiter}`, '@opentiny/vue-theme-mobile/': `${cdnHost}/@opentiny/vue-theme-mobile${versionDelimiter}${version}/${fileDelimiter}`, '@opentiny/vue-renderless/': `${cdnHost}/@opentiny/vue-renderless${versionDelimiter}${version}/${fileDelimiter}`, diff --git a/internals/cli/src/commands/build/build-runtime.ts b/internals/cli/src/commands/build/build-runtime.ts index 6900bb4c4..3cde7f8d0 100644 --- a/internals/cli/src/commands/build/build-runtime.ts +++ b/internals/cli/src/commands/build/build-runtime.ts @@ -191,6 +191,10 @@ function getEntryTasks() { { path: 'vue-icon/index.ts', libPath: 'tiny-vue-icon' + }, + { + path: 'vue-directive/index.ts', + libPath: 'tiny-vue-directive' } ] return entry