Commit 21fe5f7
committed
Set up Vite build configuration and improve plugin exports
Added `vite.config.ts` to configure Vite for building a library with multiple entry points and CommonJS compatibility. Updated TypeScript runtime plugin to use named and default exports for backward compatibility.
- Added `vite.config.ts` with multiple entry points, TypeScript type declarations generation, and Rollup options for external dependencies.
- Changed `TsRuntimePickerVitePlugin` to use named and default exports for compatibility.
- Updated `package.json` build script to use Vite instead of plain `tsc`.1 parent 575a0f3 commit 21fe5f7
1 file changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
0 commit comments