modern.js

Modern.js is a web engineering system, including a web framework and a npm package solution.

MIT License

Downloads
1.7M
Stars
4.2K
Committers
117

Bot releases are visible (Hide)

modern.js - v2.16.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3493

    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.

  • #3539

    feat: local sidebar closed when router changed

    feat: 路由变化时关闭本地侧边栏

  • #3493

    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, 减少构建产物体积.新增 externalHelperstransformImportdisbaleSwcTransform 配置.

  • #3553

    hotfix(builder): fix the inaccurate type when bundlerChain chain called

    hotfix(builder):修复 bundlerChain 链式调用后,类型提示不准确问题

  • #3569

    feat(builder): update swc-plugins, core-js, swc-helpers

    feat(builder): 更新 swc-plugins, core-js, swc-helpers

  • #3525

    chore(deps): bump postcss-custom-properties to v13.1.5

    chore(deps): 升级 postcss-custom-properties 到 v13.1.5

  • #3562

    feat(builder): builder plugin supports specifying relative order via the pre / post configuration items

    feat(builder): builder 插件支持通过 pre / post 配置项指定相对顺序

  • #3578

    chore: package.json include the monorepo-relative directory

    chore: 在 package.json 中声明 monorepo 的子路径

  • #3493

    docs: 新增 buildConfig api 和更新 plugin-import 内容

    docs: add buildConfig api content and update plugin-import content

  • #3552

    feat: adjust create tools and new command option order

    feat: 调整 create 工具及 new 命令 option 操作顺序

  • #3493

    chore: update libuild and libuild plugins version to 0.12.0

    chore: 更新 libuild 和 libuild 插件的版本到 0.12.0

  • #3540

    feat: support stylus plugin in Rspack build

    feat: stylus 插件支持在 Rspack 构建时使用

  • #3523

    feat(builder): add output.disableSvgr configuration item

    feat(builder): 新增 output.disableSvgr 配置项

  • #3563

    chore(app-tools): export AppToolsOptions type

    chore(app-tools): 导出 AppToolsOptions 类型

Bug Fix:

  • #3544

    fix(doc-core): add useEffect dependencyList for docLayout and use padding in content

    fix(doc-core): 给docLayout组件添加 useEffect 的依赖项并给doc content加上padding

  • #3533

    fix: dev server crashed when prepare api handler failed

    fix: 修复更新 api server 报错导致 dev server 退出的问题

  • #3537

    fix(builder): browserslist config should not affect node bundles

    fix(builder): 修复 browserslist 配置会对 node 产物生效的问题

  • #3548

    fix: fix storybook runtime addon

    fix: 修复 storybook runtime addon

  • #3571

    fix: toc hmr not work

    fix: toc 热更新不生效

  • #3482

    fix: upgrade libuild version to support tailwind in watch mode

    fix: 更新libuild版本以支持tailwindcss在watch模式下生效

  • #3551

    fix: route id should not include [ or ]

    fix: 路由 id 不应该包含 [ 或 ]

  • #3529

    fix: home page hmr & e2e build test

    fix: 首页热更新问题 & doc tools e2e 生产环境构建测试

  • #3547

    fix: packagePath validate regex

    fix: 修复 packagePath 校验正则

  • #3560

    fix: nest relative ../ path not work in mdx-rs

    fix: mdx-rs 中嵌套相对路径 ../ 不生效

  • #3564

    fix: make plugin options optional

    fix: 使插件参数变为可选项

  • #3568

    fix: sidebar not exist when meeting chinese path

    fix: 侧边栏在遇到中文路径时不存在

  • #3559

    fix(doc-core): failed to resolve useLocation method in some cases

    fix(doc-core): 修复个别情况下找不到 useLocation 方法的问题

  • #3541

    fix: remove ignore logic in mergeConfig for tools.devServer

    fix: 移除 tools.devServer 在 mergeConfig 时候的忽略逻辑

  • #3576

    fix(builder-shared): add protocol for generated URL when assetPrefix is true

    fix(builder-shared): assetPrefix 为 true 时生成的 URL 添加 protocol

  • #3566

    fix: support chinese route

    fix: 支持中文路由

  • #3531

    fix: get lang from useLang not pageData

    fix: 使用useLang获取lang

  • #3531

    fix: set defaultHasAside false if in iframe

    fix: 被iframe引入时默认不展示aside

  • #3528

    fix: set sidebar and aside max-height not height

    fix: 设置sidebar和aside的最大高度而不是高度属性

modern.js - v2.15.0

Published by github-actions[bot] over 1 year ago

Release v2.15.0

Features:

  • #3513

    feat(doc-core): support addPages

    feat(doc-core): 支持 addPages 插件钩子

  • #3511

    feat(transformImport): support disable default transform import, add more test of transformImport

    feat(transformImport): 支持关闭默认的 transform import,增加更多 transformImport 测试

  • #3510

    chore(runtime): remove unused @testing-library/react-hooks

    chore(runtime): 移除多余的 @testing-library/react-hooks

Bug Fix:

  • #3522

    fix: rspack back to v0.1.7

    fix: rspack 回退到 v0.1.7

  • #3515

    fix(app-tools): missing MODERN_TARGET type

    fix(app-tools): 缺少 MODERN_TARGET 类型定义

modern.js - Release v2.14.0

Published by caohuilin over 1 year ago

Features:

  • #3484

    feat: add esbuildOptions to support that change esbuild options directly

    feat: 新增esbuildOptions配置支持直接修改esbuild最终配置

  • #3463

    chore(deps): bump cssnano from v5 to v6

    chore(deps): 将 cssnano 从 v5 升级到 v6

  • #3472

    feat: add doc-tools e2e

    feat: 添加 doc-tools e2e 测试用例

  • #3460

    feat(builder): add convertToRem.inlineRuntime config

    feat(builder): 新增 convertToRem.inlineRuntime 配置项

  • #3462

    chore(generator): make rspack a priority

    chore(generator): 将启用 rspack 作为优先选项

  • #3498

    chore(server): no longer replace globalVars when compiler is babel

    chore(server): 进行 babel compile 时不再替换 globalVars

  • #3492

    feat: adjust server.worker config to deploy.worker.ssr

    feat: 调整 server.worker 为 deploy.worker.ssr

  • #3496

    feat: support Comment component in Document.tsx

    feat: 支持 Comment 组件,可以保留用户的注释到最终的 html 上

  • #3512

    fix: change content padding-bottom from 48px to 72px, equal to header height

    fix: 将内容区域的底部内边距从48px修改为72px,和头部高度保持一致

  • #3459

    feat: add hook modifyRoutes

    feat: 增加 hook modifyRoutes

  • #3485

    feat: adpate rspack copy plugin

    feat: 适配 rspack copy 插件

  • #3481

    chore(rspack-provider): update rspack to 0.1.8

    chore(rspack-provider): 升级 rspack 相关依赖到 0.1.8 版本

  • #3476

    feat: re-export createPath from react-router

    feat: 从 react-router 导出 createPath

  • #3445

    fix(devServer): using current host and port to create HMR connection

    fix(devServer): 建立 HMR 连接时默认使用当前 host 和 port

  • #3475

    feat: support config handle of Route

    feat: 支持配置 Route 的 handle 属性

  • #3448

    feat: add ssr.inlineScript for use inline json instead inline script when ssr

    feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本

  • #3473

    chore(cli): improve commands descriptions

    chore(cli): 优化命令的描述文案

  • #3501

    feat(builder): source.globalVars support function usage

    feat(builder): source.globalVars 支持函数写法

  • #3480

    feat: support extendPageData hook and last updated time

    feat: 支持 extendPageData 钩子和最后更新时间功能

  • #3469

    feat: add optional dynamic routes docs

    feat: 添加可选动态路由文档

