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
feat(plugin-module-import): 移除使用 libuild-plugin-swc 的逻辑,更改为配置 transformImport
feat(plugin-module-import): Remove the logic for using libuild-plugin-swc and replace it with the configuration transformImport.
feat: local sidebar closed when router changed
feat: 路由变化时关闭本地侧边栏
feat(module-tools): Replace esbuild-transform with swc-transform for the underlying build, reducing the size of the build product. Added externalHelpers
, transformImport
and disbaleSwcTransform
configurations.
feat(module-tools): 底层构建使用 swc-transform 替换 esbuild-transform, 减少构建产物体积.新增 externalHelpers
、transformImport
和 disbaleSwcTransform
配置.
hotfix(builder): fix the inaccurate type when bundlerChain chain called
hotfix(builder):修复 bundlerChain 链式调用后,类型提示不准确问题
feat(builder): update swc-plugins, core-js, swc-helpers
feat(builder): 更新 swc-plugins, core-js, swc-helpers
chore(deps): bump postcss-custom-properties to v13.1.5
chore(deps): 升级 postcss-custom-properties 到 v13.1.5
feat(builder): builder plugin supports specifying relative order via the pre
/ post
configuration items
feat(builder): builder 插件支持通过 pre
/ post
配置项指定相对顺序
chore: package.json include the monorepo-relative directory
chore: 在 package.json 中声明 monorepo 的子路径
docs: 新增 buildConfig api 和更新 plugin-import 内容
docs: add buildConfig api content and update plugin-import content
feat: adjust create tools and new command option order
feat: 调整 create 工具及 new 命令 option 操作顺序
chore: update libuild and libuild plugins version to 0.12.0
chore: 更新 libuild 和 libuild 插件的版本到 0.12.0
feat: support stylus plugin in Rspack build
feat: stylus 插件支持在 Rspack 构建时使用
feat(builder): add output.disableSvgr configuration item
feat(builder): 新增 output.disableSvgr 配置项
chore(app-tools): export AppToolsOptions type
chore(app-tools): 导出 AppToolsOptions 类型
fix(doc-core): add useEffect dependencyList for docLayout and use padding in content
fix(doc-core): 给docLayout组件添加 useEffect 的依赖项并给doc content加上padding
fix: dev server crashed when prepare api handler failed
fix: 修复更新 api server 报错导致 dev server 退出的问题
fix(builder): browserslist config should not affect node bundles
fix(builder): 修复 browserslist 配置会对 node 产物生效的问题
fix: fix storybook runtime addon
fix: 修复 storybook runtime addon
fix: toc hmr not work
fix: toc 热更新不生效
fix: upgrade libuild version to support tailwind in watch mode
fix: 更新libuild版本以支持tailwindcss在watch模式下生效
fix: route id should not include [ or ]
fix: 路由 id 不应该包含 [ 或 ]
fix: home page hmr & e2e build test
fix: 首页热更新问题 & doc tools e2e 生产环境构建测试
fix: packagePath validate regex
fix: 修复 packagePath 校验正则
fix: nest relative ../ path not work in mdx-rs
fix: mdx-rs 中嵌套相对路径 ../ 不生效
fix: make plugin options optional
fix: 使插件参数变为可选项
fix: sidebar not exist when meeting chinese path
fix: 侧边栏在遇到中文路径时不存在
fix(doc-core): failed to resolve useLocation method in some cases
fix(doc-core): 修复个别情况下找不到 useLocation 方法的问题
fix: remove ignore logic in mergeConfig for tools.devServer
fix: 移除 tools.devServer 在 mergeConfig 时候的忽略逻辑
fix(builder-shared): add protocol for generated URL when assetPrefix is true
fix(builder-shared): assetPrefix 为 true 时生成的 URL 添加 protocol
fix: support chinese route
fix: 支持中文路由
fix: get lang from useLang not pageData
fix: 使用useLang获取lang
fix: set defaultHasAside false if in iframe
fix: 被iframe引入时默认不展示aside
fix: set sidebar and aside max-height not height
fix: 设置sidebar和aside的最大高度而不是高度属性
Published by github-actions[bot] over 1 year ago
feat(doc-core): support addPages
feat(doc-core): 支持 addPages 插件钩子
feat(transformImport): support disable default transform import, add more test of transformImport
feat(transformImport): 支持关闭默认的 transform import,增加更多 transformImport 测试
chore(runtime): remove unused @testing-library/react-hooks
chore(runtime): 移除多余的 @testing-library/react-hooks
Published by caohuilin over 1 year ago
feat: add esbuildOptions to support that change esbuild options directly
feat: 新增esbuildOptions配置支持直接修改esbuild最终配置
chore(deps): bump cssnano from v5 to v6
chore(deps): 将 cssnano 从 v5 升级到 v6
feat: add doc-tools e2e
feat: 添加 doc-tools e2e 测试用例
feat(builder): add convertToRem.inlineRuntime config
feat(builder): 新增 convertToRem.inlineRuntime 配置项
chore(generator): make rspack a priority
chore(generator): 将启用 rspack 作为优先选项
chore(server): no longer replace globalVars when compiler is babel
chore(server): 进行 babel compile 时不再替换 globalVars
feat: adjust server.worker config to deploy.worker.ssr
feat: 调整 server.worker 为 deploy.worker.ssr
feat: support Comment component in Document.tsx
feat: 支持 Comment 组件,可以保留用户的注释到最终的 html 上
fix: change content padding-bottom from 48px to 72px, equal to header height
fix: 将内容区域的底部内边距从48px修改为72px,和头部高度保持一致
feat: add hook modifyRoutes
feat: 增加 hook modifyRoutes
feat: adpate rspack copy plugin
feat: 适配 rspack copy 插件
chore(rspack-provider): update rspack to 0.1.8
chore(rspack-provider): 升级 rspack 相关依赖到 0.1.8 版本
feat: re-export createPath
from react-router
feat: 从 react-router 导出 createPath
fix(devServer): using current host and port to create HMR connection
fix(devServer): 建立 HMR 连接时默认使用当前 host 和 port
feat: support config handle of Route
feat: 支持配置 Route 的 handle 属性
feat: add ssr.inlineScript for use inline json instead inline script when ssr
feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本
chore(cli): improve commands descriptions
chore(cli): 优化命令的描述文案
feat(builder): source.globalVars support function usage
feat(builder): source.globalVars 支持函数写法
feat: support extendPageData hook and last updated time
feat: 支持 extendPageData 钩子和最后更新时间功能
feat: add optional dynamic routes docs
feat: 添加可选动态路由文档
fix: The http://0.0.0.0:port can't visit in windows, we shouldn't set publicPath as //0.0.0.0:${port}/
;
fix: 在 windows 里不能正常访问 http://0.0.0.0:port,我们不应该将 publicPath 设置成 //0.0.0.0:${port}
fix(app-tools): failed to scan public dir when using Rspack
fix(app-tools): 修复 Rspack 模式读取 public 目录失败的问题
fix(utils): the esm format files should be generate for the client
fix(utils): 应该为客户端使用,生成 esm 格式的文件
fix(app-tools): can not disable output.cleanDistPath
fix(app-tools): 修复无法禁用 output.cleanDistPath 的问题
fix: doc e2e test in windows
fix: 解决 windows 下 e2e 测试失败的问题
fix: the streaming ssr may add repeated css assets, because the route-manifets would product all css link
fix: 因为 route-manifets 会生成所有 css link 信息,导致 streaming ssr 可能添加重复的 css 资源,
fix: ssr and document integration test error
fix: 修复 ssr 和 document 的集测错误
fix(monorepo): ignore unnessary peer deps warning from antd
fix(monorepo): 忽略由 antd 造成的不必要的 peer deps 警告
fix(app-tools): should not print all addresses when custom dev.host
fix(app-tools): 修复自定义 dev.host 时会输出多余的 URL 地址的问题
fix: router missing App static property
fix: router 确实 App 的静态属性
fix: 更新集测 snapshot,修复 document 功能在 node 14 下的错误
fix: update test snapshot, fix document error in node 14
fix(generator): README should be written in English
fix(generator): README 应该使用英文编写
fix(garfish): pass basename to subApp
test(garfish): add e2e test for passing basename
fix(app-tools): failed to validate globalVars in legacy mode
fix(app-tools): 修复兼容模式下 globalVars 类型校验错误的问题
fix: ssr stream test case
fix: 修复 ssr stream 测试用例
fix(runtime): MODERN_TARGET is not injected when using Rspack
fix(runtime): 修复 Rspack 模式未注入 MODERN_TARGET 的问题
fix(builder): update source.alias type when using Rspack
fix(builder): 更新使用 Rspack 时的 source.alias 类型
chore: remove plugin-egg and plugin-nest
chore: 移除 plugin-egg 和 plugin-nest
fix: set encoding for defered loader
fix: 为 defer loader 设置 encoding
fix(doc-core): fix failed to resolve @modern-js/utils/logger
fix(doc-core): 修复引用 @modern-js/utils/logger 失败的问题
Published by github-actions[bot] over 1 year ago
feat(builder): add assetsRetry.inlineScript config
feat(builder): 新增 assetsRetry.inlineScript 配置项
fix: should empty dist dir when execute deploy command
fix: 应该清空 dist 目录,当执行 deploy 命令时
fix(module-tools): missing postcss dependency
fix(module-tools): 修复缺少 postcss 依赖的问题
fix(builder): set camel2dashName properly
fix(builder): 正确配置 transformImport babel 插件的 camel2dashName
fix: inline-loader match path error in windows
fix: inline-loader 在 windows 里路径匹配错误。
fix(builder): devServer.client is not deep merged
fix(builder): devServer.client 配置项未被 deep merged
Published by github-actions[bot] over 1 year ago
feat: optimize route isExist logic
feat: 优化路由 isExist 逻辑
fix(core): ignore error when clear temp config files
fix(core): 忽略清理临时文件时的异常
fix: theme types cannot access
fix: 主题类型无法访问
fix: nodeApi type export in modern-js/core
fix: 修复 nodeApi 在 modern-js/core 中的类型导出
fix: export PluginOptions type in module-doc
fix: 从 module-doc 中导出 PluginOptions 类型
Published by github-actions[bot] over 1 year ago
feat: generator plugin support relative path
feat: 生成器插件支持相对路径
fix: use display:table in table element
fix: 使用display:table在table元素上
doc: add content about dev config
doc: 添加关于 dev 配置的内容
refactor: move add builder-plugin-node-polyfill action to builder-generator
refactor: 将添加 builder-plugin-node-polyfill 的行为移动到 builder-generator
feat(builder): support using RegExp to inline part of chunks
feat(builder): 支持通过正则来内联部分资源
refactor(app-tools): inject assetPrefix by entry
refactor(app-tools): 通过 entry 来注入 assetPrefix 变量
chore(rspack-provider): apply fullySpecified mjs default value in Rspack
chore(rspack-provider): 在 Rspack 中设置 fullySpecified 在 mjs 下的默认值
refactor: remove inject template and unuse config, add internal compoennt named overview
refactor: 移除插入模板的逻辑和无用的配置,并添加内置概览组件
docs: add prefetch docs
docs: 添加 prefetch 的文档
feat: the rspack unsupport inline loader, so we move data-loader to bundler.module.rules
feat: rspack 不支持 inline loader, 所以我们将 data-loader 移动到 bundler.module.rules 配置中去。
chore: bump core-js and swc
chore: 升级 core-js 和 swc
feat(builder): add html.scriptLoading config
feat(builder): 新增 html.scriptLoading 配置
feat: support global props in createApp and pass garfish props in
feat: createApp 支持全局属性,garfish 通过这个方式透传 garfish props
feat(app-tools): export mergeConfig function
feat(app-tools): 导出 mergeConfig 函数
feat: redirect locale language in first visit
feat: 优化首次访问时的语言重定向
feat: support fuzzy search for remote search
feat: 服务端搜索支持模糊搜索
fix: search broken when search keyword is null
fix: 搜索关键字为空时搜索过程卡住
chore: improve ssr docs, add more use case for node/web code split
chore: 优化 ssr 文档,为 node/web 代码分割添加更多使用场景
feat: use declarationDir
instead of outDir
feat: 使用 declarationDir
替换 outDir
perf(plugin): reduce bundle size
perf(plugin): 优化包体积
chore(builder): support get builder/shared compiled path in provider getCompiledPath api
chore(builder): 支持通过 provider getCompiledPath api 获取 builder/shared 中预打包依赖路径
feat(rspack-provider): update Rspack to 0.1.7
feat(rspack-provider): 升级 Rspack 相关依赖至 0.1.7
feat: normalize link and image in mdx-rs
feat: mdx-rs 中支持 link 和 图片的规范化
fix(runtime): compile react-router to ensure the compatibility
fix(runtime): 通过编译 react-router 来保证对低版本浏览器的兼容性
fix(builder): HtmlTagsPlugin
failed to join public path with absolute url
fix(builder): HtmlTagsPlugin
为绝对路径拼接 public path 会导致格式错误
fix: plugin config hook can not get bundlerType, so we can't set babelConfig correctly in ssr plugin
fix: 插件的 config 钩子不能获得 bundlerType,所以我们在 ssr 插件不能正确的设置 babelConfig
fix: pin core-js version to 3.27 in SWC
fix: SWC 相关的 core-js 版本固定到 3.27
fix(doc-core): anchor
fix(doc-core): 锚点无效
fix: the defineLegacyConfig
should set autoLoadPlugins = true by default.
fix: defineLegacyConfig
应该默认将 autoLoadPlugins 设置为 true
fix: code highlight & image not show
fix: 代码高亮失效 & 图片不显示
fix: generator plugin default config not work
fix: 修复生成器插件默认配置未生效问题
feat: set the default language of CLI to English
feat: 将命令行的默认语言设置为英文
chore: support output.merge / resolve.merge / resolve.get / resolve.fallback in bundler-chain
chore: 在 bundler-chain 中支持 output.merge / resolve.merge / resolve.get / resolve.fallback 方法
fix(upgrade): i18n of upgrade command not work
fix(upgrade): 修复 upgrade 命令的 i18n 配置不生效的问题
fix(module-tools): fix noClear option not work
fix(module-tools): 修复 noClear 配置不生效
fix(builder-plugin-swc): remove default env.mode
fix(builder-plugin-swc): 删除 env.mod 的默认值
hotfix: support bffPlugin when use rspack
hotfix: 在使用 Rspack 构建时,支持 BFF 插件
Published by github-actions[bot] over 1 year ago
chore(rspack-provider): use rspack stats.time instead of manual timing
chore(rspack-provider): 使用 rspack stats.time 代替手动计时
feat(doc-tools): print dev server URLs with base
feat(doc-tools): 输出 dev server 的 URLs 时补全 base 信息
doc: 修正文档中使用@edenx/runtime 的部分
doc: Correct the sections in the document that use @edenx/runtime.
feat(doc-core): bundle theme code
feat(doc-core): 对默认主题的代码进行预打包,优化文档站构建效率。
chore: upgrade libuild version to ~0.11.8
chore: 更新 libuild 版本到 ~0.11.8
chore(deps): bump fork-ts-checker-webpack-plugin to v8
chore(deps): 升级 fork-ts-checker-webpack-plugin 到 v8
feat: support redirect config
feat: 支持redirect配置
feat(doc-core): improve dead link log message
feat(doc-core): 优化死链检测的日志
feat: support noEmitOnError for ts compiler & remove assetsByChunkName from RouterPlugin
feat: 支持 ts 编译器的 noEmitOnError 选项 & 从 RouterPlugin 中移除 assetsByChunkName
chore: remove to module folder
chore: 移动至module文件夹
chore(rspack-provider): update rspack to 0.1.6
chore(rspack-provider): 升级 rspack 相关依赖到 0.1.6
feat: enable isolatedModules
feat: 开启isolatedModules
feat(plugin-module-node-polyfill, module-docs): add Node Polyfill feature
feat(plugin-module-node-polyfill, module-docs): 添加 Node Polyfill 功能。
fix(app-tools): failed to restart CLI
fix(app-tools): 修复 CLI 重启失败的问题
fix: referenceCssAssets should not include publicPath in bundle
fix: referenceCssAssets 不应该包含 publicPath 字段在 bundle 中
fix: search result not accurate
fix: 解决搜索结果遗漏的问题
fix: the SSR plugin will product some effects, disable the ssr plugin when user doesn't use ssr
fix: SSR 插件将会尝试一些副作用,如果用户没有使用它时禁用这个插件。
fix: function injectServerData name typo
fix: 修复 injectServerData 函数命名错误
fix(swc): can not find object_destructuring_empty.mjs
fix(swc): 修复找不到 object_destructuring_empty.mjs 的问题
fix: schema error in sidebar link
fix: 修复侧边栏链接 schema 错误问题
fix(builder): should add id prefix after minify SVG
fix(builder): 压缩 SVG 后需要添加 id 前缀
fix(doc-core): fix Tabs props type
fix(doc-core): 修复Tabs组件类型
fix: code highlight
fix: 代码高亮无效
fix(plugin-module-babel): export right name
fix(plugin-module-babel): 导出正确的模块名称
fix: beforeCreateRouter should be false after render router
fix: 在渲染 router 后,beforeCreateRouter 应该为 false
fix: switch lang 404
fix: 切换语言后 404 问题
fix(module-tools): fix input glob path
fix(module-tools): 修复 input glob 路径的问题
fix(module-tools): fix warning content
fix(module-tools): 修复警告内容
fix(module-tools): fix noClear option not work
fix(module-tools): 修复 noClear 配置不生效
fix: fix darkmode that don't work
fix: 修复darkmode不生效的问题
fix: link base missing
fix: 链接 base 丢失问题
fix: update libuild version to fix windows resolve path
fix: 升级libuild版本来修复windows机器对于路径的解析
Published by github-actions[bot] over 1 year ago
chore: optimize @modern-js/create-request types
chore: 优化 @modern-js/create-request 类型
feat: support code line highlight
feat: 支持代码行高亮
feat(builder): support output.assetsRetry in rspack-provider
feat(builder): 在 rspack-provider 中支持 output.assetsRetry 配置能力
feat: 控制台输出 rspack 版本
feat: Print the version of rspack in the console.
feat: support use node api run dev & build & deploy command
feat: 支持通过 node api 运行 dev & build & deploy 命令
feat: sink builder-plugin-swc abilities to builder-plugin-swc-base
.
feat: 将 builder-plugin-swc 能力下沉到 builder-plugin-swc-base 里.
feat: 添加 source.transformImoprt
feat: add source.transformImoprt
feat(plugin-image-compress): compatible array config
feat(plugin-image-compress): 兼容传入数组配置
feat: assets and data prefetching is supported
feat: 支持资源和数据预加载
chore(plugin-lint): deprecate modern pre-commit command
chore(plugin-lint): 废弃 modern pre-commit 命令
chore(module-tools): pretty the log format
chore(module-tools): 优化日志格式
feat(builder): print total file size after build
feat(builder): 构建后输出文件体积的总和
feat(utils): move universal utils to the universal folder
feat(utils): 将运行时使用的 utils 移动到 universal 目录
chore: adjust doc-tools constructor
chore: 调整 doc-tools 入参
chore(utils): bump commander from v8 to v10
chore(utils): 将 commander 从 v8 升级到 v10
feat: add header anchor in mobile
feat: 移动端显示 header anchor
feat: use generated default config objects instead of global objects
feat: 默认配置项使用动态生成替代全局对象
feat: add dts.abortOnError
config
feat: 添加 dts.abortOnError
配置
feat(builder): support setting forceSplitting to be an object
feat(builder): 支持将 forceSplitting 设置为一个对象
chore(rspack-builder): update Rspack to 0.1.4
chore(rspack-builder): 升级 Rspack 相关依赖至 0.1.4 版本
fix: For rspack-provider can use tools.babel
configuration, inline the @babel/preset-typescript
to handle ts syntax in rspack-provider.
fix: 为了 rspack-provider 能给使用 tools.babel
配置项,将 @babel/preset-typescript
内置进 rspack-provider 去处理 ts 语法。
fix: translate some chinese to english in en docs
fix: 将部分英文文档中的中文翻译为英文
fix: The compiled babel-loader can't find the babel/core in builder-shared
fix: 在 builder-shared 中的预编译 babel-loader 找不到 babel/core 依赖
fix: load chunk while can not load all css asset, when streaming ssr.
fix: 使用 streaming ssr 时,不能加载当前 chunk 的所有 css 资源
fix(builder): remove duplicated babel-plugin-import
fix(builder): 移除重复注册的 babel-plugin-import
fix(builder): incorrect asset URL in windows
fix(builder): 修复 windows 上生成静态资源 URL 错误的问题
fix: doc tools cli options
fix: doc tools cli 参数
fix: match content result
fix: 修复搜索错误
fix(plugin-swc): add warning when using esbuild with SWC
fix(plugin-swc): 在同时启用 SWC 和 esbuild 时抛出 warning
fix(builder): should preserve viewBox when minify svg
fix(builder): 修复压缩 svg 导致 viewBox 丢失的问题
fix(rspack-builder): support rspack global node-polyfill use workaround
fix(rspack-builder): 采用临时方案在 rspack 中支持 global node-polyfill
fix: fix base
fix: 修复base配置
fix: distpath.root not take effect when serve
fix: 修复 distpath.root 在 run serve 时不生效的问题
fix: remove nestedRoutes file from @modern-js/utils
fix: 将 nestedRoutes 从 @modern-js/utils 中移除
fix: schema parser error, builder tools.devServer.proxy can be a array
fix: schema 解析错误,builder `tools.devSerer.proxy' 可以是个数组。
fix: fix lost props when using nested route in micro-front-end mode
修复嵌套路由在微前端场景下主子应用传递 props 丢失问题
fix: the swc compiler can not create two different options instance && move default config to swc-base
fix: swc 转译器无法创建两个不同配置的实体 && 将默认配置移到 swc-base
fix(module-tools, module-tools-docs): fix svgr usage
fix(module-tools, module-tools-docs): 修复 svgr 的使用
fix: 移除 babel plugin-import 对于非法函数参数的校验
fix: remove babel plugin-import invalid function type options checking
fix(builder): failed to set empty distPath.js/css
fix(builder): 修复设置 distPath.js/css 为空时报错的问题
fix(core): beforeExit should be sync workflow
fix(core): beforeExit 需要使用同步的 workflow
fix: should hide publicPath in injected manifest
fix: 应该隐藏 publicPath 在注入的 manifest 中
fix(doc-core): run string-replace-loader before mdx-loader
fix(doc-core): 在 mdx-loader 之前执行 string-replace-loader
fix(utils): remove useless oneOf chainId,avoid user usage error.
fix(utils): 移除无用的 oneOf chainId,防止用户使用异常
Published by github-actions[bot] over 1 year ago
feat: .env file should be load when prod server is started
feat: 在 server 启动时,.env 文件应该被加载
feat: rspack-provider support tools.babel
feat: rspack-provider 支持 tools.babel
feat(doc-tools): support --config CLI option
feat(doc-tools): 支持 --config CLI 选项
feat: when enable bff handle render, support use useContext
to get framework plugin context in data loader.
feat: 当开启 BFF 托管渲染时,支持在 data loader 中使用 useContext
获取框架插件提供的上下文。
chore: upgrade jest and puppeteer
chore: 升级 jest 和 puppeteer 到 latest
feat(core): throw warnings when config file is not found
feat(core): 找不到配置文件时抛出 warning
feat(doc-core): improve paragraph padding
feat(doc-core): 优化段落间距
feat: support plugin in module-tools
feat: 支持模块工程插件
feat(doc-core): improve directive block style
feat(doc-core): 优化 directive block 的样式
feat: warning when user registe plugin duplication
feat: 当用户重复注册插件时进行 warning 提示
chore(deps): bump webpack from 5.75.0 to 5.76.2
chore(deps): 将 webpack 从 5.75.0 升级至 5.76.2
feat: create tools add doc solution
feat: create 工具增加文档站工程方案
chore(builder): update rspack & show rspack format error
chore(builder): 更新 rspack 版本 & 优化 rspack 错误日志输出
feat(app-tools): support builder-plugin-node-polyfill & output.disableNodePolyfill false when use Rspack
feat(app-tools): 在启动 Rspack 时,支持 builder-plugin-node-polyfill 插件以及将 output.disableNodePolyfill 设置为 false
feat(doc-tools): add a tip when no search result
feat(doc-tools): 增加无搜索结果时的提示文案
feat: add output.splitRouteChunks
feat: 添加 output.splitRouteChunks 配置
feat: export getCustomMDXComponent
feat: 导出getCustomMDXComponent
chore: appearance button position
chore: 调整主题切换按钮位置
feat: security.checkSyntax
support exclude configuration.
feat: security.checkSyntax
支持 exclude 配置项。
perf: improve routerPlugin performance
perf: 优化 routerPlugin 的性能
fix: storybook generator dependencies judge error
fix: 修复 storybook 生成器判断依赖时异常
fix: support tools.devServer.header include string[] type, remove get & delete & apply api in hook or middleware api
fix: 支持 tools.devServer.header 包含字符串数组类型,移除 Hook 和 Middleware 中对 响应 Cookie 的获取、删除操作
fix(doc-core): fix left sidebar height
fix(doc-core): 修复左侧 sidebar 高度不足的问题
fix: add types field in package.json
fix: 添加 package.json 中的 types 字段
fix: fix typos
fix: 修复拼写错误
fix: nav link normalize
fix: nav link 规范化
fix: fix optional peerDep cause ghost dep
修复 peerDep 带来的幻影依赖问题
fix(doc-core): fix code background color in containers
fix(doc-core): 修复 container 中的代码块背景色
fix: inject i18n placeholder in streaming ssr
fix: 流式 SSR 中,注入 i18n 数据占位字段
fix: main doc theme
fix: 首页深色模式问题
fix: api lang and merge doc logic
fix: API组件的语言切换以及文档配置合并逻辑
fix: split server and runtime code in plugin-data-loader
fix: 分离 plugin-data-loader 中服务端和客户端运行时的代码
fix: should get publicPath from webpack stats in router-plugin
fix: 应该从 webpack stats 获得 publicPath
fix: update arco-design version
fix: 升级 arco-design 的版本
fix(builder): update source.define type and schema check in rspack-provider
fix(builder): 更新 rspack-provider 中 source.define 的类型定义与校验
fix: Temporary forbidden the tools.babel
in rspack ,because the tools.babel
in rspack would cause a syntax error
fix: 由于使用 tools.babel 会引起语法错误,暂时在 rspack 中禁用 tools.babel 配置能力
fix: fix globalStyle path
fix: 修复全局样式文件路径
Published by github-actions[bot] over 1 year ago
feat: optimize doc ui theme
feat: 优化文档 UI 主题
feat: improve vendor split chunk rule
feat: 优化针对第三方库的拆包策略
docs(module-tools-doc): format content
docs(module-tools-doc): 格式化内容
chore(core): remove legacy transformPlugin option
chore(core): 移除不再使用的 transformPlugin 选项
chore: fix some TODO comments
chore: 处理一些标记 TODO 的问题
feat: support rspack
feat: 支持 Rspack 构建
chore(generator): update solution names
chore(generator): 更新创建项目时的工程类型名称
fix: mailto url
fix: 修复 mailto url
fix: remove serialze-javascript
from client bundle
fix: 移除客户端构建产物中的 serialze-javascript
fix: server worker dynamicImportMode config
fix: 修复 server worker 时 dynamicImportMode 配置
feat: support streaming ssr in worker
feat: worker 支持 streaming ssr
fix: move chunkmap.css comment to bottom of head
fix: 将 chunkmap.css 标记移动到 head 底部
fix: rspack-provider swc plugin should not inject core-js in ssr.
fix: rspack-provider swc 插件不应该在 SSR 下注入 core-js
fix: fix chunk css location in template
fix: 修复异步加载的 css 在模版文件中的位置
fix: worker router config error when enable bff
fix: 修复当开启 BFF 时 worker 路由配置
fix: should not replace to alias when filePath is not in src
fix: 不应该替换为别名,当 filePath 不在 src 目录中时
fix: fix data-loader compat in windows
fix: 修复 data loader 在 windows 下的兼容性问题
feat: enable svgo to avoid ID conflicts
feat: 启用 svgo 以避免 ID 冲突
fix: optimize the regexp for route matching rules
fix: 优化路由匹配正则
fix: export missing react-router types
fix: 导出缺少的 react-router 类型
fix: doc info block not work
fix: 修复文档站 info 不生效问题
fix(builder): add additional note about hashDigest in cssModuleLocalIdentName
fix(builder): 添加 cssModuleLocalIdentName 中关于 hashDigest 的补充说明
fix: remove jsc config
fix: 移除 jsc 配置
fix: the asset may be removed by InlineChunkHtmlPlugin
fix: asset 可能会被 InlineChunkHtmlPlugin 移除
fix: asset url using incorrect path seperator in windows
fix: 修复 windows 中 asset url 使用错误的路径分隔符
Published by github-actions[bot] over 1 year ago
feat: add custom web server docs
feat: 添加自定义 Web Server 文档
feat: bump @changesets/cli version
feat: 升级 @changesets/cli 版本
feat(builder): update rspack to 0.1.0
feat(builder): 升级 rspack 至 0.1.0
feat: add new module plugins
feat: 添加新的 Module 插件
feat: support start web service only
feat: 支持只启动 web 服务
feat: update Rspack text
feat: 更新 Rspack 文案信息
feat: enable swc css minify
feat: 启用 swc css 压缩
feat: gen release note support return result
feat: 生成 ReleaseNote 函数支持返回结果
feat: builder support tools.bundlerChain config
feat: builder 支持 tools.bundlerChain
config
feat: add banner and plugin-import
feat: 谈价 banner 插件和 import 插件
test(builder-plugin-swc): add test for builder-plugin-swc loader
test(builder-plugin-swc): 添加 builder-plugin-swc 的 loader 测试
Fix Typo
修复 Typo
hotfix(builder): use community loader instead of Rspack unstable sass & less loader
hotfix(builder): 使用社区 sass-loader 和 less-loader 替代 Rspack 非稳定的 sass 和 less loader
feat: support router-plugin in Rspack bundler.
feat: 在 Rspack bundler 里支持 router-plugin
refactor: app-tools builder
refactor: 重构 app-tools builder
fix: move the analyze webpackChain config to app-tools builder shared
fix: 将 anylyze 的 webpackChain
配置项移植进 app-tools builder shared
fix: fix duplicate re-exports of reduck
fix: 修复从 reduck 重复导出的 API
feat: optimize check deak link log
feat: 优化死链检测日志
fix(builder): missing some type in tools.cssExtract
fix(builder): 修复 tools.cssExtract 缺少部分类型的问题
fix: should match the most similar entry
fix: 应该匹配最相似的 entry
fix: ignore some tsconfig compileOptions
fix: 忽略一些 tsconfig 的 compileOptions 配置
fix(builder): failed to set CDN URL via html.tags
fix(builder): 修复 html.tags 无法设置 CDN URL 的问题
fix: specify the resolve.conditionNames when target = node.
fix: 当 target = node,指定 resolve.conditionNames
fix: static path miss
fix: 静态资源路径错误
fix: remove require.cache first when the bff loader execute
fix: 当 bff.loader 执行时,移除 require.cache
fix: fix web app template
fix: 修复 web app 模板
fix: the adapterSSR builder plugin modifyChain Hooks is not async function
fix: adapterSSR builder 插件的 adapterSSR Hooks 不是异步函数
fix: fix types pathname for model field
fix: 修复 model 字段对应的 types 路径
fix: add missing react-router type
fix: 添加丢失的 react-router 导出类型
fix(generators): update api document link
fix(generators): 更新 api 文档链接
fix: search index not found
fix: 搜索索引没有找到
fix: fix the order of runtime plugins
fix: 修复 runtime plugin 执行顺序
fix: use mock host instead real url host for url parse, for new URL not support ipv6, and we only need parse url path & search
fix: 使用虚拟的域名代替真实的主机名,因为 new URL 不支持解析 ipv6 的域名,并且我们只需要解析 url 的路径和查询字符串
fix(builder): fix incorrect browserslist config
fix(builder): 修复错误的 browserslist 配置
fix: pass basename to matchRoutes
fix: 修复 matchRoutes
未传入 basename 参数
fix(builder-plugin-swc): should handle object type sourceMap correctly
fix(builder-plugin-swc): 正确处理 loader 接收的对象类型 sourceMap
fix(builder-rspack-provider): support entry mode polyfill
fix(builder-rspack-provider): 支持 entry 模式的 polyfill 注入
fix: search index dev middleware
fix: search index 中间件无效
fix(builder-plugin-swc): should not override user react runtime
fix(builder-plugin-swc): 不应该覆盖用户 react runtime 配置
fix: remove esbuild from bff-core
fix: 从 bff-core 移除 esbuild
fix: nested routes in ssg
fix: 修复嵌套路由在 SSG 中的问题
fix(plugin-swc): missing @modern-js/builder-shared dependency
fix(plugin-swc): 修复缺少 @modern-js/builder-shared 依赖的问题
fix: unexpected title
fix: title 错误问题
Published by github-actions[bot] over 1 year ago
feat: support tabs group
feat: 支持 tabs 分组联动
fix: add watch mode to copy
fix: 为 copy 功能补充 watch 逻辑
feat: support optional params in file-based route
feat: 约定式路由支持可选参数
feat: add Rspack provider swc options, add builder-plugin-swc overrideBrowserslist configuration, report warning when enable latestDecorator in builder-plugin-swc
feat: 给 Rspack provider 增加 swc 相关配置项,增加 builder-plugin-swc overrideBrowserslist 配置,在 builder-plugin-swc 启用 latestDecorator 后增加 warning 报错
feat(builder): support output.enableAssetFallback in rspack-provider
feat(builder): 在 rspack-provider 中支持 output.enableAssetFallback 配置项
feat: support deferred data for streaming ssr
feat: 流式渲染支持 deferred data
feat: nav sub menu group
feat: 支持导航栏子菜单分组
feat(generator): remove runtime dep for storybook
feat(generator): 移除 Storybook 对于 runtime 的依赖
feat: 增加 copy 配置以及对 core-js path 的 alias
feat: support copy config and add alias of core-js
hotfix(builder): make devServer.proxy schema check loosely
hotfix(builder): devServer.proxy 类型检验采用非严格模式
chore: make file naming consistent
chore: 统一文件命名为小驼峰格式
feat: logo dark mode
feat: 支持深色模式 logo
chore: make test files naming consistent
chore: 统一测试文件命名为小驼峰格式
feat: support custom apiDir, lambdaDir and style of writing for bff
feat: 支持定制 api 目录,lambda 目录,bff 的写法
fix: performance.chunkSplit.strategy position
fix: 修复 performance.chunkSplit.strategy 位置错误
fix(rspack-provider): missing tools.autoprefixer type
fix(rspack-provider): 修复缺少 tools.autoprefixer 类型定义的问题
fix(builder): tools.sass type should use legacy sass options by default
fix(builder): tools.sass 默认使用 legacy sass 选项类型
fix(builder): vendor library chunks include sources
fix(builder): 用户源码被划分到第三方库所在 Chunk
fix: modern server not serve static file in developmenet env, dev-server-middleware serve it
fix: modern server 在开发环境不再托管静态文件,dev-server-middleware 托管他们
fix: remove nestedRoutes export
fix: 移除 nestedRoutes 导出
fix: should pass extensions option to loader
fix: extensions 配置应该传给 loader
fix: ssg error reporting inaccuracy problem
fix: 修复 ssg 报错不准确的问题
fix(plugin-swc): webpack magic comment is removed after compilation
fix(plugin-swc): 修复 webpack magic comment 被错误移除的问题
fix: disable swc react refresh when ssr mode.
fix: 当在 SSR 模式时,禁用 swc react refresh.
fix: lock @modern-js/utils/ssr by webpack alias
fix: 通过 webpack 别名将 @modern-js/utils/ssr 锁到同一版本
fix(doc-core): failed to build when using logo.dark
fix(doc-core): 修复配置 logo.dark 时构建失败的问题
fix: remove process.env.PORT from the bff generate client code
fix: 从 bff 的 generate client code 中移除 process.env.PORT
fix(plugin-storybook): remove builtin babel-plugin-import when use module-tools
fix(plugin-storybook): 在 module-tools 内使用时不默认添加 babel-plugin-import
fix: some style
fix: 修复一些样式问题
fix: required dependencies of Storybook on runtime dependency
fix: 修复 Storybook 对于 runtime 的必要依赖性
fix: dark mode
fix: 暗黑模式下闪烁
fix(plugin-swc): runtime error when set dev.hmr to false
fix(plugin-swc): 修复 dev.hmr 设置为 false 时出现运行时错误的问题
fix: use api.useResolvedConfigContext instead useResolvedConfigContext from @modern-js/core
fix: 使用 api.useResolvedConfigContext 代替从 @modern-js/core 中导出的 useResolvedConfigContext
Published by github-actions[bot] over 1 year ago
chore(CI): make CI faster
chore(CI): 提升 CI 执行速度
feat(module-tools): add new Buildpreset and extendPreset
function
feat(module-tools): 新增新的 buildPreset 以及 extendPreset 函数
feat: support search index label
feat: 支持搜索索引标签名
docs(module-tools): update buildPreset
api content
docs(module-tools): 更新 buildPreset
API 内容
feat(builder): add dev.beforeStartUrl config
feat(builder): 新增 dev.beforeStartUrl 配置项
feat(builder): support import .wasm assets
feat(builder): 支持引用 .wasm 资源
feat: revert worker use async_hooks
feat: 还原 worker 使用 async_hooks 代码
feat: add noDevTools hook. fix dev log content and add add chinese and english content
feat: 增加 noDevTools hook. 修复 dev 的日志内容, 增加中英内容
feat(builder): support passing URL to html.favicon
feat(builder): 支持在 html.favicon 中直接传入 URL
feat: optimize worker build
feat: 优化 worker 构建
feat: doc tools doc
feat: 文档框架文档开发
fix: modernjs doc blink
fix: modernjs 文档首页闪烁
fix(builder): missing dev.beforeStartUrl schema validation
fix(builder): 修复 dev.beforeStartUrl 缺少 schema 校验的问题
fix: env.PORT should be respected when using listenOptions
fix: 当使用 listenOptions 时,env.PORT 应该被支持
fix(app-tools): incorrect tools.esbuild config
fix(app-tools): 修复 tools.esbuild 格式与文档不一致的问题
fix: windows path compat in modifyPresetOptions
fix: 在 modifyPresetOptions 方法中兼容 windows 路径
fix(module-tools): fix copy context error path
fix(module-tools): 修复 copy context 错误路径的问题
fix(doc-core): doc.icon not work in dev mode
fix(doc-core): 修复 doc.icon 在 dev 模式下不生效的问题
fix: worker use loader error
fix: 修复 worker 中使用 loader 报错问题
fix: filter data when http method is get
fix: 过滤get请求的data
fix: search index file enter userRoot
fix: 防止搜索索引文件路径进入项目目录
fix: the dependency tree should be able to filter out node_modules files containing dot
fix: 依赖树应该能够过滤掉包含"."的node_modules文件
fix: query miss
fix: 链接中的 query 丢失
fix: out dir
fix: outDir 不生效
fix: use 0.0.0.0 instead of localhost as the default dev host
fix: 使用 0.0.0.0 代替 localhost 作为默认的 dev host
fix: doc-tools doc base
fix: 文档框架文档 base 配置
feat: create web app support select build tools (webpack or rspack)
feat: 创建 Web App 支持选择构建工具 (webpack 或 rspack)
feat: support to handle files add and unlink in watch mode
feat: 支持在 watch 模式下处理文件的新增和删除
fix: should not assign nestedRoutesEntry to entrypoint if use v5 router
fix: 使用 v5 路由的时候,不应该在 entrypoint 上挂载 nestedRoutesEntry 属性
fix(builder): fix missing dev.host schema validation
fix(builder): 修复 dev.host 缺少 schema 校验的问题
fix: adjust @babel/core to dependencies instead of devDependencies.
fix: 调整 @babel/core
为 dependencies
而不是 devDependencies
.
fix: micro frontend docs
fix: 微前端文档
fix: remove header info from SSR ctx to avoid security issues, reserved a switch
fix: 移除 SSR 上下文中的 header 信息,避免造成安全问题,预留一个字段开启
fix(storybook): remove require
and fix dist/template path
fix(storybook): 移除 require 代码以及修复 dist/template 的路径问题
fix: set composite false in bundle dts
fix: 打包d.ts时设置 composite 为 false
fix: document param output get undefined in default template
fix: 修复 Document param 中 output 参数取值问题
fix: support configure host for devServer
fix: 支持配置 devServer 的 host
Published by github-actions[bot] over 1 year ago
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 的配置
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\u003e
chore: 序列化react-router-dom ssr 的数据,避免html标签语义冲突。例如当json数据中包含</script>
的时候会被转换成\u003c/script\u003e
fix: support windows
fix: 兼容 windows 系统路径
fix: the @modern-js/app-tools
hooks should set webpack
as default type.
fix: @modern-js/app-tools
hooks 应该将 '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() 报错问题
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
docs: fix buildPreset content
docs: 修复 buildPreset 内容
docs: make v2 docs as default
docs: 将 Modern.js v2 文档作为默认文档
feat(hmr-client): add HMR connected log
feat(hmr-client): add HMR 连接成功的日志
feat: Add config to enable legacy decorator and 2 css-in-js plugins, update swc version
feat: 以及 2 个 css-in-js 插件,升级 swc 版本
feat: reuse bundleAnalyzer plugin, support performance.bundleAnalyze config in rspack-provider
feat: 复用 bundleAnalyzer 插件,在 rspack-provider 中支持 performance.bundleAnalyze 配置项
feat: highlight code diff
feat: diff 代码块高亮
feat: new command tooitip support code highlight
feat: new 命令提示支持代码高亮
feat: more plugin rebase in builder-shared
feat: 更多 plugin 下沉到 builder-shared
feat: use 'devtool: source-map' for ssr webpack bundle
feat: 使用 'devtool: source-map' 作为 ssr 构建时的默认配置
feat: support catch-all routing
feat: 支持通配路由
feat(doc-core): improve table style
feat(doc-core): 优化 table 样式
feat: modern-js support rspack bundler
feat: modern-js 支持 rspack 构建工具
feat: refactor search ui
feat: 重构搜索 UI
perf(builder): improve styled-components compile speed
perf(builder): 优化 styled-components 编译速度
chore: rename MWA to Web App
chore: 将 MWA 重命名为 Web App
feat: optimize doc bundle
feat: 优化文档工程打包体积
update rollup-plugin-dts version, support cts and mts file
更新rollup-plugin-dts版本,支持cts和mts文件
chore: catch react-dom/server require for react 17
chore: 捕获引入 react-dom/server 的逻辑,避免在 react 17 下报错
feat: change dev log color
feat: 修改 dev 展示的内容颜色
fix: regard base
as asset prefix when output.assetPrefix is not set
fix: 当 output.assetPrefix 未设置时,将 base
设置为 assetPrefix
doc(garfish): add doc for garfish
增加微前端文档
support global styles
支持全局样式文件
feat(core): improve support for exporting a function in config file
feat(core): 完善对配置文件中导出函数的支持
feat: flatten mdx content
feat: 对 mdx 的内容进行扁平化
feat(doc-core): optimize ui
feat(doc-core): 优化主题 UI
fix(builder): incorrect progress bar color when compile failed
fix(builder): 修复编译错误时进度条颜色错误的问题
fix: change the builder resolve plugin
fix: 修复 builder resolve 插件
fix(garfish): load microApp can not match it's route
fix(garfish): server.baseUrl is in preference to router.basename
修复微前端模式下约定式路由和自控式路由子应用无法正确加载问题
修复 basename 优先级问题 server.baseUrl 高于 router.basename
fix(tailwind): fix webpack cache not work when using twin.macro
fix(tailwind): 修复使用 twin.macro 时 webpack 缓存不生效的问题
fix(builder): increase size limit when target is node
fix(builder): 修复 target 为 node 时体积限制过小的问题
fix: modernjs 2.0 doc
fix: 修复 modernjs 2.0 文档遗留问题
fix(builder): should not generate cache when build failed
fix(builder): 修复构建失败时会生成无效编译缓存的问题
fix: sub root route should be matched by a splat route
fix: 子根路由应该被通配路由匹配
fix: restore title
fix: 复原 title
fix: same title in a doc
fix: 修复文档中同一标题出现多次导致的渲染问题
fix: lazy import rspack-provider
fix: 懒加载 rspack-provider