Skip to content
Myr

vite.config.ts

This file

Path

adapters/lambda-edge/vite.config.ts

17 lines · 438 bytes · TypeScript

Last changed by

fix(build): keep internal types private in bundled d.ts and avoid a self-referencing JSX.IntrinsicElements (#5485)Yusuke Wadabefore adoptionbe1f749

History of this file

Take it

feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827

line 1why, one step back
1import { defineConfig } from 'vite-plus'

fix(build): keep internal types private in bundled d.ts and avoid a self-referencing JSX.IntrinsicElements (#5485)Yusuke Wadabefore adoptionbe1f749

line 2why, one step back
2import { appendExportEmptyToDts } from '../../build/dts-plugins'

feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827

lines 3–10why, one step back
3
4export default defineConfig({5 pack: {6 entry: ['src/**/*.ts', '!src/**/*.test.ts', '!src/**/*.d.ts'],7 tsconfig: 'tsconfig.json',8 unbundle: true,9 format: ['esm'],10 dts: true,

fix(build): keep internal types private in bundled d.ts and avoid a self-referencing JSX.IntrinsicElements (#5485)Yusuke Wadabefore adoptionbe1f749

line 11why, one step back
11 plugins: [appendExportEmptyToDts],

feat(adapters): add the seven adapters as workspace packages (#5463)Yusuke Wadabefore adoptionb877827

lines 12–17why, one step back
12 outExtensions: () => ({ js: '.js', dts: '.d.ts' }),
13 },14 test: {15 globals: true,16 },17})