Bug Fix:

  • #3443

    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}

  • #3497

    fix(app-tools): failed to scan public dir when using Rspack

    fix(app-tools): 修复 Rspack 模式读取 public 目录失败的问题

  • #3427

    fix(utils): the esm format files should be generate for the client

    fix(utils): 应该为客户端使用,生成 esm 格式的文件

  • #3488

    fix(app-tools): can not disable output.cleanDistPath

    fix(app-tools): 修复无法禁用 output.cleanDistPath 的问题

  • #3491

    fix: doc e2e test in windows

    fix: 解决 windows 下 e2e 测试失败的问题

  • #3458

    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 资源,

  • #3503

    fix: ssr and document integration test error

    fix: 修复 ssr 和 document 的集测错误

  • #3487

    fix(monorepo): ignore unnessary peer deps warning from antd

    fix(monorepo): 忽略由 antd 造成的不必要的 peer deps 警告

  • #3455

    fix(app-tools): should not print all addresses when custom dev.host

    fix(app-tools): 修复自定义 dev.host 时会输出多余的 URL 地址的问题

  • #3477

    fix: router missing App static property

    fix: router 确实 App 的静态属性

  • #3504

    fix: 更新集测 snapshot,修复 document 功能在 node 14 下的错误

    fix: update test snapshot, fix document error in node 14

  • #3470

    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

  • #3508

    fix(app-tools): failed to validate globalVars in legacy mode

    fix(app-tools): 修复兼容模式下 globalVars 类型校验错误的问题

  • #3500

    fix: ssr stream test case

    fix: 修复 ssr stream 测试用例

  • #3502

    fix(runtime): MODERN_TARGET is not injected when using Rspack

    fix(runtime): 修复 Rspack 模式未注入 MODERN_TARGET 的问题

  • #3494

    fix(builder): update source.alias type when using Rspack

    fix(builder): 更新使用 Rspack 时的 source.alias 类型

  • #3489

    chore: remove plugin-egg and plugin-nest

    chore: 移除 plugin-egg 和 plugin-nest

  • #3499

    fix: set encoding for defered loader

    fix: 为 defer loader 设置 encoding

  • #3465

    fix(doc-core): fix failed to resolve @modern-js/utils/logger

    fix(doc-core): 修复引用 @modern-js/utils/logger 失败的问题

modern.js - v2.13.4

Published by github-actions[bot] over 1 year ago

Release v2.13.4

Bug Fix:

  • #3452

    fix(integration-test): should await killApp

    fix(integration-test): killApp 应该被 await

modern.js - v2.13.3

Published by github-actions[bot] over 1 year ago

Release v2.13.3

Features:

  • #3431

    feat(builder): add assetsRetry.inlineScript config

    feat(builder): 新增 assetsRetry.inlineScript 配置项

Bug Fix:

  • #3447

    fix: should empty dist dir when execute deploy command

    fix: 应该清空 dist 目录,当执行 deploy 命令时

  • #3437

    fix(module-tools): missing postcss dependency

    fix(module-tools): 修复缺少 postcss 依赖的问题

  • #3442

    fix(builder): set camel2dashName properly

    fix(builder): 正确配置 transformImport babel 插件的 camel2dashName

  • #3440

    fix: inline-loader match path error in windows

    fix: inline-loader 在 windows 里路径匹配错误。

  • #3441

    fix(builder): devServer.client is not deep merged

    fix(builder): devServer.client 配置项未被 deep merged

modern.js - v2.13.2

Published by github-actions[bot] over 1 year ago

Features:

  • #3432

    feat: optimize route isExist logic

    feat: 优化路由 isExist 逻辑

Bug Fix:

  • #3434

    fix(core): ignore error when clear temp config files

    fix(core): 忽略清理临时文件时的异常

  • #3424

    fix: theme types cannot access

    fix: 主题类型无法访问

  • #3430

    fix: nodeApi type export in modern-js/core

    fix: 修复 nodeApi 在 modern-js/core 中的类型导出

  • #3433

    fix: export PluginOptions type in module-doc

    fix: 从 module-doc 中导出 PluginOptions 类型

modern.js - v2.13.1

Published by github-actions[bot] over 1 year ago

Bug Fix:

  • #3426

    fix: use nodeApi instead node-api in @modern-js/core exports

    修复: 使用 nodeApi 代替 node-api 作为 @modern-js/core 的导出

