Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release v2.5.0
Features:
#2843
feat: report size and info after build
feat: 构建后报告文件大小和信息
#2845
feat: search server
feat: 对接搜索服务端
#2911
chore: fix README and license of doc-tools
chore: 修复 doc-tools 的 README 和 license 问题
#2889
feat: add hash for search index file
feat: 为索引文件增加哈希
#2907
docs(module-tools): modify [How to handle third-party dependencies] contents
docs(module-tools): 修改[第三方依赖处理]的内容
#2906
feat: optimize home page style
feat: 优化首页样式
#2917
refactor: merge build-config into scripts/build
refactor: 把 build-config 合并进 scripts/build
#2856
feat: optimize home layout
feat: 首页布局优化
#2826
support sideEffects config and change log level to info
支持sideEffects配置并将日志级别改为info
#2813
feat: support export config filed in mock file
feat: 支持从 mock 文件中导出 config
#2861
feat: add beforeBuild and afterBuild in doc plugin
feat: 在doc.plugin里面添加beforeBuild和afterBuild
#2884
feat: optimize polyfill bundle
feat: 优化 polyfill 产物
#2913
feat: support relative path in doc link
feat: 支持文档内部链接使用相对路径
#2881
feat: support bff handle complete server, include page render
feat: 支持 bff 处理整个服务,包括页面渲染
#2920
chore: modify package.json entry fields and build config
chore: 更改 package.json entry 字段以及构建配置
#2859
feat(builder): reduce recompile logs
feat(builder): 减少 recompile 日志数量
#2847
feat: pass origin bootstrap function to custom render
feat: 自定义渲染中传入原始 bootstrap 函数
#2704
refactor: refactor rules for static assets processing with rule.oneOf, reuse svg/font/image/media plugin
refactor: 使用 oneOf 重构静态资源处理规则 & 复用 svg / font / media / img 插件
#2844
feat: support NoSSR component fallback UI
feat: 支持 NoSSR 组件 fallback UI
#2895
fix: add types field for @modern-js/runtime
fix: 为 @modern0js/runtime 添加 types 字段
#2865
chore: bump caniuse-lite to latest version
chore: 升级 caniuse-lite 到最新版
#2891
feat: add useLang hook
feat: 增加 useLang 钩子
#2892
feat: support image zoom
feat: 支持图片点击放大
#2859
chore(doc-core): use logger module to print log
chore(doc-core): 使用统一的 logger 模块来输出日志
#2794
feat: ssr support deploy worker
feat: ssr 支持边缘部署
#2894
feat: update codesmith version
feat: 更新 codesmith 版本
#2858
feat: support preview command
feat: 支持预览命令
#2878
feat(builder): support mergeConfig util in tools.webpack
feat(builder): 支持在 tools.webpack 中使用 mergeConfig 工具函数
#2838
feat: more use bunlder chain to modify bundler config
feat: 更多的使用
bunlder chain
去修改 bunlder 配置feat(plugin-router-v5): support custom create router function
feat(plugin-router-v5): 支持自定义路由创建函数
#2912
chore: update README and description of module-tools packages
chore: 更新 module-tools 相关包的 README 和 description
#2875
feat(builder): enable postcss plugins based on browserslist
feat(builder): 基于 browserslist 来启用需要的 postcss 插件
#2822
feat: support force csr config
feat: 支持强制 CSR 的配置
Bug Fix:
#2876
fix(builder): should not generate HTML for service-worker target
fix(builder): 修复 target 为 service-worker 时会生成 HTML 的问题
#2890
fix: use a more correctly params to cal document file
fix: 使用更准确的参数去获取 docuemnt 文件
#2860
fix(builder): should not open startUrl multiple times
fix(builder): 修复 startUrl 被重复打开的问题
#2916
fix(doc-core): remove default lang prefix from URL
fix(doc-core): 移除 URL 中的默认语言前缀
#2900
fix(builder-plugin-swc): properly handle transform error in loader
fix(builder-plugin-swc): 处理 loader 中的编译异常
#2839
fix(builder-webpack-provider): correct mistaken compilerOptions usage in ts-loader options
fix(builder-webpack-provider): 改正 ts-loader options 中错误的 compilerOptions
#2877
fix: add build:watch and remove test scripts
fix: 新增build:watch和移除test脚本
#2828
chore: serialize react-router-dom ssr data, avoid the syntax conflict with HTML. Such as when json data contains
</script>
will be stringify to\u003c/script\u003e
chore: 序列化react-router-dom ssr 的数据,避免html标签语义冲突。例如当json数据中包含
</script>
的时候会被转换成\u003c/script\u003e
#2914
fix: support windows
fix: 兼容 windows 系统路径
#2835
fix: the
@modern-js/app-tools
hooks should setwebpack
as default type.fix:
@modern-js/app-tools
hooks 应该将 'webpack' 设置为默认类型#2915
fix: home page title
fix: 修复首页标题
#2866
fix: ts-node should compile scopeDir only
fix: ts-node 应该只编译 scopeDir 的文件
#2908
fix(plugin-storybook): remove dist dir when modern build
fix(plugin-storybook): 当执行 modern build 后,移除产物目录
#2880
fix(doc-core): hash error
fix(doc-core): 链接 hash 值错误
#2869
fix: avoid do not get provider when in micro-frontend mode
避免微前端模式下 provider 获取不到
#2886
fix(doc-core): failed to custom Theme.Layout
fix(doc-core): 修复自定义 Theme.Layout 不生效的问题
#2850
fix: ssg new Headers() error
fix: 修复 ssg 渲染是 new Headers() 报错问题