Skip to content

Commit

Permalink
Enable rollupTypes in the vite build configuration. (#2714)
Browse files Browse the repository at this point in the history
This resolves issues with in dependent TypeScipt packages that are using moduleResolution: NodeNext
Modern ES modules cannot use extensionless relative paths in imports.
  • Loading branch information
sflanker authored Oct 9, 2024
1 parent 28029f4 commit 5b75875
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
plugins: [
tsconfigPaths(),
dts(),
dts({
rollupTypes: true
}),
nodePolyfills({
exclude: [],
globals: {
Expand Down

0 comments on commit 5b75875

Please sign in to comment.