modern.js - v2.13.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3423

    feat: generator plugin support relative path

    feat: 生成器插件支持相对路径

  • #3415

    fix: use display:table in table element

    fix: 使用display:table在table元素上

  • #3419

    doc: add content about dev config

    doc: 添加关于 dev 配置的内容

  • #3366

    refactor: move add builder-plugin-node-polyfill action to builder-generator

    refactor: 将添加 builder-plugin-node-polyfill 的行为移动到 builder-generator

  • #3381

    feat(builder): support using RegExp to inline part of chunks

    feat(builder): 支持通过正则来内联部分资源

  • #3395

    refactor(app-tools): inject assetPrefix by entry

    refactor(app-tools): 通过 entry 来注入 assetPrefix 变量

  • #3400

    chore(rspack-provider): apply fullySpecified mjs default value in Rspack

    chore(rspack-provider): 在 Rspack 中设置 fullySpecified 在 mjs 下的默认值

  • #3415

    refactor: remove inject template and unuse config, add internal compoennt named overview

    refactor: 移除插入模板的逻辑和无用的配置,并添加内置概览组件

  • #3386

    docs: add prefetch docs

    docs: 添加 prefetch 的文档

  • #3363

    feat: the rspack unsupport inline loader, so we move data-loader to bundler.module.rules

    feat: rspack 不支持 inline loader, 所以我们将 data-loader 移动到 bundler.module.rules 配置中去。

  • #3390

    chore: bump core-js and swc

    chore: 升级 core-js 和 swc

  • #3383

    feat(builder): add html.scriptLoading config

    feat(builder): 新增 html.scriptLoading 配置

  • #3397

    feat: support global props in createApp and pass garfish props in

    feat: createApp 支持全局属性,garfish 通过这个方式透传 garfish props

  • #3401

    feat(app-tools): export mergeConfig function

    feat(app-tools): 导出 mergeConfig 函数

  • #3406

    feat: redirect locale language in first visit

    feat: 优化首次访问时的语言重定向

  • #3396

    feat: support fuzzy search for remote search

    feat: 服务端搜索支持模糊搜索

  • #3373

    fix: search broken when search keyword is null

    fix: 搜索关键字为空时搜索过程卡住

  • #3403

    chore: improve ssr docs, add more use case for node/web code split

    chore: 优化 ssr 文档,为 node/web 代码分割添加更多使用场景

  • #3418

    feat: use declarationDir instead of outDir

    feat: 使用 declarationDir 替换 outDir

  • #3405

    perf(plugin): reduce bundle size

    perf(plugin): 优化包体积

  • #3411

    chore(builder): support get builder/shared compiled path in provider getCompiledPath api

    chore(builder): 支持通过 provider getCompiledPath api 获取 builder/shared 中预打包依赖路径

  • #3399

    feat(rspack-provider): update Rspack to 0.1.7

    feat(rspack-provider): 升级 Rspack 相关依赖至 0.1.7

  • #3402

    feat: normalize link and image in mdx-rs

    feat: mdx-rs 中支持 link 和 图片的规范化

Bug Fix:

  • #3421

    fix(runtime): compile react-router to ensure the compatibility

    fix(runtime): 通过编译 react-router 来保证对低版本浏览器的兼容性

  • #3378

    fix(builder): HtmlTagsPlugin failed to join public path with absolute url

    fix(builder): HtmlTagsPlugin 为绝对路径拼接 public path 会导致格式错误

  • #3371

    fix: plugin config hook can not get bundlerType, so we can't set babelConfig correctly in ssr plugin

    fix: 插件的 config 钩子不能获得 bundlerType,所以我们在 ssr 插件不能正确的设置 babelConfig

  • #3409

    fix: pin core-js version to 3.27 in SWC

    fix: SWC 相关的 core-js 版本固定到 3.27

  • #3369

    fix(doc-core): anchor

    fix(doc-core): 锚点无效

  • #3367

    fix: the defineLegacyConfig should set autoLoadPlugins = true by default.

    fix: defineLegacyConfig 应该默认将 autoLoadPlugins 设置为 true

  • #3368

    fix: code highlight & image not show

    fix: 代码高亮失效 & 图片不显示

  • #3413

    fix: generator plugin default config not work

    fix: 修复生成器插件默认配置未生效问题

  • #3420

    feat: set the default language of CLI to English

    feat: 将命令行的默认语言设置为英文

  • #3392

    chore: support output.merge / resolve.merge / resolve.get / resolve.fallback in bundler-chain

    chore: 在 bundler-chain 中支持 output.merge / resolve.merge / resolve.get / resolve.fallback 方法

  • #3420

    fix(upgrade): i18n of upgrade command not work

    fix(upgrade): 修复 upgrade 命令的 i18n 配置不生效的问题

  • #3410

    fix(module-tools): fix noClear option not work

    fix(module-tools): 修复 noClear 配置不生效

  • #3394

    fix(builder-plugin-swc): remove default env.mode

    fix(builder-plugin-swc): 删除 env.mod 的默认值

  • #3385

    hotfix: support bffPlugin when use rspack

    hotfix: 在使用 Rspack 构建时,支持 BFF 插件

modern.js - v2.12.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3341

    chore(rspack-provider): use rspack stats.time instead of manual timing

    chore(rspack-provider): 使用 rspack stats.time 代替手动计时

  • #3303

    feat(doc-tools): print dev server URLs with base

    feat(doc-tools): 输出 dev server 的 URLs 时补全 base 信息

  • #3312

    doc: 修正文档中使用@edenx/runtime 的部分

    doc: Correct the sections in the document that use @edenx/runtime.

  • #3332

    feat(doc-core): bundle theme code

    feat(doc-core): 对默认主题的代码进行预打包,优化文档站构建效率。

  • #3333

    chore: upgrade libuild version to ~0.11.8

    chore: 更新 libuild 版本到 ~0.11.8

  • #3344

    chore(deps): bump fork-ts-checker-webpack-plugin to v8

    chore(deps): 升级 fork-ts-checker-webpack-plugin 到 v8

  • #3330

    feat: support redirect config

    feat: 支持redirect配置

  • #3316

    feat(doc-core): improve dead link log message

    feat(doc-core): 优化死链检测的日志

  • #3360

    feat: support noEmitOnError for ts compiler & remove assetsByChunkName from RouterPlugin

    feat: 支持 ts 编译器的 noEmitOnError 选项 & 从 RouterPlugin 中移除 assetsByChunkName

  • #3349

    chore: remove to module folder

    chore: 移动至module文件夹

  • #3347

    chore(rspack-provider): update rspack to 0.1.6

    chore(rspack-provider): 升级 rspack 相关依赖到 0.1.6

  • #3311

    feat: enable isolatedModules

    feat: 开启isolatedModules

  • #3306

    feat(plugin-module-node-polyfill, module-docs): add Node Polyfill feature

    feat(plugin-module-node-polyfill, module-docs): 添加 Node Polyfill 功能。

