Commit 747f62f
chore: tune tsdown configuration to reduce bundle size (#5)
* chore: tune tsdown configuration to reduce bundle size
* fix: resolve TypeScript path aliases in tsdown bundler
Modified the external function in tsdown configs to properly handle @/ path aliases:
- Added check to prevent @/ imports from being treated as external dependencies
- This allows tsdown to resolve these paths to actual file paths during bundling
- Applied to both @databricks/app-kit and @databricks/app-kit-ui packages
The issue was that the regex /^[^./]/ was marking all non-relative imports
(including @/ aliases) as external, preventing proper resolution.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Fabian Jakobs <[email protected]>
---------
Signed-off-by: Fabian Jakobs <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent d1e0808 commit 747f62f
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments