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 github-actions[bot] over 1 year ago
chore: fix module-tools doc startUrl not work
chore: 修复文档配置的 startUrl 未生效的问题
feat: global ui components
feat: 支持全局组件
chore: reuse splitChunks plugin between rspack-provider and webpack-provider
chore: 在 rspack-provider 和 webpack-provider 间复用 splitChunks plugin
feat: config file hmr
feat: 配置文件热更新
feat(builder): improve succeed and failed progress log
feat(builder): 优化编译成功或失败时的进度条效果
chore(builder): remove unused ajv schema types
chore(builder): 移除过时的 ajv 相关类型
update libuild version
升级libuild版本
feat: add watch hooks
feat: 添加 watch hooks
feat: optimize storybook eslint generator
feat: 优化 storybook 中 eslint 生成器配置
feat(core): support read modern.config.local.ts
feat(core): 支持读取 modern.config.local.ts 文件
feat: plugin define accept undefined
feat: define 插件的选项允许接受 undefined
feat: Remove the listening mode build task before Storybook starts
feat: 在 Storybook 启动之前,移除监听模式的构建任务
feat(builder): improve error logs of syntax checker
feat(builder): 优化 syntax 检查的错误日志
docs: optimiz module content
docs: 优化文档内容
feat: runtime package use treeshaking production for ssr bundle
feat: runtime 包使用 treeshaking 产物作为 ssr bundle 打包入口
fix: remove disableRunBuild
fix: 移除 disableRunBuild
feat: add builder check syntax plugin
feat: 新增 builder 兼容语法检测插件
docs: fix code symbol error
docs: 修复代码里符号的错误
feat: optimize js bundle in doc
feat: 优化 doc-tools 打包的 JS bundle 大小
chore: expose DocPlugin type
chore: 暴露 DocPlugin 类型
feat(rspack-builder): add rspack minimize plugin
feat(rspack-builder): 添加 rspack minimize 插件
fix: use pluginName instead of a steady name
修复 garfish 插件导出名称固定导致依赖找不到的问题
fix(doc-tools): config not updated after hmr
fix(doc-tools): 配置文件热更后数据未更新
fix(core): merge array config correctly
fix(core): 修复合并配置中的数组时出现错误的问题
fix: export problem
fix: 修复导出找不到的问题
fix: failed to exit new command
fix: 修复 new 命令执行完成后未退出进程的问题
fix: search not work when only add default lang in locales config
fix: 修复只配置了默认语言时搜索不生效的问题
fix(builder-shared): failed to open start URL in macOS
fix(builder-shared): 修复在 macOS 上打开 start URL 失败的问题
fix(doc-core): fix code color when inside a custom block
fix(doc-core): 修复自定义 block 中的 code 颜色错误
fix(@modern-js/builder-shared): openBrowser add openChrome.applescript script
fix(@modern-js/builder-shared): openBrowser 添加 openChrome.applescript 脚本
fix: .ejs is not a valid config file extension
fix: 修复配置文件使用 .ejs 作为后缀的问题
fix(utils): fix pre-bundled ajv types
fix(utils): 修复预打包后的 ajv 中的类型问题
fix umd code can not support es5 target
修复umd的代码不能被转换成es5的问题
fix: overview error caused by pages not found
fix: 大纲页面因 pages 数据找不到而报错
fix(doc-core): list item missing line-height
fix(doc-core): 修复列表中的选项缺少 line-height 的问题
fix(server): hmr protocol set error
fix(server): 修复 hmr protocol 配置错误问题
fix: use yarn not get right package version
fix: 修复使用 yarn 获取包版本失败问题
fix(builder): should not emit async chunk when target is web-worker
fix(builder): 修复 target 为 web-worker 时产物中出现 async chunk 的问题
fix: sidebar icon color
fix: 修复侧边栏 icon 背景色问题
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
feat(babel-plugin-base): compatible with antd v5
feat(babel-plugin-base): 适配 antd v5,不再注册 babel-plugin-import
chore: reuse rem AutoSetRootFontSizePlugin between rspack-provider and webpack-provider
chore: 在 rspack-provider 和 webpack-provider 间复用 rem AutoSetRootFontSizePlugin
chore: remove some unused deps, bump postcss version
chore: 移除未使用的依赖, 升级 postcss 版本
feat: support four features in home page
feat: 支持 4 个 feature 同行排列
feat: custom themeDir & NoSSR component
feat: 支持自定义 themeDir & NoSSR 组件
feat: add legacyDefineConfig function
feat: 添加 legacyDefeinConfig 函数
feat(doc-tools): export UserConfig and NavItem types
feat(doc-tools): 导出 UserConfig 和 NavItem 类型
not use 'npm-library' preset by default
默认不会使用 'npm-library' 预设
feat: optimize withBase api to avoid duplicate base
feat: 优化 withBase api,避免重复添加 base
feat: doc layout optimize
feat: 优化文档页面布局,避免正文内容闪烁
chore(devServer): make hmr client protocol configurable
chore(devServer): 支持配置 hmr client protocol
feat(builder): support port placeholder in dev.startUrl config
feat(builder): 支持在 dev.startUrl 配置项中使用端口号占位符
docs(Builder): fix some keyword is replaced incorrectly
docs(Builder): 修复个别关键词被错误替换的问题
template add buildPreset
模板里添加buildPreset配置
chore: adjust builder plugin name
chore: 调整 builder 插件命名格式
feat: modern-js/core
can watch files change
feat: modern-js/core
可以监听文件变化
feat: generator template upgrade node version to 16
feat: 生成器模板升级 node 版本到 16
docs: modify data loader usage in the guide
docs: 修改指南中 data loader 的用法
fix(app-tools): dev --entry not work
fix(app-tools): 修复 dev --entry 参数不生效的问题
fix: doc-core bundle
fix: 修复 doc-core 产物报错问题
fix: prev-next data is empty
fix: 解决上一页下一页数据为空的问题
fix(utils): bump json5 to fix security issue
fix(utils): 升级 json5 以修复安全问题
fix(doc-core): remove duplicate base URL
fix(doc-core): 修复 base URL 重复添加的问题
fix(prod-server): failed to match html inside config/public directory
fix(prod-server): 修复无法正确匹配 config/public 目录下的 HTML 文件 URL 的问题
fix: fix the router/server export
fix: 修复 router/server 的导出
fix: search box render & /zh redirect
fix: 搜索框渲染问题 & /zh 路由重定向
fix: micro generator template
fix: 修复微生成器模板
fix: Using extends to solve the tsconfig configuration path conversion problem
fix: 使用 extends 解决 tsconfig 配置路径转换的问题
fix(plugin-garfish): fix sub app import garfish runtime
fix(plugin-garfish): 修复微前端子应用引入了 Garfish Runtime
fix: Fix the failure to resolve the path correctly when running Storybook
fix: 修复运行 Storybook 时候无法正确解析路径
fix: when a child route does not exist, an empty layout should not be created
fix: 子路由不存在时,不应该创建空的 layout
fix: <1440px screen style
fix: 修复 <1440px 宽度屏幕样式
fix: plugin-proxy rootca request port error
fix: 修复插件代理 rootca 请求端口错误
fix: ignore list in globby
fix: 设置 globby 的 ignore 选项
fix: package.json error publishConfig.types
fix: 修改 package.json 里错误的 publishConfig.types
fix: @modern-js/core
add afterPrepare
hook
fix: @modern-js/core
新增 afterPrepare
hook
fix: modify buildConfig API
fix: 修改 buildConfig API
Published by github-actions[bot] almost 2 years ago
#2603
feat: new command support --lang params
feat: new 命令支持 --lang 参数
feat(app-tools): allow to use dev.port config
feat(app-tools): 支持使用 dev.port 配置
support metafile
支持生成metafile
update module ts-template
更新模块的ts模板
chore: optimize the capitalization of plugin names
chore: 规范引用插件时的命名格式,统一使用 camelCase 代替 PascalCase
docs: remove the docs about the data loader defined in the routing component
docs: 移除 data loader 定义在路由组件中的相关文档
feat: add util mergeBuilderConfig
for modifyBuilderConfig
hook
feat: modifyBuilderConfig
钩子回调提供工具函数 mergeBuilderConfig
docs: add docs for config and init
docs: 添加 config 和 init 在嵌套路由下的文档
chore: hard code MODER_TARGET
chore: 硬编码 MODER_TARGET
feat: optimize TTI & build performance
feat: 优化 TTI 和构建性能
feat(doc-core): increase sidebar width to 280px
feat(doc-core): 增加 sidebar 宽度至 280px
feat(doc-core): append main title as a suffix
feat(doc-core): 将站点名称作为页面标题的后缀
chore: optimize the capitalization of new command plugin names
chore: 优化 new 命令提示的插件名称格式
feat(doc-core): improve nav style
feat(doc-core): 优化导航栏样式
feat: accept undefined as JSONPrimitive
feat: JSONPrimitive
类型允许接受 undefined
feat: support static image in doc-tools
feat: 文档框架支持引入静态图片
fix: fix doc description
fix: 修复文档描述
fix(app-tools): SVG default export type
fix(app-tools): 修复 SVG 默认导出的类型错误
fix(app-tools): server.port not work in development
fix(app-tools): 修复开发环境下 server.port 不生效的问题
fix: loadable component should not be wrapped in suspense
fix: loadable component 不应该被 suspense 包裹
fix: Disable detect tsconfig.json
fix: 禁用探测 tsconfig.json
fix: remove the prebundle for data loader
fix: 移除 data loader 的预打包
fix: can't exit process after build
fix: 在 build 后不退出程序
fix(doc-core): fix nav dropdown item text wrap
fix(doc-core): 修复导航栏下拉菜单的文字换行问题
fix(builder): no longer remove comments of HTML
fix(builder): 不再默认移除 HTML 中的注释
fix: storybook template update tsconfig not work
fix: 修复 storybook 生成器模板更新 tsconfig 不成功
fix(core): incorrect NODE_ENV when run start command
fix(core): 修复运行 start 命令时 NODE_ENV 设置错误的问题
fix: add missing esbuild
fix: 添加缺失的 esbuild
fix: fix webpack builder config
fix: 修复 webpack builder 配置
feat(builder): add new option html.tags
& html.tagsByEntries
feat(builder): 添加新的配置项 html.tags
和 html.tagsByEntries
fix(builder): incorrect config file name when inspect
fix(builder): 修复 inspect 时配置文件名称不正确的问题
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
update libuild version to support svgr in bundleless, and svgr only support default export
更新libuild版本以支持svgr能在bundleless下工作,同时svgr只支持default export
Published by github-actions[bot] almost 2 years ago
feat: Add warning when SWC minification takes too much time.
feat: SWC 压缩时间过久时,发出警告。
feat: mwa generator template remove runtime.state config
feat: mwa 生成器模板默认关闭 runtime.state 配置
feat: Add plugin-import test, add minify timeout checker
feat: 加入 plugin-import 测试,加入 minify 超时报错提示
feat:
change storybook runtime logic
export runtime api define from runtime module
refactor defineConfig in module-tools
feat:
更改 Storybook 对于 Runtime API 的处理逻辑
从 @modern-js/runtime 导出 Runtime API 的用户配置
重构 module-tools 的 defineConfig
默认关闭svgr功能
close svgr default
feat: support React18 streaming SSR
feat: 支持 React18 流式 SSR
feat: modernjs Access builder compiler
feat: modernjs 接入 builder 构建
chore: rename plugin-jarvis to plugin-lint
chore: 重命名 plugin-jarvis 为 plugin-lint
feat: refactor router with [email protected]
feat: 使用 [email protected] 重构路由模块
feat: upgrade ESLint to 8.x version
feat: 升级 ESLint 到 8.x 版本
#2485 chore: v2
feat: support nested routes
feat: 支持嵌套路由
fix(plugin-garfish): 修复 assetPrefix 用户配置被 plugin-garfish 覆盖问题,自定义入口未正确传递节点参数
fix(plugin-garfish): Fix the problem that the assetPrefix user configuration is overwritten by plugin-garfish, and the custom entry does not pass the node parameters correctly
fix: garfish wrapped app missing props
fix: garfish 包装过的 APP 缺少 props
fix tsconfig extends path calculation errors
修复tsconfig里extends路径计算错误的问题
feat: add @modern-js/plugin-swc
feat: 新增 @modern-js/plugin-swc 插件
Published by github-actions[bot] almost 2 years ago
fix: create tools distTag not right
fix: 修复 @modern-js/create 默认 distTag 不正确
Published by github-actions[bot] almost 2 years ago
update speedy version
更新依赖里speedy的版本
feat: support async export provider for module federation
支持模块联邦场景异步导出 provider
fix: generator utils get plugin version
fix: 修复生成器获取插件版本报错
fix: bootstrap func ReactDOM params type when use react18
fix: 修复当使用 React18 时, bootstrap 函数 ReactDOM 参数类型
fix: upgrade command update husky error
fix: 修复 upgrade 命令升级 husky 错误问题
fix: state runtime plugin init hook not return next function
fix: 修复 state runtime 插件 init 钩子未返回 next 函数
Published by github-actions[bot] almost 2 years ago
fix: bootstrap function params type define
fix: 修复 bootstrap 函数参数类型定义
fix: extname function logic bug fix
fix: 修复 extname 函数的逻辑问题
fix: esbuild should not handle js files
fix: esbuild 不应该处理非 js 文件
fix(plugin-polyfill): failed to join flags when restart CLI
fix(plugin-polyfill): 修复重启 CLI 时报错 join flags 失败的问题
fix: storybook generator runtimeDependenceVersion keyword
fix: storybook 生成器 runtimeDependenceVersion 关键字
fix: loadApp when dom is mount
修复 dom 未渲染时挂载子应用行为
Published by github-actions[bot] almost 2 years ago
feat: @modern-js/create support --packages params to set special packages version
feat: @modern-js/create 支持 --packages 参数用于指定特殊的包版本
chore: add types for exports field
chore: 为 exports 补充 types 字段
fix(garfish): fix reRender issue when use apps and Garfish.run with activeWhen parameter
修复在同时调用 apps 和 Garfish.run 方法并提供 activeWhen 参数时重复渲染的问题
fix(builder): incorrect ModuleFilenameHelpers path
fix(builder): 修复 ModuleFilenameHelpers 路径大小写错误
fix: add missing 'file' fields
fix: 添加缺失的 file 字段
Published by yimingjfe almost 2 years ago
feat(builder): support display compile time in progress bar
feat(builder): 支持在进度条中展示编译时间
feat: remove node internal package like fs or path which import by ssr runtime
feat: 删除在 ssr runtime 中引用的 node 内部包
fix: reduce compile parameters for dev-server
fix: 减少 dev-server 编译所需参数
feat: Support disable builder performance.builderCache configuration
feat: 支持禁用掉 builder performance.buildeCache
配置项
feat(builder): improve log info of inspectConfig method
feat(builder): 优化 inspectConfig 方法的日志输出
feat: new command install not run prepare scripts
feat: new 命令安装依赖时不执行 prepare 脚本
chore: reduce parameters for dev-server & update default config value in builder startDevServer
chore: 缩简 devServer 配置定义 & 更新 builder startDevServer 方法 config 默认值
feat(webpack): expose HtmlWebpackPlugin instance in tools.webpack
feat(webpack): 支持在 tools.webpack 中获取到 HtmlWebpackPlugin 实例
feat(builder): support distPath.server config
feat(builder): 支持 distPath.server 配置项
fix: new action version when new electron
fix: 修复启用 Electron 时版本报错
fix: new testing reference type
fix: 修复开启测试功能 reference 类型
fix(bundle-require): should bundle ts or esm files inside node_modules
fix(bundle-require): 修复无法打包 node_modules 下的 ts 和 esm 文件的问题
fix: runtime export field
fix: 修复 runtime 包导出字段
fix: tools.webpack
of Storybook API not work
fix: 修复 Storybook API tools.webpack 不生效
fix: state runtime plugin params
fix: state 插件参数格式
fix(core): dev.https missing object type
fix(core): 修复 dev.https 配置项缺少对象类型的问题
fix: add missing ssr exports from runtime ssr plugin
fix: 补充 runtime ssr 插件中丢失的 ssr 导出
fix(plugin): fix return type of Workflow
fix(plugin): 修复 Workflow 的返回值类型错误
fix(builder): inlined assets should be deleted after all html generated
fix(builder): inline 的资源应该在所有 html 生成后被删除
fix: should not do render if set location header and 302 status in middleware
fix: 如果在 middleware 中设置了 location 头和 302 状态码,则不应该走渲染逻辑
fix(prod-server): failed to match URL which ends with ".html"
fix(prod-server): 修复无法匹配到以 ".html" 结尾的 URL 的问题
fix: modify the parameters passed to the compile function of server-utils
fix: 修改传入server-utils的compile函数的参数
fix(builder): default value of tools.tsChecker config
fix(builder): 修复 tools.tsChecker 默认值错误的问题
fix(builder): failed to write stderr messages
fix(builder): 修复输出 stderr 信息时不展示的问题
fix(builder): not apply style-loader or extract css when target is node
fix(builder): 修复 CSS 构建时注册了 style-loader 或 extract css 导致报错的问题
Published by xuchaobei about 2 years ago
feat: add afterDev hook
feat: 添加 afterDev 钩子
feat: support Webpack profile
configuration
feat: 支持 Webpack profile
配置项
docs(builder): add docs for inline chunks
docs(builder): 增加 inline chunks 文档
feat(devServer): support devServer.setupMiddlewares config
feat(devServer): 支持 devServer.setupMiddlewares 配置项
feat: generator plugin support set default config
feat: 生成器插件支持设置增加问题的默认值
feat: optimize the logger of @modern-js/utils, remove builder logger
feat: 优化 @modern-js/utils 的 logger 格式, 移除 builder 内置的 logger
fix: upgrade tools npmrc content
fix: 升级工具 npmrc 文件配置
feat(builder): allow to close dev server
feat(builder): 支持关闭 dev server
chore(builder): bump webpack to 5.74.0
chore(builder): 升级 webpack 到 5.74.0 版本
feat: support loadable scripts add crossorigin attribute
feat: SSR 支持 loadable 脚本添加 crossorigin 属性
chore: move copyTask from bundleless task to build task
chore: 把copy任务从bundleless任务中移动到build任务中
feat: allow user config managerWebpack
feat: 运行用户配置 managerWebpack
feat: support devServer.historyApiFallback
feat: 支持 devServer.historyApiFallback 配置项
chore(builder): move constants and utils to shared package
chore(builder): 将常量和 utils 移动至 shared 包
feat: support Webpack resolve.mainFields
configuration
feat: 支持 Webpack resolve.mainFields
配置项
chore(devServer): get devServer config from this.dev
chore(devServer): 从 this.dev 上获取 devServer 配置
fix(core): failed to log validate config errors from plugins
fix(core): 修复校验 plugin 中的 config 异常时,日志格式不正确的问题
fix: extends path error
fix: 修复 extends 字段路径的问题
fix(builder): api.onExit hook not work
fix(builder): 修复 api.onExit 钩子不生效的问题
fix(builder): disable resolve.fullySpecified by default
fix(builder): 默认禁用 resolve.fullySpecified 规则
fix(app-tools): remove useless logging option
fix(app-tools): 移除无效的 logging 选项
fix: ssr runtime plugin need default config
fix: ssr 运行时插件需要传入默认配置
fix: generator plugin addHelper api
fix: 修复生成器插件 addHelper this 指向问题
fix(builder): should not apply react refresh when dev.hmr is false
fix(builder): 修复 dev.hmr 为 false 时仍然会注入 react-refresh 的问题
fix: change preview template
fix: 修改 preview 模板文件
fix(utils): failed to resolve execa
fix(utils): 修复找不到 execa 模块的问题
fix(builder): add hash for static assets in dev to avoid conflict
fix(builder): 在开发环境下生成静态资源时,默认添加 hash 以避免文件名冲突
fix(builder): remove asset file after inlining it into html
fix(builder): 在 inline 后删除 asset 文件
fix(webpack): react-refresh-webpack-plugin cause rebuild slow
fix(webpack): 修复 react-refresh-webpack-plugin 导致重新编译慢的问题
fix: support monorepo deploy in pnpm 7
fix: 修复 monorepo deploy 命令在 pnpm 7 下的问题
fix: console error message if error stack not exist
fix: 如果错误堆栈不存在,则输出错误信息