Bug Fix:

  • #3327

    fix(app-tools): failed to restart CLI

    fix(app-tools): 修复 CLI 重启失败的问题

  • #3317

    fix: referenceCssAssets should not include publicPath in bundle

    fix: referenceCssAssets 不应该包含 publicPath 字段在 bundle 中

  • #3352

    fix: search result not accurate

    fix: 解决搜索结果遗漏的问题

  • #3313

    fix: the SSR plugin will product some effects, disable the ssr plugin when user doesn't use ssr

    fix: SSR 插件将会尝试一些副作用,如果用户没有使用它时禁用这个插件。

  • #3354

    fix: function injectServerData name typo

    fix: 修复 injectServerData 函数命名错误

  • #3324

    fix(swc): can not find object_destructuring_empty.mjs

    fix(swc): 修复找不到 object_destructuring_empty.mjs 的问题

  • #3357

    fix: schema error in sidebar link

    fix: 修复侧边栏链接 schema 错误问题

  • #3318

    fix(builder): should add id prefix after minify SVG

    fix(builder): 压缩 SVG 后需要添加 id 前缀

  • #3359

    fix(doc-core): fix Tabs props type

    fix(doc-core): 修复Tabs组件类型

  • #3320

    fix: code highlight

    fix: 代码高亮无效

  • #3326

    fix(plugin-module-babel): export right name

    fix(plugin-module-babel): 导出正确的模块名称

  • #3348

    fix: beforeCreateRouter should be false after render router

    fix: 在渲染 router 后,beforeCreateRouter 应该为 false

  • #3340

    fix: switch lang 404

    fix: 切换语言后 404 问题

  • #3319

    fix(module-tools): fix input glob path

    fix(module-tools): 修复 input glob 路径的问题

  • #3315

    fix(module-tools): fix warning content

    fix(module-tools): 修复警告内容

  • #3329

    fix(module-tools): fix noClear option not work

    fix(module-tools): 修复 noClear 配置不生效

  • #3334

    fix: fix darkmode that don't work

    fix: 修复darkmode不生效的问题

  • #3358

    fix: link base missing

    fix: 链接 base 丢失问题

  • #3362

    fix: update libuild version to fix windows resolve path

    fix: 升级libuild版本来修复windows机器对于路径的解析

modern.js - v2.11.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3175

    chore: optimize @modern-js/create-request types

    chore: 优化 @modern-js/create-request 类型

  • #3294

    feat: support code line highlight

    feat: 支持代码行高亮

  • #3236

    feat(builder): support output.assetsRetry in rspack-provider

    feat(builder): 在 rspack-provider 中支持 output.assetsRetry 配置能力

  • #3263

    feat: 控制台输出 rspack 版本

    feat: Print the version of rspack in the console.

  • #3295

    feat: support use node api run dev & build & deploy command

    feat: 支持通过 node api 运行 dev & build & deploy 命令

  • #3237

    feat: sink builder-plugin-swc abilities to builder-plugin-swc-base.

    feat: 将 builder-plugin-swc 能力下沉到 builder-plugin-swc-base 里.

  • #3258

    feat: 添加 source.transformImoprt

    feat: add source.transformImoprt

  • #3288

    feat(plugin-image-compress): compatible array config

    feat(plugin-image-compress): 兼容传入数组配置

  • #3283

    feat: assets and data prefetching is supported

    feat: 支持资源和数据预加载

  • #3278

    chore(plugin-lint): deprecate modern pre-commit command

    chore(plugin-lint): 废弃 modern pre-commit 命令

  • #3262

    chore(module-tools): pretty the log format

    chore(module-tools): 优化日志格式

  • #3248

    feat(builder): print total file size after build

    feat(builder): 构建后输出文件体积的总和

  • #3249

    feat(utils): move universal utils to the universal folder

    feat(utils): 将运行时使用的 utils 移动到 universal 目录

  • #3243

    chore: adjust doc-tools constructor

    chore: 调整 doc-tools 入参

  • #3264

    chore(utils): bump commander from v8 to v10

    chore(utils): 将 commander 从 v8 升级到 v10

  • #3277

    feat: add header anchor in mobile

    feat: 移动端显示 header anchor

  • #3290

    feat: use generated default config objects instead of global objects

    feat: 默认配置项使用动态生成替代全局对象

  • #3268

    feat: add dts.abortOnError config

    feat: 添加 dts.abortOnError 配置

  • #3257

    feat(builder): support setting forceSplitting to be an object

    feat(builder): 支持将 forceSplitting 设置为一个对象

  • #3297

    chore(rspack-builder): update Rspack to 0.1.4

    chore(rspack-builder): 升级 Rspack 相关依赖至 0.1.4 版本

Bug Fix:

  • #3259

    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 语法。

  • #3244

    fix: translate some chinese to english in en docs

    fix: 将部分英文文档中的中文翻译为英文

  • #3292

    fix: The compiled babel-loader can't find the babel/core in builder-shared

    fix: 在 builder-shared 中的预编译 babel-loader 找不到 babel/core 依赖

  • #3274

    fix: load chunk while can not load all css asset, when streaming ssr.

    fix: 使用 streaming ssr 时,不能加载当前 chunk 的所有 css 资源

  • #3282

    fix(builder): remove duplicated babel-plugin-import

    fix(builder): 移除重复注册的 babel-plugin-import

  • #3279

    fix(builder): incorrect asset URL in windows

    fix(builder): 修复 windows 上生成静态资源 URL 错误的问题

  • #3253

    fix: doc tools cli options

    fix: doc tools cli 参数

  • #3267

    fix: match content result

    fix: 修复搜索错误

  • #3241

    fix(plugin-swc): add warning when using esbuild with SWC

    fix(plugin-swc): 在同时启用 SWC 和 esbuild 时抛出 warning

  • #3296

    fix(builder): should preserve viewBox when minify svg

    fix(builder): 修复压缩 svg 导致 viewBox 丢失的问题

  • #3260

    fix(rspack-builder): support rspack global node-polyfill use workaround

    fix(rspack-builder): 采用临时方案在 rspack 中支持 global node-polyfill

  • #3269

    fix: fix base

    fix: 修复base配置

  • #3266

    fix: distpath.root not take effect when serve

    fix: 修复 distpath.root 在 run serve 时不生效的问题

  • #3242

    fix: remove nestedRoutes file from @modern-js/utils

    fix: 将 nestedRoutes 从 @modern-js/utils 中移除

  • #3255

    fix: schema parser error, builder tools.devServer.proxy can be a array

    fix: schema 解析错误,builder `tools.devSerer.proxy' 可以是个数组。

  • #3230

    fix: fix lost props when using nested route in micro-front-end mode

    修复嵌套路由在微前端场景下主子应用传递 props 丢失问题

  • #3286

    fix: the swc compiler can not create two different options instance && move default config to swc-base

    fix: swc 转译器无法创建两个不同配置的实体 && 将默认配置移到 swc-base

  • #3273

    fix(module-tools, module-tools-docs): fix svgr usage

    fix(module-tools, module-tools-docs): 修复 svgr 的使用

  • #3284

    fix: 移除 babel plugin-import 对于非法函数参数的校验

    fix: remove babel plugin-import invalid function type options checking

  • #3265

    fix(builder): failed to set empty distPath.js/css

    fix(builder): 修复设置 distPath.js/css 为空时报错的问题

  • #3246

    fix(core): beforeExit should be sync workflow

    fix(core): beforeExit 需要使用同步的 workflow

  • #3291

    fix: should hide publicPath in injected manifest

    fix: 应该隐藏 publicPath 在注入的 manifest 中

  • #3261

    fix(doc-core): run string-replace-loader before mdx-loader

    fix(doc-core): 在 mdx-loader 之前执行 string-replace-loader

  • #3281

    fix(utils): remove useless oneOf chainId,avoid user usage error.

    fix(utils): 移除无用的 oneOf chainId,防止用户使用异常

modern.js - v2.10.0

Published by github-actions[bot] over 1 year ago

Release v2.10.0

Features:

  • #3194

    feat: .env file should be load when prod server is started

    feat: 在 server 启动时,.env 文件应该被加载

  • #3140

    feat: rspack-provider support tools.babel

    feat: rspack-provider 支持 tools.babel

    feat(doc-tools): support --config CLI option

    feat(doc-tools): 支持 --config CLI 选项

  • #3193

    feat: when enable bff handle render, support use useContext to get framework plugin context in data loader.

    feat: 当开启 BFF 托管渲染时,支持在 data loader 中使用 useContext 获取框架插件提供的上下文。

  • #3174

    chore: upgrade jest and puppeteer

    chore: 升级 jest 和 puppeteer 到 latest

  • #3186

    feat(core): throw warnings when config file is not found

    feat(core): 找不到配置文件时抛出 warning

  • #3185

    feat(doc-core): improve paragraph padding

    feat(doc-core): 优化段落间距

  • #3203

    feat: support plugin in module-tools

    feat: 支持模块工程插件

  • #3196

    feat(doc-core): improve directive block style

    feat(doc-core): 优化 directive block 的样式

  • #3218

    feat: warning when user registe plugin duplication

    feat: 当用户重复注册插件时进行 warning 提示

  • #3165

    chore(deps): bump webpack from 5.75.0 to 5.76.2

    chore(deps): 将 webpack 从 5.75.0 升级至 5.76.2

  • #3191

    feat: create tools add doc solution

    feat: create 工具增加文档站工程方案

  • #3173

    chore(builder): update rspack & show rspack format error

    chore(builder): 更新 rspack 版本 & 优化 rspack 错误日志输出

  • #3195

    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

  • #3214

    feat(doc-tools): add a tip when no search result

    feat(doc-tools): 增加无搜索结果时的提示文案

  • #3221

    feat: add output.splitRouteChunks

    feat: 添加 output.splitRouteChunks 配置

  • #3203

    feat: export getCustomMDXComponent

    feat: 导出getCustomMDXComponent

  • #3187

    chore: appearance button position

    chore: 调整主题切换按钮位置

  • #3206

    feat: security.checkSyntax support exclude configuration.

    feat: security.checkSyntax 支持 exclude 配置项。

  • #3208

    perf: improve routerPlugin performance

    perf: 优化 routerPlugin 的性能

Bug Fix:

  • #3184

    fix: storybook generator dependencies judge error

    fix: 修复 storybook 生成器判断依赖时异常

  • #3222

    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 的获取、删除操作

  • #3197

    fix(doc-core): fix left sidebar height

    fix(doc-core): 修复左侧 sidebar 高度不足的问题

  • #3198

    fix: add types field in package.json

    fix: 添加 package.json 中的 types 字段

  • #3190

    fix: fix typos

    fix: 修复拼写错误

  • #3172

    fix: nav link normalize

    fix: nav link 规范化

  • #3189

    fix: fix optional peerDep cause ghost dep

    修复 peerDep 带来的幻影依赖问题

  • #3232

    fix(doc-core): fix code background color in containers

    fix(doc-core): 修复 container 中的代码块背景色

  • #3192

    fix: inject i18n placeholder in streaming ssr

    fix: 流式 SSR 中,注入 i18n 数据占位字段

  • #3179

    fix: main doc theme

    fix: 首页深色模式问题

  • #3217

    fix: api lang and merge doc logic

    fix: API组件的语言切换以及文档配置合并逻辑

  • #3224

    fix: split server and runtime code in plugin-data-loader

    fix: 分离 plugin-data-loader 中服务端和客户端运行时的代码

  • #3211

    fix: should get publicPath from webpack stats in router-plugin

    fix: 应该从 webpack stats 获得 publicPath

  • #3229

    fix: update arco-design version

    fix: 升级 arco-design 的版本

  • #3170

    fix(builder): update source.define type and schema check in rspack-provider

    fix(builder): 更新 rspack-provider 中 source.define 的类型定义与校验

  • #3223

    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 配置能力

  • #3207

    fix: fix globalStyle path

    fix: 修复全局样式文件路径

modern.js - v1.22.8

Published by github-actions[bot] over 1 year ago

Release v1.22.8

Bug Fix:

  • #3201

    fix: fix optional peerDep cause ghost dep

    修复 peerDep optional 带来的幻影依赖问题

modern.js - v2.9.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3153

    feat: optimize doc ui theme

    feat: 优化文档 UI 主题

  • #3157

    feat: improve vendor split chunk rule

    feat: 优化针对第三方库的拆包策略

  • #3136

    docs(module-tools-doc): format content

    docs(module-tools-doc): 格式化内容

  • #3144

    chore(core): remove legacy transformPlugin option

    chore(core): 移除不再使用的 transformPlugin 选项

  • #3149

    chore: fix some TODO comments

    chore: 处理一些标记 TODO 的问题

  • #3139

    feat: support rspack

    feat: 支持 Rspack 构建

  • #3127

    chore(generator): update solution names

    chore(generator): 更新创建项目时的工程类型名称

Bug Fix:

  • #3128

    fix: mailto url

    fix: 修复 mailto url

  • #3130

    fix: remove serialze-javascript from client bundle

    fix: 移除客户端构建产物中的 serialze-javascript

  • #3141

    fix: server worker dynamicImportMode config

    fix: 修复 server worker 时 dynamicImportMode 配置

  • #3141

    feat: support streaming ssr in worker

    feat: worker 支持 streaming ssr

  • #3147

    fix: move chunkmap.css comment to bottom of head

    fix: 将 chunkmap.css 标记移动到 head 底部

  • #3121

    fix: rspack-provider swc plugin should not inject core-js in ssr.

    fix: rspack-provider swc 插件不应该在 SSR 下注入 core-js

  • #3145

    fix: fix chunk css location in template

    fix: 修复异步加载的 css 在模版文件中的位置

  • #3141

    fix: worker router config error when enable bff

    fix: 修复当开启 BFF 时 worker 路由配置

  • #3135

    fix: should not replace to alias when filePath is not in src

    fix: 不应该替换为别名,当 filePath 不在 src 目录中时

  • #3132

    fix: fix data-loader compat in windows

    fix: 修复 data loader 在 windows 下的兼容性问题

  • #3155

    feat: enable svgo to avoid ID conflicts

    feat: 启用 svgo 以避免 ID 冲突

  • #3154

    fix: optimize the regexp for route matching rules

    fix: 优化路由匹配正则

  • #3120

    fix: export missing react-router types

    fix: 导出缺少的 react-router 类型

  • #3141

    fix: doc info block not work

    fix: 修复文档站 info 不生效问题

  • #3138

    fix(builder): add additional note about hashDigest in cssModuleLocalIdentName

    fix(builder): 添加 cssModuleLocalIdentName 中关于 hashDigest 的补充说明

  • #3119

    fix: remove jsc config

    fix: 移除 jsc 配置

  • #3133

    fix: the asset may be removed by InlineChunkHtmlPlugin

    fix: asset 可能会被 InlineChunkHtmlPlugin 移除

  • #3161

    fix: asset url using incorrect path seperator in windows

    fix: 修复 windows 中 asset url 使用错误的路径分隔符

modern.js - v2.8.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3050

    feat: add custom web server docs

    feat: 添加自定义 Web Server 文档

  • #3061

    feat: bump @changesets/cli version

    feat: 升级 @changesets/cli 版本

  • #3110

    feat(builder): update rspack to 0.1.0

    feat(builder): 升级 rspack 至 0.1.0

  • #3105

    feat: add new module plugins

    feat: 添加新的 Module 插件

  • #3068

    feat: support start web service only

    feat: 支持只启动 web 服务

  • #3076

    feat: update Rspack text

    feat: 更新 Rspack 文案信息

  • #3088

    feat: enable swc css minify

    feat: 启用 swc css 压缩

  • #3063

    feat: gen release note support return result

    feat: 生成 ReleaseNote 函数支持返回结果

  • #3108

    feat: builder support tools.bundlerChain config

    feat: builder 支持 tools.bundlerChain config

  • #3090

    feat: add banner and plugin-import

    feat: 谈价 banner 插件和 import 插件

  • #3075

    test(builder-plugin-swc): add test for builder-plugin-swc loader

    test(builder-plugin-swc): 添加 builder-plugin-swc 的 loader 测试

  • #3065

    Fix Typo

    修复 Typo

  • #3109

    hotfix(builder): use community loader instead of Rspack unstable sass & less loader

    hotfix(builder): 使用社区 sass-loader 和 less-loader 替代 Rspack 非稳定的 sass 和 less loader

  • #3109

    feat: support router-plugin in Rspack bundler.

    feat: 在 Rspack bundler 里支持 router-plugin

  • #3056

    refactor: app-tools builder

    refactor: 重构 app-tools builder

  • #3084

    fix: move the analyze webpackChain config to app-tools builder shared

    fix: 将 anylyze 的 webpackChain 配置项移植进 app-tools builder shared

  • #3074

    fix: fix duplicate re-exports of reduck

    fix: 修复从 reduck 重复导出的 API

  • #3102

    feat: optimize check deak link log

    feat: 优化死链检测日志

Bug Fix:

  • #3093

    fix(builder): missing some type in tools.cssExtract

    fix(builder): 修复 tools.cssExtract 缺少部分类型的问题

  • #3064

    fix: should match the most similar entry

    fix: 应该匹配最相似的 entry

  • #3035

    fix: ignore some tsconfig compileOptions

    fix: 忽略一些 tsconfig 的 compileOptions 配置

  • #3051

    fix(builder): failed to set CDN URL via html.tags

    fix(builder): 修复 html.tags 无法设置 CDN URL 的问题

  • #3054

    fix: specify the resolve.conditionNames when target = node.

    fix: 当 target = node,指定 resolve.conditionNames

  • #3099

    fix: static path miss

    fix: 静态资源路径错误

  • #3053

    fix: remove require.cache first when the bff loader execute

    fix: 当 bff.loader 执行时,移除 require.cache

  • #3094

    fix: fix web app template

    fix: 修复 web app 模板

  • #3098

    fix: the adapterSSR builder plugin modifyChain Hooks is not async function

    fix: adapterSSR builder 插件的 adapterSSR Hooks 不是异步函数

  • #3071

    fix: fix types pathname for model field

    fix: 修复 model 字段对应的 types 路径

  • #3060

    fix: add missing react-router type

    fix: 添加丢失的 react-router 导出类型

  • #3045

    fix(generators): update api document link

    fix(generators): 更新 api 文档链接

  • #3089

    fix: search index not found

    fix: 搜索索引没有找到

  • #3070

    fix: fix the order of runtime plugins

    fix: 修复 runtime plugin 执行顺序

  • #3095

    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 的路径和查询字符串

  • #3052

    fix(builder): fix incorrect browserslist config

    fix(builder): 修复错误的 browserslist 配置

  • #3080

    fix: pass basename to matchRoutes

    fix: 修复 matchRoutes 未传入 basename 参数

  • #3072

    fix(builder-plugin-swc): should handle object type sourceMap correctly

    fix(builder-plugin-swc): 正确处理 loader 接收的对象类型 sourceMap

  • #3092

    fix(builder-rspack-provider): support entry mode polyfill

    fix(builder-rspack-provider): 支持 entry 模式的 polyfill 注入

  • #3097

    fix: search index dev middleware

    fix: search index 中间件无效

  • #3096

    fix(builder-plugin-swc): should not override user react runtime

    fix(builder-plugin-swc): 不应该覆盖用户 react runtime 配置

  • #3087

    fix: remove esbuild from bff-core

    fix: 从 bff-core 移除 esbuild

  • #3078

    fix: nested routes in ssg

    fix: 修复嵌套路由在 SSG 中的问题

  • #3067

    fix(plugin-swc): missing @modern-js/builder-shared dependency

    fix(plugin-swc): 修复缺少 @modern-js/builder-shared 依赖的问题

  • #3066

    fix: unexpected title

    fix: title 错误问题

modern.js - v2.7.0

Published by github-actions[bot] over 1 year ago

Features:

  • #3016

    feat: support tabs group

    feat: 支持 tabs 分组联动

  • #3018

    fix: add watch mode to copy

    fix: 为 copy 功能补充 watch 逻辑

  • #3001

    feat: support optional params in file-based route

    feat: 约定式路由支持可选参数

  • #2997

    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 报错

  • #3019

    feat(builder): support output.enableAssetFallback in rspack-provider

    feat(builder): 在 rspack-provider 中支持 output.enableAssetFallback 配置项

  • #2984

    feat: support deferred data for streaming ssr

    feat: 流式渲染支持 deferred data

  • #2987

    feat: nav sub menu group

    feat: 支持导航栏子菜单分组

  • #3037

    feat(generator): remove runtime dep for storybook

    feat(generator): 移除 Storybook 对于 runtime 的依赖

  • #3031

    feat: 增加 copy 配置以及对 core-js path 的 alias

    feat: support copy config and add alias of core-js

  • #2985

    hotfix(builder): make devServer.proxy schema check loosely

    hotfix(builder): devServer.proxy 类型检验采用非严格模式

  • #2986

    chore: make file naming consistent

    chore: 统一文件命名为小驼峰格式

  • #2990

    feat: logo dark mode

    feat: 支持深色模式 logo

  • #2994

    chore: make test files naming consistent

    chore: 统一测试文件命名为小驼峰格式

  • #3009

    feat: support custom apiDir, lambdaDir and style of writing for bff

    feat: 支持定制 api 目录,lambda 目录,bff 的写法

  • #3026

    fix: performance.chunkSplit.strategy position

    fix: 修复 performance.chunkSplit.strategy 位置错误

Bug Fix:

  • #3003

    fix(rspack-provider): missing tools.autoprefixer type

    fix(rspack-provider): 修复缺少 tools.autoprefixer 类型定义的问题

  • #3039

    fix(builder): tools.sass type should use legacy sass options by default

    fix(builder): tools.sass 默认使用 legacy sass 选项类型

  • #2993

    fix(builder): vendor library chunks include sources

    fix(builder): 用户源码被划分到第三方库所在 Chunk

  • #3023

    fix: modern server not serve static file in developmenet env, dev-server-middleware serve it

    fix: modern server 在开发环境不再托管静态文件,dev-server-middleware 托管他们

  • #3043

    fix: remove nestedRoutes export

    fix: 移除 nestedRoutes 导出

  • #3012

    fix: should pass extensions option to loader

    fix: extensions 配置应该传给 loader

  • #3017

    fix: ssg error reporting inaccuracy problem

    fix: 修复 ssg 报错不准确的问题

  • #2989

    fix(plugin-swc): webpack magic comment is removed after compilation

    fix(plugin-swc): 修复 webpack magic comment 被错误移除的问题

  • #3004

    fix: disable swc react refresh when ssr mode.

    fix: 当在 SSR 模式时,禁用 swc react refresh.

  • #3036

    fix: lock @modern-js/utils/ssr by webpack alias

    fix: 通过 webpack 别名将 @modern-js/utils/ssr 锁到同一版本

  • #3029

    fix(doc-core): failed to build when using logo.dark

    fix(doc-core): 修复配置 logo.dark 时构建失败的问题

  • #3020

    fix: remove process.env.PORT from the bff generate client code

    fix: 从 bff 的 generate client code 中移除 process.env.PORT

  • #3033

    fix(plugin-storybook): remove builtin babel-plugin-import when use module-tools

    fix(plugin-storybook): 在 module-tools 内使用时不默认添加 babel-plugin-import

  • #3014

    fix: some style

    fix: 修复一些样式问题

  • #3028

    fix: required dependencies of Storybook on runtime dependency

    fix: 修复 Storybook 对于 runtime 的必要依赖性

  • #2983

    fix: dark mode

    fix: 暗黑模式下闪烁

  • #2998

    fix(plugin-swc): runtime error when set dev.hmr to false

    fix(plugin-swc): 修复 dev.hmr 设置为 false 时出现运行时错误的问题

  • #3025

    fix: use api.useResolvedConfigContext instead useResolvedConfigContext from @modern-js/core

    fix: 使用 api.useResolvedConfigContext 代替从 @modern-js/core 中导出的 useResolvedConfigContext

modern.js - v2.6.0

Published by github-actions[bot] over 1 year ago

Release v2.6.0

Features:

  • #2919

    chore(CI): make CI faster

    chore(CI): 提升 CI 执行速度

  • #2927

    feat(module-tools): add new Buildpreset and extendPreset function

    feat(module-tools): 新增新的 buildPreset 以及 extendPreset 函数

  • #2960

    feat: support search index label

    feat: 支持搜索索引标签名

  • #2927

    docs(module-tools): update buildPreset api content

    docs(module-tools): 更新 buildPreset API 内容

  • #2928

    feat(builder): add dev.beforeStartUrl config

    feat(builder): 新增 dev.beforeStartUrl 配置项

  • #2958

    feat(builder): support import .wasm assets

    feat(builder): 支持引用 .wasm 资源

  • #2933

    feat: revert worker use async_hooks

    feat: 还原 worker 使用 async_hooks 代码

  • #2935

    feat: add noDevTools hook. fix dev log content and add add chinese and english content

    feat: 增加 noDevTools hook. 修复 dev 的日志内容, 增加中英内容

  • #2966

    feat(builder): support passing URL to html.favicon

    feat(builder): 支持在 html.favicon 中直接传入 URL

  • #2953

    feat: optimize worker build

    feat: 优化 worker 构建

  • #2931

    feat: doc tools doc

    feat: 文档框架文档开发

Bug Fix:

  • #2969

    fix: modernjs doc blink

    fix: modernjs 文档首页闪烁

  • #2939

    fix(builder): missing dev.beforeStartUrl schema validation

    fix(builder): 修复 dev.beforeStartUrl 缺少 schema 校验的问题

  • #2978

    fix: env.PORT should be respected when using listenOptions

    fix: 当使用 listenOptions 时,env.PORT 应该被支持

  • #2957

    fix(app-tools): incorrect tools.esbuild config

    fix(app-tools): 修复 tools.esbuild 格式与文档不一致的问题

  • #2943

    fix: windows path compat in modifyPresetOptions

    fix: 在 modifyPresetOptions 方法中兼容 windows 路径

  • #2971

    fix(module-tools): fix copy context error path

    fix(module-tools): 修复 copy context 错误路径的问题

  • #2968

    fix(doc-core): doc.icon not work in dev mode

    fix(doc-core): 修复 doc.icon 在 dev 模式下不生效的问题

  • #2934

    fix: worker use loader error

    fix: 修复 worker 中使用 loader 报错问题

  • #2951

    fix: filter data when http method is get

    fix: 过滤get请求的data

  • #2922

    fix: search index file enter userRoot

    fix: 防止搜索索引文件路径进入项目目录

  • #2951

    fix: the dependency tree should be able to filter out node_modules files containing dot

    fix: 依赖树应该能够过滤掉包含"."的node_modules文件

  • #2954

    fix: query miss

    fix: 链接中的 query 丢失

  • #2977

    fix: out dir

    fix: outDir 不生效

  • #2975

    fix: use 0.0.0.0 instead of localhost as the default dev host

    fix: 使用 0.0.0.0 代替 localhost 作为默认的 dev host

  • #2948

    fix: doc-tools doc base

    fix: 文档框架文档 base 配置

  • #2964

    feat: create web app support select build tools (webpack or rspack)

    feat: 创建 Web App 支持选择构建工具 (webpack 或 rspack)

  • #2938

    feat: support to handle files add and unlink in watch mode

    feat: 支持在 watch 模式下处理文件的新增和删除

  • #2926

    fix: should not assign nestedRoutesEntry to entrypoint if use v5 router

    fix: 使用 v5 路由的时候,不应该在 entrypoint 上挂载 nestedRoutesEntry 属性

  • #2973

    fix(builder): fix missing dev.host schema validation

    fix(builder): 修复 dev.host 缺少 schema 校验的问题

  • #2936

    fix: adjust @babel/core to dependencies instead of devDependencies.

    fix: 调整 @babel/coredependencies 而不是 devDependencies.

  • #2946

    fix: micro frontend docs

    fix: 微前端文档

  • #2942

    fix: remove header info from SSR ctx to avoid security issues, reserved a switch

    fix: 移除 SSR 上下文中的 header 信息,避免造成安全问题,预留一个字段开启

  • #2929

    fix(storybook): remove require and fix dist/template path

    fix(storybook): 移除 require 代码以及修复 dist/template 的路径问题

  • #2972

    fix: set composite false in bundle dts

    fix: 打包d.ts时设置 composite 为 false

  • #2924

    fix: document param output get undefined in default template

    fix: 修复 Document param 中 output 参数取值问题

  • #2955

    fix: support configure host for devServer

    fix: 支持配置 devServer 的 host

modern.js - v2.5.0

Published by github-actions[bot] over 1 year ago

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 set webpack 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() 报错问题

modern.js - v1.22.7

Published by github-actions[bot] over 1 year ago

Release v1.22.7

Features:

  • #2893

    feat: update codesmith version

    feat: 更新 codesmith 版本

Bug Fix:

  • #2867

    fix(garfish): pass basename as props to root component

    传递 basename 给子应用根组件

  • #2868

    fix: avoid do not get provider when in micro-frontend mode

    避免微前端模式下 provider 获取不到

modern.js - v2.4.0

Published by github-actions[bot] over 1 year ago

Release v2.4.0

Features:

  • #2807

    docs: fix buildPreset content

    docs: 修复 buildPreset 内容

  • #2803

    docs: make v2 docs as default

    docs: 将 Modern.js v2 文档作为默认文档

  • #2811

    feat(hmr-client): add HMR connected log

    feat(hmr-client): add HMR 连接成功的日志

  • #2783

    feat: Add config to enable legacy decorator and 2 css-in-js plugins, update swc version

    feat: 以及 2 个 css-in-js 插件,升级 swc 版本

  • #2818

    feat: reuse bundleAnalyzer plugin, support performance.bundleAnalyze config in rspack-provider

    feat: 复用 bundleAnalyzer 插件,在 rspack-provider 中支持 performance.bundleAnalyze 配置项

  • #2792

    feat: highlight code diff

    feat: diff 代码块高亮

  • #2793

    feat: new command tooitip support code highlight

    feat: new 命令提示支持代码高亮

  • #2786

    feat: more plugin rebase in builder-shared

    feat: 更多 plugin 下沉到 builder-shared

  • #2785

    feat: use 'devtool: source-map' for ssr webpack bundle

    feat: 使用 'devtool: source-map' 作为 ssr 构建时的默认配置

  • #2769

    feat: support catch-all routing

    feat: 支持通配路由

  • #2787

    feat(doc-core): improve table style

    feat(doc-core): 优化 table 样式

  • #2712

    feat: modern-js support rspack bundler

    feat: modern-js 支持 rspack 构建工具

  • #2825

    feat: refactor search ui

    feat: 重构搜索 UI

  • #2799

    perf(builder): improve styled-components compile speed

    perf(builder): 优化 styled-components 编译速度

  • #2790

    chore: rename MWA to Web App

    chore: 将 MWA 重命名为 Web App

  • #2827

    feat: optimize doc bundle

    feat: 优化文档工程打包体积

  • #2806

    update rollup-plugin-dts version, support cts and mts file

    更新rollup-plugin-dts版本,支持cts和mts文件

  • #2782

    chore: catch react-dom/server require for react 17

    chore: 捕获引入 react-dom/server 的逻辑,避免在 react 17 下报错

  • #2776

    feat: change dev log color

    feat: 修改 dev 展示的内容颜色

  • #2778

    fix: regard base as asset prefix when output.assetPrefix is not set

    fix: 当 output.assetPrefix 未设置时,将 base 设置为 assetPrefix

  • #2824

    doc(garfish): add doc for garfish

    增加微前端文档

  • #2797

    support global styles

    支持全局样式文件

  • #2774

    feat(core): improve support for exporting a function in config file

    feat(core): 完善对配置文件中导出函数的支持

  • #2777

    feat: flatten mdx content

    feat: 对 mdx 的内容进行扁平化

  • #2788

    feat(doc-core): optimize ui

    feat(doc-core): 优化主题 UI

Bug Fix:

  • #2816

    fix(builder): incorrect progress bar color when compile failed

    fix(builder): 修复编译错误时进度条颜色错误的问题

  • #2805

    fix: change the builder resolve plugin

    fix: 修复 builder resolve 插件

  • #2823

    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

  • #2789

    fix(tailwind): fix webpack cache not work when using twin.macro

    fix(tailwind): 修复使用 twin.macro 时 webpack 缓存不生效的问题

  • #2781

    fix(builder): increase size limit when target is node

    fix(builder): 修复 target 为 node 时体积限制过小的问题

  • #2801

    fix: modernjs 2.0 doc

    fix: 修复 modernjs 2.0 文档遗留问题

  • #2817

    fix(builder): should not generate cache when build failed

    fix(builder): 修复构建失败时会生成无效编译缓存的问题

  • #2821

    fix: sub root route should be matched by a splat route

    fix: 子根路由应该被通配路由匹配

  • #2829

    fix: restore title

    fix: 复原 title

  • #2779

    fix: same title in a doc

    fix: 修复文档中同一标题出现多次导致的渲染问题

  • #2815

    fix: lazy import rspack-provider

    fix: 懒加载 rspack-provider

modern.js - v1.22.6

Published by github-actions[bot] over 1 year ago

Release v1.22.6

Bug Fix:

  • #2759

    fix(server): hmr protocol set error

    fix(server): 修复 hmr protocol 配置错误问题

Package Rankings
Top 1.49% on Npmjs.org
Related Projects