umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

refactor: liveDemo context no longer uses require for imports #2187

Closed Jinbao1001 closed 3 months ago

Jinbao1001 commented 3 months ago

🤔 这个变动的性质是?/ What is the nature of this change?

🔗 相关 Issue / Related Issue

2185

2183

💡 需求背景和解决方案 / Background or solution

修改cjs resolve 存在太多问题, 这里不再改变用户源码导入规则. 遗留action: 目前全部采用import * as 导入, webpackmakointerop 的处理目前来看存在差异, 之后遇到了再解决.

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English liveDemo context no longer uses require for imports
🇨🇳 Chinese liveDemo context 不再使用require 导入替换用户源码imports
vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 11:40am