0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

fix: fix rollup compiling with bundle externals (#3098)

Hello, team, i found a bug with mastra build command,

![image](https://github.com/user-attachments/assets/9280b655-6bf7-449d-94fc-1419534175e6)
The bug is caused by this section:

![image](https://github.com/user-attachments/assets/37fc8afd-1817-43ca-a79e-581e950ebfe6)
If a third party package imported by the way 'import dep from 'dep'',it
should be converted to "export { default } from ${dep}",
In my case, the package 'axios' and 'postgres' all imported with default
mode.

---------

Signed-off-by: zongzheng <304389312@qq.com>
Co-authored-by: Ward Peeters <ward@coding-tech.com>
This commit is contained in:
Daniel Zong 2025-03-21 16:54:37 +08:00 • committed by GitHub
commit 709aa2c777
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions