From b75ce7af45c94f23409931d760c5a0d9d1d89565 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 21 Nov 2022 08:18:08 +0530 Subject: [PATCH] Update .vite/build.ts Co-authored-by: Alois Klink --- .vite/build.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vite/build.ts b/.vite/build.ts index 07b20a385..1be46ad5a 100644 --- a/.vite/build.ts +++ b/.vite/build.ts @@ -80,6 +80,8 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions) ); // Core build is used to generate file without bundled dependencies. // This is used by downstream projects to bundle dependencies themselves. + // Ignore dependencies and any dependencies of dependencies + // Adapted from the RegEx used by `rollup-plugin-node` external.push(new RegExp('^(?:' + Object.keys(dependencies).join('|') + ')(?:/.+)?$')); // This needs to be an array. Otherwise vite will build esm & umd with same name and overwrite esm with umd. output = [