杨兆雨
杨兆雨
> 测试 hello
@antfu You look up [connect-history-api-fallback](https://github.com/bripkens/connect-history-api-fallback/blob/main/lib/index.js) line 82, when it doesn't match When it comes to rewrite, it will redirect req.url to /index.html 
 我们组里边的这个项目体量是22年从webpack迁移到 vite 后,基于vite做了个类似vue-cli的脚手架,无缝迁移适配公司所有的项目。首屏的性能大概是30s(还是得看本机的性能,因为预构建的esbuild)。后来经排查导致慢的有几种原因: 一、装饰器(esbuild支持ts装饰器,不支持js装饰器),然后使用babel在vite transform时做了层转义,但是在vite插件加上babel后相当于对项目全部的js、ts转译,然后又做了个匹配规则的处理,只对指定的目录、文件进行转译,首屏大概到了15s 二、less语法,现在比价普遍的css预编译器,但是发现在vite运行时转译less语法比转译sfc的速度还要慢,然后又决定贴近原生,使用css next 替换了less😂,然后又给首屏提升了速度。 三、前端模块还不够 "微",既然all in esm,那就一干到底,后来因为公司的项目运行模式,把所有项目都拆成了业务模块,统一入口导出业务组件,然后就是提供个运行平台,根据配置可以从业务模块入口拿页面组件组成路由运行,也是基于的importmap { imports:{ "business-A","://localhost:8001/index.js", "business-B","://localhost:8001/index.js" } } 相当于所有的业务模块都是按需的,然后业务模块也比较细,可变的不可变的,业务模块并行构建也就10s,共平台相当于就是个主应用,代码量更少,构建完3s。业务模块服务再配合后端的微服务一并部署,相当于前端整个构建也就10s😂(可能这才是真正的微前端吧) 最后,楼主可以加个V吗,交流交流
开发环境现在不支持使用filename去访问,目前filename只在build会使用
It has been troubled for several days, I hope someone can help me to solve it
> Can you invoke `protoc` by itself? Yes, it is possible to call protoc directly from the command line.
I'm guessing that maybe the terminal logs are not printing correctly, the actual file location is correct. 
Vite version 4.0 onwards brings the deprecated prompt. [[#9669] feat: align object interface for transformIndexHtml hook](https://github.com/vitejs/vite/issues/9669)
[feat: Adapt this pr](https://github.com/yzydeveloper/vite-plugin-mpa-plus/commit/91f5dd7c655898fcd9aa98814574dbb46acaa617) https://github.com/vitejs/vite/pull/9669