From e5adc6b04c7397e94e2601dc0efb0d654a7cb035 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 Sep 2022 18:09:13 +0800 Subject: [PATCH] fix: generated code include vite code close #47 --- script/build.mts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/build.mts b/script/build.mts index 750b7bf..26d6365 100644 --- a/script/build.mts +++ b/script/build.mts @@ -32,7 +32,9 @@ const build = (format: Format) => { outExtension: { ['.js']: format === 'esm' ? '.mjs' : '.js' }, - external: Object.keys(pkg.dependencies) + external: Object.keys(pkg.dependencies).concat( + Object.keys(pkg.peerDependencies) + ) }) }