umijs / dumi

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

fix: use define to inject SEARCH_WORKER_CODE instead of resourcequery dumi-raw #2161

Closed Jinbao1001 closed 4 months ago

Jinbao1001 commented 4 months ago

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

🔗 相关 Issue / Related Issue

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

mako 不支持 resolve '-!xxx', 导致 ?dumi-raw 被 umi default loader 处理 这里将 workerjs 通过 define 注入, 兼容两种 bundler

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English searchworker?dumi-raw skip default loader
🇨🇳 Chinese searchworker?dumi-raw 跳过后续默认的 loader 处理
vercel[bot] commented 4 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 Jul 4, 2024 7:44am