From 5b758756843bec10961f48de5dec3ba77c456e90 Mon Sep 17 00:00:00 2001 From: Paul Wheeler Date: Wed, 9 Oct 2024 13:15:04 -1000 Subject: [PATCH] Enable rollupTypes in the vite build configuration. (#2714) This resolves issues with in dependent TypeScipt packages that are using moduleResolution: NodeNext Modern ES modules cannot use extensionless relative paths in imports. --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index e5d830db50..e36159a0bd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,7 +7,9 @@ import { nodePolyfills } from "vite-plugin-node-polyfills"; export default defineConfig({ plugins: [ tsconfigPaths(), - dts(), + dts({ + rollupTypes: true + }), nodePolyfills({ exclude: [], globals: {