v2.5.0
Release v2.5.0
Features:
-
feat: report size and info after build
feat: 构建后报告文件大小和信息
-
feat: search server
feat: 对接搜索服务端
-
chore: fix README and license of doc-tools
chore: 修复 doc-tools 的 README 和 license 问题
-
feat: add hash for search index file
feat: 为索引文件增加哈希
-
docs(module-tools): modify [How to handle third-party dependencies] contents
docs(module-tools): 修改[第三方依赖处理]的内容
-
feat: optimize home page style
feat: 优化首页样式
-
refactor: merge build-config into scripts/build
refactor: 把 build-config 合并进 scripts/build
-
feat: optimize home layout
feat: 首页布局优化
-
support sideEffects config and change log level to info
支持sideEffects配置并将日志级别改为info
-
feat: support export config filed in mock file
feat: 支持从 mock 文件中导出 config
-
feat: add beforeBuild and afterBuild in doc plugin
feat: 在doc.plugin里面添加beforeBuild和afterBuild
-
feat: optimize polyfill bundle
feat: 优化 polyfill 产物
-
feat: support relative path in doc link
feat: 支持文档内部链接使用相对路径
-
feat: support bff handle complete server, include page render
feat: 支持 bff 处理整个服务,包括页面渲染
-
chore: modify package.json entry fields and build config
chore: 更改 package.json entry 字段以及构建配置
-
feat(builder): reduce recompile logs
feat(builder): 减少 recompile 日志数量
-
feat: pass origin bootstrap function to custom render
feat: 自定义渲染中传入原始 bootstrap 函数
-
refactor: refactor rules for static assets processing with rule.oneOf, reuse svg/font/image/media plugin
refactor: 使用 oneOf 重构静态资源处理规则 & 复用 svg / font / media / img 插件
-
feat: support NoSSR component fallback UI
feat: 支持 NoSSR 组件 fallback UI
-
fix: add types field for @modern-js/runtime
fix: 为 @modern0js/runtime 添加 types 字段
-
chore: bump caniuse-lite to latest version
chore: 升级 caniuse-lite 到最新版
-
feat: add useLang hook
feat: 增加 useLang 钩子
-
feat: support image zoom
feat: 支持图片点击放大
-
chore(doc-core): use logger module to print log
chore(doc-core): 使用统一的 logger 模块来输出日志
-
feat: ssr support deploy worker
feat: ssr 支持边缘部署
-
feat: update codesmith version
feat: 更新 codesmith 版本
-
feat: support preview command
feat: 支持预览命令
-
feat(builder): support mergeConfig util in tools.webpack
feat(builder): 支持在 tools.webpack 中使用 mergeConfig 工具函数
-
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): 支持自定义路由创建函数
-
chore: update README and description of module-tools packages
chore: 更新 module-tools 相关包的 README 和 description
-
feat(builder): enable postcss plugins based on browserslist
feat(builder): 基于 browserslist 来启用需要的 postcss 插件
-
feat: support force csr config
feat: 支持强制 CSR 的配置
Bug Fix:
-
fix(builder): should not generate HTML for service-worker target
fix(builder): 修复 target 为 service-worker 时会生成 HTML 的问题
-
fix: use a more correctly params to cal document file
fix: 使用更准确的参数去获取 docuemnt 文件
-
fix(builder): should not open startUrl multiple times
fix(builder): 修复 startUrl 被重复打开的问题
-
fix(doc-core): remove default lang prefix from URL
fix(doc-core): 移除 URL 中的默认语言前缀
-
fix(builder-plugin-swc): properly handle transform error in loader
fix(builder-plugin-swc): 处理 loader 中的编译异常
-
fix(builder-webpack-provider): correct mistaken compilerOptions usage in ts-loader options
fix(builder-webpack-provider): 改正 ts-loader options 中错误的 compilerOptions
-
fix: add build:watch and remove test scripts
fix: 新增build:watch和移除test脚本
-
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\u003echore: 序列化react-router-dom ssr 的数据,避免html标签语义冲突。例如当json数据中包含
</script>的时候会被转换成\u003c/script\u003e -
fix: support windows
fix: 兼容 windows 系统路径
-
fix: the
@modern-js/app-toolshooks should setwebpackas default type.fix:
@modern-js/app-toolshooks 应该将 'webpack' 设置为默认类型 -
fix: home page title
fix: 修复首页标题
-
fix: ts-node should compile scopeDir only
fix: ts-node 应该只编译 scopeDir 的文件
-
fix(plugin-storybook): remove dist dir when modern build
fix(plugin-storybook): 当执行 modern build 后,移除产物目录
-
fix(doc-core): hash error
fix(doc-core): 链接 hash 值错误
-
fix: avoid do not get provider when in micro-frontend mode
避免微前端模式下 provider 获取不到
-
fix(doc-core): failed to custom Theme.Layout
fix(doc-core): 修复自定义 Theme.Layout 不生效的问题
-
fix: ssg new Headers() error
fix: 修复 ssg 渲染是 new Headers() 报错问题