Modern.js is a web engineering system, including a web framework and a npm package solution.
MIT License
Bot releases are visible (Hide)
Published by caohuilin about 1 year ago
Published by caohuilin over 1 year ago
source.aliasStrategy
option by @chenjiahan in https://github.com/web-infra-dev/modern.js/pull/4225
$
in mdx file by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4234
html
dir by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4211
modifyRoutes
in SSR by @xuchaobei in https://github.com/web-infra-dev/modern.js/pull/4219
source.aliasStrategy
选项 由 @chenjiahan 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4225
$
字符时,mdx 内容扁平化结果异常 由 @sanyuan0704 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4234
modifyRoutes
执行时机 由 @xuchaobei 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4219
Published by caohuilin over 1 year ago
--no-need-install
params by @caohuilin{tailwindCSSPlugin}
but the named export is {tailwindcssPlugin}
by @ScriptedAlchemy in https://github.com/web-infra-dev/modern.js/pull/4162
--no-need-install
参数 由 @caohuilin 实现Published by caohuilin over 1 year ago
addPages
hook by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/4094
addPages
钩子新增的页面添加预览功能 由 @sanyuan0704 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4094
Published by caohuilin over 1 year ago
Published by caohuilin over 1 year ago
setAppContext
by @xuchaobei in https://github.com/web-infra-dev/modern.js/pull/4047
setAppContext
时, 获取最新的 App Context 进行合并 由 @xuchaobei 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4047
Published by caohuilin over 1 year ago
http-compression
can't handler stream http by @GiveMe-A-Name in https://github.com/web-infra-dev/modern.js/pull/4023
-server-loader.js
file change by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/4008
@remix-run/router
cjs instead of react-router-dom
by @zllkjc in https://github.com/web-infra-dev/modern.js/pull/4011
http-compression
不能处理 stream http 由 @GiveMe-A-Name 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4023
-server-loader.js
变化时触发 onServerChange 由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4008
@remix-run/router
的 cjs 导出代替 react-router-dom
由 @zllkjc 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/4011
Published by chenjiahan over 1 year ago
Published by caohuilin over 1 year ago
Published by github-actions[bot] over 1 year ago
builder serve
command by @chenjiahan in https://github.com/web-infra-dev/modern.js/pull/3867
builder serve
命令 由 @chenjiahan 实现, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/3867
Published by github-actions[bot] over 1 year ago
moidfyEntryImports
must run before htmlPartials
, by @GiveMe-A-NamegetCustomComponent
not found by @sanyuan0704 in https://github.com/web-infra-dev/modern.js/pull/3830
moidfyEntryImports
必须早于钩子 htmlPartials
运行,getCustomComponent
方法找不到,由 @sanyuan0704 实现,详情可查看 https://github.com/web-infra-dev/modern.js/pull/3830
Published by github-actions[bot] over 1 year ago
fix(prod-server): worker ssr should pass baseUrl & url by request.
fix(prod-server): worker ssr 通过 request 应该传递 baseUrl & url .
fix(builder): fix the misalignment of the dependencies version that fork-ts-checker-webpack-plugin and autoprefixer depends on
fix(builder): 修复 fork-ts-checker-webpack-plugin 和 autoprefixer 的依赖版本错位问题
fix(plugin-esbuild): set minify format to iife when target is web
fix(plugin-esbuild): 当 target 为 web 时,将压缩的 format 设置为 iife
fix(prod-server): the ssr render maybe get invalid url, like http:///
fix(prod-server): ssr 渲染函数可能获得非法 url, 类似 http:///
fix(doc-core): mdx flatten path resolve
fix(doc-core): mdx 文件扁平化过程中路径解析错误
Published by github-actions[bot] over 1 year ago
feat: ssr mode support async entry
feat: ssr 模式支持异步入口
fix(builder): output.copy not work in Rspack
fix(builder): output.copy 在 Rspack 构建时不生效
feat(builder): update rspack to 0.1.12
feat(builder): 升级 rspack 到 0.1.12 版本
feat(rspack-provider): support security.checkSyntax in Rspack
feat(rspack-provider): 在使用 Rspack 构建时支持 security.checkSyntax 配置项
refactor: guard react-router version consistency
refactor: 保证 react-router 相关包的版本一致性
feat(doc-core): add routes for addPages hook
feat(doc-core): 在 addPages 钩子中增加路由入参
chore: bump typescript to v5 in devDependencies
chore: 升级 devDependencies 中的 typescript 版本到 v5
feat: the runtime package export loadable_bundler_plugin
feat: runtime 包导出 loadable_bundler_plugin
feat(app-tools): add isFirstCompile param to afterDev hook
feat(app-tools): 为 afterDev 钩子增加 isFirstCompile 参数
feat(dev-server): enable gzip compression, add devServer.compress config
feat(dev-server): 默认启用 gzip 压缩,新增 devServer.compress 配置项
feat(builder): support output.disableTsChecker in Rspack
feat(builder): 在使用 Rspack 构建时支持 output.disableTsChecker 配置项
feat: update codesmith version
feat: 更新 codesmith 版本
chore: update reduck
chore: 更新 reduck
feat(doc-core): support space in code title
feat(doc-core): 代码块标题支持空格
feat(builder): support output.enableAssetManifest in Rspack
feat(builder): 在使用 Rspack 构建时支持 output.enableAssetManifest 配置项
feat: add doc medium-zoom plugin
feat: 增加 medium-zoom 插件
feat: support security.nonce for add nonce attribute on script tag
feat: 支持 security.nonce 配置,为 script 标签添加 nonce 属性
chore(deps): bump babel-related dependencies to latest version
chore(deps): 升级 babel 相关依赖到最新版本
fix: the proxy should not recreated when exists
fix: proxy server 不应该被重新创建当存在时
fix: generator get modern plugin version error
fix: 修复生成器获取插件版本错误
fix(doc-tools): src not found in medium-zoom plugin
fix(doc-tools): medium-zoom 插件中 src 找不到
fix(core): toolsType is overridden when install multiple solutions
fix(core): 修复安装多个 solutions 时 toolsType 被覆盖的问题
fix(builder): should not print file size of LICENSE.text
fix(builder): 打印文件体积时忽略 LICENSE.text
fix: remove micro generator bebel runtime dependencies
fix: 移除微生成器模板中的 bebel runtime 依赖
hotfix(rspack-provider): update Rspack and fix upgrade error
hotfix(rspack-provider): 升级 Rspack 并处理升级问题
fix(doc-core): sidebar link i18n
fix(doc-core): 修复侧边栏链接国际化问题
fix(plugin-sass): pollute the global.location
object
fix(plugin-sass): 污染全局对象 global.location
fix(doc-tools): medium-zoom plugin error in windows
fix(doc-tools): medium-zoom 插件在 windows 下报错
fix(dev-server): adjust hmr connection log level
fix(dev-server): 调整 hmr 连接的日志级别
fix: should only watch file-based routes changes
fix: 只有基于文件的路由(约定式路由)需要被监听变化
fix(builder): failed to disable html via htmlPlugin: false
fix(builder): 修复通过 htmlPlugin: false 无法禁用 html 的问题
fix(plugin-runtime): streaming ssr split chunk so that can't match SHELL_STREAM_END_MARK
fix(plugin-runtime): streaming ssr chunk 进行分割导致无法匹配 SHELL_STREAM_END_MARK
fix: fix @modern-js/utils
subpath exports
fix: 修复 @modern-js/utils
子路径导出
Published by github-actions[bot] over 1 year ago
chore(utils): move generateMetaTags method to builder-shared
chore(utils): 移动 generateMetaTags 方法到 builder-shared
feat(rspack-provider): update rspack to 0.1.11
feat(rspack-provider): 升级 rspack 相关依赖到 0.1.11
docs(main): optimize mobile adaptation
docs(main): 优化移动端适配
chore: optimize bundle size
chore: 优化打包体积
chore: remove @babel/runtime. add @swc/helper and enable externalHelper
config.
chore: 移除 @babel/runtime 依赖. 增加 @swc/helpers 依赖并且开启 externalHelpers
配置
feat: update internal build configs
feat: 更新内部构建配置
feat(app-tools): route.json add isStream
field.
feat(app-tools): route.json 添加 isStream
字段.
chore: add root and ensure vm path
chore: 添加root和确认虚拟模块路径
feat(mwa-generator): add a default browserslist config for new projects
feat(mwa-generator): 为新项目增加默认的 browserslist 配置
feat: 添加 output.tempDir 配置,支持单项目多配置同时启动
feat: add output.tempDir configuration, supports launching project with multiple config at the same time
fix(doc-core): external link normalize
fix(doc-core): 修复外部链接不规范的问题
fix(doc-core): link error when base url exsits
fix(doc-core): 修复存在 base url 时链接错误的问题
fix(tailwindcss): avoid unnecessary rebuild when running dev
fix(tailwindcss): 修复 dev 模式下不必要的重新构建
fix: worker ssr context lack some fields & worker ssr must have routerManifest.json
fix: worker ssr 上下文缺少一些字段,worker ssr 必须有 routerManifest.json 文件
fix: remove duplicate addRuntimeExports hook in @modern-js/core
fix: 删除 @modern-js/core 中重复的 addRuntimeExports hook
fix(app-tools): SVG default export type
fix(app-tools): 修复 SVG 默认导出的类型错误
Published by github-actions[bot] over 1 year ago
chore(deps): bump webpack from 5.76.2 to 5.82.1
chore(deps): 将 webpack 从 5.76.2 升级至 5.82.1
feat(doc-core): reduce 80% time of ssg
feat(doc-core): 减少 80% 的 ssg 时间
feat: support modifyRoutes hook for router v5
feat: 为 router v5 支持 modifyRoutes hook
fix(doc-core): make sidebar font-weight consistent
fix(doc-core): 使 sidebar 的 font-weight 保持一致
fix: config hook can't get nomarlized config
fix: config hook 不能拿到固定后的 config
fix(doc-core): props.children error in code component
fix(doc-core): 修复 code 组件中 props.children 不存在的错误
fix: packages generator overrides field when use npm
fix: 修复当使用 npm 安装依赖时 packages-generator overrides 字段
Published by github-actions[bot] over 1 year ago
fix: replace route id correctly
fix: 正确地替换 route id
feat(doc-core): add time logs for page rendering
feat(doc-core): 增加页面渲染的耗时日志
feat(doc-core): support react 17
feat(doc-core): 支持 react 17
feat(doc-core): use prism for code highlight
feat(doc-core): 代码高亮使用 prism
feat: code block support scroll,dark mode and improve the experience
feat: 代码块区域支持滚动以及暗黑模式并且提升开发体验
feat(rspack-provider): support tools.pug configuration when Rspack build
feat(rspack-provider): 在使用 Rspack 构建时支持 tools.pug 配置项
perf(builder): reduce map.get calls in tsconfigPathsPlugin
perf(builder): 减少 tsconfigPathsPlugin 中的 map.get 调用
feat: bump codesmith packages version
feat: 升级 codesmith 包版本
chore: fix libuild version
chore: 锁定 libuild 版本号
perf(builder): optimize stats.toJson performance
perf(builder): 优化 stats.toJson 性能
feat(rspack-provider): support legalComments linked
and none
configuration items when building with Rspack
feat(rspack-provider): 在使用 Rspack 构建时,支持 legalComments linked
和 none
配置项
feat: bump codesmith version
feat: 升级 codesmith 版本
feat(rspack-provider): update Rspack to 0.1.10
feat(rspack-provider): 升级 Rspack 相关依赖到 0.1.10
fix(module-tools, plugin-tailwindcss): fix style.tailwindcss
config name and merge logic
fix(module-tools, plugin-tailwindcss): 修复 style.tailwindcss
错误的配置名和合并逻辑
fix(builder): incorrect dynamicImportMode when target is web-worker
fix(builder): 修复 target 为 web-worker 时 dynamicImportMode 错误的问题
Published by github-actions[bot] over 1 year ago
feat(doc-core): doc support nav postion
feat(doc-core): doc 支持顶部菜单独立配置定位
refactor(node-polyfill): using Rspack builtins to provide global variables
refactor(node-polyfill): 通过 Rspack 内置的 provide 注入全局变量
chore: improve entry docs, fix ssg docs
chore: 优化入口文档,修复 ssg 文档
feat: rspack-provider support modern.js ssr mode
feat: rspack-provider 支持 modern.js ssr 模式
chore: update libuild version
chore: 更新 libuild 版本
feat(plugin-garfish): support garfish plugin in Rspack
feat(plugin-garfish): 在使用 Rspack 构建时支持 garfish 插件
feat(doc-plugin-auto-sidebar): allow to set collapsible option
feat(doc-plugin-auto-sidebar): 支持设置 collapsible 选项
fix(doc-core): none nav bar
fix(doc-core): 导航栏消失
Published by github-actions[bot] over 1 year ago
feat: add new modern.js doc support edit this page on github (#3527)
feat: 添加新的 modern.js 文档支持在 Github 上编辑此页面 (#3527)。
feat(doc-core): doc plugin system doc optimization
feat(doc-core): 文档框架插件机制文档优化
chore: comment the doc for runtime and server plugin hooks
chore: 注释 runtime 和 server 插件钩子文档
fix(doc-core): Nav top menu style issue (#3598)
fix(doc-core): Nav顶部菜单样式问题 (#3598)
fix(doc-core): alias react-dom
fix(doc-core): 内置 react-dom 别名
fix: code line highlight in js compiler
fix: js 版本编译器中代码行高亮问题
fix: fix runtime feature of Storybook
fix: 修复 Storybook 的 runtime 功能
fix: typo isFileExist
fix: isFileExist 拼写错误
fix(doc-tools): edit link should open a new tab
fix(doc-tools): edit link 应该打开一个新窗口
fix(doc-core): sidebar title not correct in dev
fix(doc-core): 开发环境下,侧边栏标题不正确
fix(doc-core): avoid ssg marker transform
fix(doc-core): 避免某些特殊字符转换为 marker 字符
fix: use dynamic import doc-core
fix: 使用动态引用 doc-core
fix(doc-core): The 960px-1440px and 1440px center container widths do not include the width of the scroll bar to avoid horizontal scroll bars
fix(doc-core): 960px-1440px和1440px版心容器宽度不包含滚动条宽度,避免出现横向滚动条
fix: use mergeDocConfig to merge modern doc config
fix: 支持 mergeDocConfig 合并 modern doc的配置
Published by github-actions[bot] over 1 year ago
feat(doc-core): auto i18n
feat(doc-core): 自动化 i18n
feat: generator plugin support ejs template
feat: 生成器插件支持 ejs 模板