From 595c16ace27468e39de6ed2e7783e7e2973a4493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 16 Oct 2024 18:46:14 +0200 Subject: [PATCH] externalize pl-api deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-api/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/pl-api/vite.config.ts b/packages/pl-api/vite.config.ts index 79e513c5f7..0928cfc7a3 100644 --- a/packages/pl-api/vite.config.ts +++ b/packages/pl-api/vite.config.ts @@ -3,6 +3,8 @@ import { resolve } from 'path'; import { defineConfig } from 'vite'; import dts from 'vite-plugin-dts'; +import pkg from './package.json'; + export default defineConfig({ plugins: [dts({ include: ['lib'], insertTypesEntry: true })], build: { @@ -15,5 +17,8 @@ export default defineConfig({ }, target: 'esnext', sourcemap: true, + rollupOptions: { + external: Object.keys(pkg.dependencies), + }, }, });