Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new ssr #12489

Merged
merged 36 commits into from
Jun 27, 2024
Merged

feat: new ssr #12489

merged 36 commits into from
Jun 27, 2024

Conversation

Jinbao1001
Copy link
Member

@Jinbao1001 Jinbao1001 commented Jun 25, 2024

新版 ssr 水合:

  1. 默认从 document 节点开始hydrate
  2. serverLoader降级方案
  3. ssr 支持用户 scriptsheadScripts 等配置注入
  4. ssr 支持 mako 构建

Summary by CodeRabbit

  • 新功能

    • ssr-demo 项目中添加了 Layout 组件,使用 @ant-design/cssinjs 进行样式管理。
    • 更新了 ssr-demo 项目中的 Input 组件和 useId 导入。
  • 依赖更新

    • reactreact-dom 版本从 18.1.0 更新到 18.3.1
    • ssr-demo 项目中添加了 @ant-design/cssinjs 依赖并更新 antd 版本。
    • 更新了多个依赖项的版本,包括 jestlernatypescript 等。
  • 改进

    • 在多个文件中添加了对 window 对象存在性的检查,以支持服务器端渲染(SSR)。
    • 优化了 qiankun 插件的 SSR 处理逻辑,增加了条件判断。
  • 修复

    • 修复了 definePlugin 中的环境变量配置问题。
    • 调整了 modelUtils.test 中的导入顺序和模板字符串缩进。

通过这些更新,用户将在使用应用时体验到更稳定和高效的性能,同时新功能的引入将改善用户体验。

PeachScript and others added 29 commits March 28, 2024 10:29
…#12229)

* refactor(preset): improve types for ssr request handler

* refactor(preset-umi): provide unified request handler for ssr

* refactor: add stream response header

* refactor: correct ts lib usage

* chore: update comment

* refactor: warn for deprecated ssr exports

* refactor: async-able for worker ssr request handler

* refactor: update worker mode condition

* refactor: type correct
* feat: SSR support useServerInsertedHTML

* feat: ssr insert html

* fix: string template

* chore: update lock
* feat: ssr支持head body 配置

* feat: support ssr

* fix: 回退metaloader执行逻辑判断

* fix: ts lint

* feat: 优化部分ssr代码

* feat: add client metadata hydrate data

* docs: hydtateFromRoot doc 修正

* fix: delete merge.with deps

* fix: delete merge.with deps

* fix: change hydrateFromRoot root to renderFromRoot

* fix: NormalizeMeta component for render root

* fix: NormalizeMeta component for render root

---------

Co-authored-by: xiaoxiao <[email protected]>
Co-authored-by: Jinbao1001 <[email protected]>
* feat: ssr支持head body 配置

* feat: support ssr

* fix: 回退metaloader执行逻辑判断

* fix: ts lint

* feat: 优化部分ssr代码

* feat: add client metadata hydrate data

* docs: hydtateFromRoot doc 修正

* fix: delete merge.with deps

* fix: delete merge.with deps

* fix: change hydrateFromRoot root to renderFromRoot

* fix: NormalizeMeta component for render root

* fix: NormalizeMeta component for render root

* fix: hydrate 遗留问题处理

* fix: ts-ignore window.__

* fix: 空格

* fix: lint

---------

Co-authored-by: xiaoxiao <[email protected]>
Co-authored-by: Jinbao1001 <[email protected]>
* fix: wrong react-dom server api for worker ssr mode

* refactor: rename config

* refactor: correct logic

* fix: locked stream in ssr
…12279)

* feat: ssr支持head body 配置

* feat: support ssr

* fix: 回退metaloader执行逻辑判断

* fix: ts lint

* feat: 优化部分ssr代码

* feat: add client metadata hydrate data

* docs: hydtateFromRoot doc 修正

* fix: delete merge.with deps

* fix: delete merge.with deps

* fix: change hydrateFromRoot root to renderFromRoot

* fix: NormalizeMeta component for render root

* fix: NormalizeMeta component for render root

* fix: hydrate 遗留问题处理

* fix: ts-ignore window.__

* fix: 空格

* fix: lint

* feat: addEntryCode to ssr and share the pluginManager

* fix: curry and createPluginManager

* feat: 提取公共 request 方法

* fix: serverloaderRequest

* fix: serverloaderRequest

* fix: serverloaderRequest

* fix: serverloaderRequest

* fix: curry

* fix: curry

* fix: 补充importsAhead and imports

* fix: 条件判断更换

* fix: 代码优化

* fix: tslint

* fix: tslint

* fix: async function export

* fix: add g_umi export and some fixded

* fix: string export

* fix: await clientroutePatch

* feat: patchClientRoutes to async

* fix: ssr禁用 inintial state loading

* feat: 提供render钩子给主应用执行

* feat: 提供render钩子给主应用执行

* feat: 提供render钩子给主应用执行

* feat: to async

* feat: stream render 钩子

* fix: 修改render执行时机

* fix: 移出otherwise逻辑

---------

Co-authored-by: xiaoxiao <[email protected]>
Co-authored-by: Jinbao1001 <[email protected]>
* feat: qiankun 插件支持 ssr

* fix: cr

* fix: 修改 external 的机制

* fix: 增加 ssr render 后,处理 qiankun 的生命周期
* feat: use prerender html directly in ssg

* fix: ssg

* fix: add bootstrap script
* fix: ssr manifest 正确读取环境变量

* chore: 新增 ssr 黑盒变量 SSR_RESOURCE_DIR
* feat: qiankun 插件支持 ssr

* fix: cr

* fix: 修改 external 的机制

* fix: 增加 ssr render 后,处理 qiankun 的生命周期

* fix: qiankun slave ssr

* fix: change ssr to isServer
)

* chore: use process.env.ssr_manifest

* chore: fomatcode
* fix: ssr downgrade init

* feat: add deprecated

* chore: 代码优化

* fix: woker don't need to inject umi.js
* fix: ssr mako init

* chore: 删除冗余webpack配置代码

* feat: finish mako bundler for ssr

* feat: generator manifest

* refactor: mako outputpath use bundler-webpack default value
…12363)

* refactor(preset-umi): handle unexpected route absPath in route preload

* chore: correct logic
Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
umi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2024 8:08am

@Jinbao1001 Jinbao1001 closed this Jun 25, 2024
Copy link

coderabbitai bot commented Jun 25, 2024

演练

这个更改概述涉及多个项目中的一系列依赖项更新和优化配置,特别是 reactreact-dom18.1.0 升级到 18.3.1。还包括一些针对服务器端渲染(SSR)的改进、新的配置文件引入、以及对内部插件和工具的调整,整体提升了项目的性能和维护性。

更改

文件或路径 更改摘要
examples/.../package.json 更新 reactreact-dom 版本至 18.3.1
examples/ssr-demo/.umirc.ts 添加并修改了一些 SSR 配置
examples/ssr-demo/mako.config.json 新增文件,引入模块优化设置
examples/ssr-demo/src/layouts/index.tsx 新增 Layout 组件,使用 @ant-design/cssinjs 进行样式管理
examples/ssr-demo/src/pages/index.tsx 新增若干 InputuseId 等导入和逻辑
package.json 更新多个依赖项版本
packages/bundler-webpack/src/... 添加 SSR 环境变量配置
packages/mfsu/src/... 调整了 webpackwebpackUtils 的导入顺序
packages/plugins/libs/qiankun/master... 添加 SSR 条件检查逻辑
packages/plugins/libs/qiankun/slave... 引入 SSR 条件检查和相应调整
packages/plugins/src/.../initial-state.ts 添加 window 对象定义条件检查
packages/.../modelUtils.test.ts 调整导入顺序和对象格式
packages/preset-umi/src/... 更新用于 mako 配置的逻辑和导入声明
packages/renderer-react/package.json 更新 reactreact-dom 版本至 18.3.1

序列图

sequenceDiagram
    participant User
    participant Server
    participant Component as React Component
    participant CSS as CSSinJS 
    participant SSR as SSR Process

    User ->> Server: 请求渲染页面
    Server ->> Component: 初始化 React 组件
    Component ->> CSS: 使用 `@ant-design/cssinjs` 提取样式
    CSS ->> SSR: 在 SSR 进程中插入 CSS
    SSR ->> Server: 生成带样式的 HTML
    Server ->> User: 返回完整页面
Loading

诗歌

代码旋律轻轻唱,
升级依赖换新装。
SSR优化更强健,
样式布局更漂亮。
小兔共庆乐无穷,
项目发展展宏图。


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Jinbao1001 Jinbao1001 reopened this Jun 25, 2024
@Jinbao1001 Jinbao1001 changed the title feat feat: new ssr Jun 25, 2024
Copy link

github-actions bot commented Jun 25, 2024

Size Change: +8.42 kB (+0.08%)

Total Size: 9.94 MB

Filename Size Change
./packages/bundler-webpack/dist/config/definePlugin.d.ts 287 B +18 B (+6.69%) 🔍
./packages/bundler-webpack/dist/config/definePlugin.js 1.13 kB +17 B (+1.53%)
./packages/mfsu/dist/mfsu/strategyStaticAnalyze.d.ts 416 B +2 B (+0.48%)
./packages/plugins/dist/initial-state.js 1.54 kB +13 B (+0.85%)
./packages/plugins/dist/qiankun/master.js 3.04 kB +75 B (+2.53%)
./packages/plugins/dist/qiankun/slave.js 4.51 kB +116 B (+2.64%)
./packages/preset-umi/dist/commands/build.js 2.24 kB +20 B (+0.9%)
./packages/preset-umi/dist/commands/dev/createRouteMiddleware.js 1.05 kB +1 B (+0.1%)
./packages/preset-umi/dist/commands/dev/dev.js 4.13 kB +29 B (+0.71%)
./packages/preset-umi/dist/features/appData/umiInfo.js 544 B +21 B (+4.02%)
./packages/preset-umi/dist/features/devTool/devTool.js 1.29 kB -3 B (-0.23%)
./packages/preset-umi/dist/features/exportStatic/exportStatic.js 2.71 kB -302 B (-10.04%) 👏
./packages/preset-umi/dist/features/mako/mako.js 1.37 kB +148 B (+12.11%) ⚠️
./packages/preset-umi/dist/features/okam/okam.js 610 B -6 B (-0.97%)
./packages/preset-umi/dist/features/ssr/ssr.js 3.15 kB +430 B (+15.79%) ⚠️
./packages/preset-umi/dist/features/ssr/utils.d.ts 212 B +31 B (+17.13%) ⚠️
./packages/preset-umi/dist/features/ssr/utils.js 1.16 kB +301 B (+34.92%) 🚨
./packages/preset-umi/dist/features/tmpFiles/tmpFiles.js 6.04 kB +308 B (+5.37%) 🔍
./packages/preset-umi/dist/types.d.ts 1.82 kB +7 B (+0.39%)
./packages/renderer-react/dist/appContext.d.ts 449 B +8 B (+1.81%)
./packages/renderer-react/dist/appContext.js 1.16 kB +80 B (+7.43%) 🔍
./packages/renderer-react/dist/browser.d.ts 1.26 kB +149 B (+13.4%) ⚠️
./packages/renderer-react/dist/browser.js 3.43 kB +382 B (+12.54%) ⚠️
./packages/renderer-react/dist/index.d.ts 375 B +11 B (+3.02%)
./packages/renderer-react/dist/index.js 352 B +3 B (+0.86%)
./packages/renderer-react/dist/server.d.ts 148 B -123 B (-45.39%) 🎉
./packages/renderer-react/dist/server.js 944 B -556 B (-37.07%) 🎉
./packages/renderer-react/dist/types.d.ts 782 B +416 B (+113.66%) 🆘
./packages/server/dist/ssr.d.ts 849 B +300 B (+54.64%) 🆘
./packages/server/dist/ssr.js 4.5 kB +1.6 kB (+55.38%) 🆘
./packages/server/dist/types.d.ts 609 B +229 B (+60.26%) 🆘
./packages/preset-umi/dist/features/ssr/mako/mako.d.ts 78 B +78 B (new file) 🆕
./packages/preset-umi/dist/features/ssr/mako/mako.js 1.53 kB +1.53 kB (new file) 🆕
./packages/preset-umi/dist/utils/platform.d.ts 61 B +61 B (new file) 🆕
./packages/preset-umi/dist/utils/platform.js 768 B +768 B (new file) 🆕
./packages/renderer-react/dist/html.d.ts 217 B +217 B (new file) 🆕
./packages/renderer-react/dist/html.js 2.04 kB +2.04 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
./packages/ast/dist/getASTByFilePath/getASTByFilePath.d.ts 133 B
./packages/ast/dist/getASTByFilePath/getASTByFilePath.js 631 B
./packages/ast/dist/getExportProps/getExportProps.d.ts 80 B
./packages/ast/dist/getExportProps/getExportProps.js 1.3 kB
./packages/ast/dist/getExportProps/propertyResolver.d.ts 360 B
./packages/ast/dist/getExportProps/propertyResolver.js 1.5 kB
./packages/ast/dist/index.d.ts 160 B
./packages/ast/dist/index.js 656 B
./packages/ast/dist/isReactComponent/isReactComponent.d.ts 84 B
./packages/ast/dist/isReactComponent/isReactComponent.js 897 B
./packages/ast/dist/removeConfigByName/removeConfigByName.d.ts 138 B
./packages/ast/dist/removeConfigByName/removeConfigByName.js 891 B
./packages/ast/dist/setConfigByName/setConfigByName.d.ts 175 B
./packages/ast/dist/setConfigByName/setConfigByName.js 1.32 kB
./packages/ast/dist/utils/generate.d.ts 122 B
./packages/ast/dist/utils/generate.js 834 B
./packages/ast/dist/utils/parse.d.ts 179 B
./packages/ast/dist/utils/parse.js 1 kB
./packages/babel-preset-umi/dist/index.d.ts 259 B
./packages/babel-preset-umi/dist/index.js 2.48 kB
./packages/babel-preset-umi/dist/plugins/autoCSSModules.d.ts 193 B
./packages/babel-preset-umi/dist/plugins/autoCSSModules.js 1.08 kB
./packages/babel-preset-umi/dist/plugins/dynamicImportNode.d.ts 132 B
./packages/babel-preset-umi/dist/plugins/dynamicImportNode.js 1.23 kB
./packages/babel-preset-umi/dist/plugins/lockCoreJS.d.ts 83 B
./packages/babel-preset-umi/dist/plugins/lockCoreJS.js 975 B
./packages/babel-preset-umi/dist/plugins/stripExports.d.ts 132 B
./packages/babel-preset-umi/dist/plugins/stripExports.js 1.29 kB
./packages/bundler-esbuild/dist/build.d.ts 351 B
./packages/bundler-esbuild/dist/build.js 1.48 kB
./packages/bundler-esbuild/dist/cli.d.ts 31 B
./packages/bundler-esbuild/dist/cli.js 1.12 kB
./packages/bundler-esbuild/dist/index.d.ts 45 B
./packages/bundler-esbuild/dist/index.js 496 B
./packages/bundler-esbuild/dist/plugins/__sample.d.ts 114 B
./packages/bundler-esbuild/dist/plugins/__sample.js 511 B
./packages/bundler-esbuild/dist/plugins/alias.d.ts 145 B
./packages/bundler-esbuild/dist/plugins/alias.js 1.29 kB
./packages/bundler-esbuild/dist/plugins/externals.d.ts 145 B
./packages/bundler-esbuild/dist/plugins/externals.js 653 B
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/index.d.ts 174 B
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/index.js 1.01 kB
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/types.d.ts 90 B
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/types.js 394 B
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/utils.d.ts 112 B
./packages/bundler-esbuild/dist/plugins/less-plugin-alias/utils.js 908 B
./packages/bundler-esbuild/dist/plugins/less.d.ts 259 B
./packages/bundler-esbuild/dist/plugins/less.js 2.28 kB
./packages/bundler-esbuild/dist/plugins/nodeGlobalsPolyfill.d.ts 124 B
./packages/bundler-esbuild/dist/plugins/nodeGlobalsPolyfill.js 584 B
./packages/bundler-esbuild/dist/plugins/style.d.ts 272 B
./packages/bundler-esbuild/dist/plugins/style.js 1.82 kB
./packages/bundler-esbuild/dist/plugins/watchRebuild.d.ts 186 B
./packages/bundler-esbuild/dist/plugins/watchRebuild.js 932 B
./packages/bundler-esbuild/dist/types.d.ts 573 B
./packages/bundler-esbuild/dist/types.js 603 B
./packages/bundler-esbuild/dist/utils/getBrowserlist.d.ts 110 B
./packages/bundler-esbuild/dist/utils/getBrowserlist.js 558 B
./packages/bundler-esbuild/dist/utils/postcssProcess.d.ts 142 B
./packages/bundler-esbuild/dist/utils/postcssProcess.js 986 B
./packages/bundler-esbuild/dist/utils/sortByAffix.d.ts 94 B
./packages/bundler-esbuild/dist/utils/sortByAffix.js 561 B
./packages/bundler-utils/compiled/@babel/code-frame/index.d.ts 734 B
./packages/bundler-utils/compiled/@babel/core/index.d.ts 7.78 kB
./packages/bundler-utils/compiled/@babel/generator/index.d.ts 2.57 kB
./packages/bundler-utils/compiled/@babel/parser/typings/babel-parser.d.ts 2.21 kB
./packages/bundler-utils/compiled/@babel/template/index.d.ts 1.24 kB
./packages/bundler-utils/compiled/@babel/traverse/index.d.ts 9.64 kB
./packages/bundler-utils/compiled/@babel/types/lib/index-legacy.d.ts 18.9 kB
./packages/bundler-utils/compiled/babel/code-frame.d.ts 79 B
./packages/bundler-utils/compiled/babel/code-frame.js 64 B
./packages/bundler-utils/compiled/babel/core.d.ts 73 B
./packages/bundler-utils/compiled/babel/core.js 59 B
./packages/bundler-utils/compiled/babel/generator.d.ts 78 B
./packages/bundler-utils/compiled/babel/generator.js 64 B
./packages/bundler-utils/compiled/babel/helper-module-imports.d.ts 87 B
./packages/bundler-utils/compiled/babel/helper-module-imports.js 68 B
./packages/bundler-utils/compiled/babel/index.js 689 kB
./packages/bundler-utils/compiled/babel/index1.js 628 B
./packages/bundler-utils/compiled/babel/parser.d.ts 75 B
./packages/bundler-utils/compiled/babel/parser.js 61 B
./packages/bundler-utils/compiled/babel/plugin-proposal-class-properties.js 81 B
./packages/bundler-utils/compiled/babel/plugin-proposal-decorators.js 79 B
./packages/bundler-utils/compiled/babel/plugin-proposal-do-expressions.js 82 B
./packages/bundler-utils/compiled/babel/plugin-proposal-export-default-from.js 83 B
./packages/bundler-utils/compiled/babel/plugin-proposal-export-namespace-from.js 85 B
./packages/bundler-utils/compiled/babel/plugin-proposal-function-bind.js 81 B
./packages/bundler-utils/compiled/babel/plugin-proposal-partial-application.js 87 B
./packages/bundler-utils/compiled/babel/plugin-proposal-pipeline-operator.js 85 B
./packages/bundler-utils/compiled/babel/plugin-proposal-private-methods.js 83 B
./packages/bundler-utils/compiled/babel/plugin-proposal-private-property-in-object.js 89 B
./packages/bundler-utils/compiled/babel/plugin-proposal-record-and-tuple.js 83 B
./packages/bundler-utils/compiled/babel/plugin-transform-class-properties.js 81 B
./packages/bundler-utils/compiled/babel/plugin-transform-export-namespace-from.js 85 B
./packages/bundler-utils/compiled/babel/plugin-transform-private-methods.js 83 B
./packages/bundler-utils/compiled/babel/plugin-transform-private-property-in-object copy.js 89 B
./packages/bundler-utils/compiled/babel/plugin-transform-runtime.js 77 B
./packages/bundler-utils/compiled/babel/preset-env.js 64 B
./packages/bundler-utils/compiled/babel/preset-react.js 66 B
./packages/bundler-utils/compiled/babel/preset-typescript.js 71 B
./packages/bundler-utils/compiled/babel/register.js 63 B
./packages/bundler-utils/compiled/babel/source-map-support.js 6.37 kB
./packages/bundler-utils/compiled/babel/template.d.ts 77 B
./packages/bundler-utils/compiled/babel/template.js 63 B
./packages/bundler-utils/compiled/babel/traverse.d.ts 77 B
./packages/bundler-utils/compiled/babel/traverse.js 63 B
./packages/bundler-utils/compiled/babel/types.d.ts 53 B
./packages/bundler-utils/compiled/babel/types.js 60 B
./packages/bundler-utils/compiled/cjs-module-lexer/index.js 8.69 kB
./packages/bundler-utils/compiled/cjs-module-lexer/lexer.d.ts 136 B
./packages/bundler-utils/compiled/es-module-lexer/index.js 5.11 kB
./packages/bundler-utils/compiled/es-module-lexer/types/lexer.d.ts 775 B
./packages/bundler-utils/compiled/esbuild/index.d.ts 45 B
./packages/bundler-utils/compiled/esbuild/index.js 220 B
./packages/bundler-utils/compiled/express/body-parser/index.d.ts 1.43 kB
./packages/bundler-utils/compiled/express/connect/index.d.ts 1.15 kB
./packages/bundler-utils/compiled/express/express-serve-static-core/index.d.ts 10.1 kB
./packages/bundler-utils/compiled/express/index.d.ts 1.24 kB
./packages/bundler-utils/compiled/express/index.js 246 kB
./packages/bundler-utils/compiled/express/mime/index.d.ts 306 B
./packages/bundler-utils/compiled/express/mime/Mime.d.ts 189 B
./packages/bundler-utils/compiled/express/qs/index.d.ts 896 B
./packages/bundler-utils/compiled/express/range-parser/index.d.ts 595 B
./packages/bundler-utils/compiled/express/serve-static/index.d.ts 1.72 kB
./packages/bundler-utils/compiled/http-proxy-middleware/dist/index.d.ts 166 B
./packages/bundler-utils/compiled/http-proxy-middleware/dist/types.d.ts 891 B
./packages/bundler-utils/compiled/http-proxy-middleware/http-proxy/index.d.ts 2.3 kB
./packages/bundler-utils/compiled/http-proxy-middleware/index.js 25.9 kB
./packages/bundler-utils/compiled/less/index.d.ts 2.72 kB
./packages/bundler-utils/compiled/less/index.js 258 kB
./packages/bundler-utils/compiled/tapable/index.js 4.58 kB
./packages/bundler-utils/compiled/tapable/tapable.d.ts 1.1 kB
./packages/bundler-utils/dist/https.d.ts 238 B
./packages/bundler-utils/dist/https.js 1.63 kB
./packages/bundler-utils/dist/index.d.ts 322 B
./packages/bundler-utils/dist/index.js 1.44 kB
./packages/bundler-utils/dist/proxy.d.ts 158 B
./packages/bundler-utils/dist/proxy.js 1.31 kB
./packages/bundler-utils/dist/types.d.ts 294 B
./packages/bundler-utils/dist/types.js 374 B
./packages/bundler-vite/compiled/@vitejs/plugin-legacy/569.index.cjs.js 348 B
./packages/bundler-vite/compiled/@vitejs/plugin-legacy/866.index.cjs.js 377 kB
./packages/bundler-vite/compiled/@vitejs/plugin-legacy/dist/index.d.ts 374 B
./packages/bundler-vite/compiled/@vitejs/plugin-legacy/index.js 30.4 kB
./packages/bundler-vite/compiled/caniuse-lite/index.d.ts 1.3 kB
./packages/bundler-vite/compiled/caniuse-lite/index.js 67.4 kB
./packages/bundler-vite/compiled/esbuild.d.ts 74 B
./packages/bundler-vite/compiled/fs-extra.d.ts 67 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.scandir/out/adapters/fs.d.ts 358 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.scandir/out/index.d.ts 324 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.scandir/out/providers/async.d.ts 231 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.scandir/out/settings.d.ts 311 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.scandir/out/types/index.d.ts 257 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.stat/out/adapters/fs.d.ts 307 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.stat/out/index.d.ts 304 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.stat/out/providers/async.d.ts 176 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.stat/out/settings.d.ts 247 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.stat/out/types/index.d.ts 130 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/index.d.ts 368 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/providers/async.d.ts 253 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/readers/async.d.ts 431 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/readers/reader.d.ts 142 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/settings.d.ts 446 B
./packages/bundler-vite/compiled/rollup-plugin-copy/@nodelib/fs.walk/out/types/index.d.ts 183 B
./packages/bundler-vite/compiled/rollup-plugin-copy/fast-glob/out/index.d.ts 480 B
./packages/bundler-vite/compiled/rollup-plugin-copy/fast-glob/out/managers/tasks.d.ts 433 B
./packages/bundler-vite/compiled/rollup-plugin-copy/fast-glob/out/settings.d.ts 1.25 kB
./packages/bundler-vite/compiled/rollup-plugin-copy/fast-glob/out/types/index.d.ts 419 B
./packages/bundler-vite/compiled/rollup-plugin-copy/glob/index.d.ts 895 B
./packages/bundler-vite/compiled/rollup-plugin-copy/globby/index.d.ts 1.7 kB
./packages/bundler-vite/compiled/rollup-plugin-copy/index.d.ts 553 B
./packages/bundler-vite/compiled/rollup-plugin-copy/index.js 29.7 kB
./packages/bundler-vite/compiled/rollup-plugin-copy/minimatch/index.d.ts 1.56 kB
./packages/bundler-vite/compiled/rollup-plugin-copy/rollup/dist/rollup.d.ts 6.21 kB
./packages/bundler-vite/compiled/vite/index.d.ts 42 B
./packages/bundler-vite/compiled/vite/index.js 218 B
./packages/bundler-vite/dist/build.d.ts 252 B
./packages/bundler-vite/dist/build.js 1.78 kB
./packages/bundler-vite/dist/cli.d.ts 31 B
./packages/bundler-vite/dist/cli.js 1.17 kB
./packages/bundler-vite/dist/config/config.d.ts 257 B
./packages/bundler-vite/dist/config/config.js 981 B
./packages/bundler-vite/dist/config/transformer/alias.d.ts 132 B
./packages/bundler-vite/dist/config/transformer/alias.js 980 B
./packages/bundler-vite/dist/config/transformer/css.d.ts 271 B
./packages/bundler-vite/dist/config/transformer/css.js 960 B
./packages/bundler-vite/dist/config/transformer/define.d.ts 133 B
./packages/bundler-vite/dist/config/transformer/define.js 548 B
./packages/bundler-vite/dist/config/transformer/index.d.ts 232 B
./packages/bundler-vite/dist/config/transformer/index.js 957 B
./packages/bundler-vite/dist/config/transformer/merge.d.ts 125 B
./packages/bundler-vite/dist/config/transformer/merge.js 488 B
./packages/bundler-vite/dist/config/transformer/optimizeDeps.d.ts 141 B
./packages/bundler-vite/dist/config/transformer/optimizeDeps.js 622 B
./packages/bundler-vite/dist/config/transformer/react.d.ts 146 B
./packages/bundler-vite/dist/config/transformer/react.js 956 B
./packages/bundler-vite/dist/config/transformer/rename.d.ts 152 B
./packages/bundler-vite/dist/config/transformer/rename.js 783 B
./packages/bundler-vite/dist/config/transformer/rollup.d.ts 181 B
./packages/bundler-vite/dist/config/transformer/rollup.js 1.35 kB
./packages/bundler-vite/dist/config/transformer/target.d.ts 138 B
./packages/bundler-vite/dist/config/transformer/target.js 1.28 kB
./packages/bundler-vite/dist/dev.d.ts 280 B
./packages/bundler-vite/dist/dev.js 762 B
./packages/bundler-vite/dist/index.d.ts 54 B
./packages/bundler-vite/dist/index.js 507 B
./packages/bundler-vite/dist/plugins/autoCSSModule.d.ts 162 B
./packages/bundler-vite/dist/plugins/autoCSSModule.js 664 B
./packages/bundler-vite/dist/plugins/deleteOutputFiles.d.ts 260 B
./packages/bundler-vite/dist/plugins/deleteOutputFiles.js 635 B
./packages/bundler-vite/dist/plugins/externals.d.ts 192 B
./packages/bundler-vite/dist/plugins/externals.js 549 B
./packages/bundler-vite/dist/plugins/index.d.ts 164 B
./packages/bundler-vite/dist/plugins/index.js 831 B
./packages/bundler-vite/dist/plugins/svgr.d.ts 306 B
./packages/bundler-vite/dist/plugins/svgr.js 1.1 kB
./packages/bundler-vite/dist/requireHook.d.ts 31 B
./packages/bundler-vite/dist/requireHook.js 262 B
./packages/bundler-vite/dist/schema.d.ts 137 B
./packages/bundler-vite/dist/schema.js 910 B
./packages/bundler-vite/dist/server/plugins/onHotUpdate.d.ts 163 B
./packages/bundler-vite/dist/server/plugins/onHotUpdate.js 536 B
./packages/bundler-vite/dist/server/server.d.ts 478 B
./packages/bundler-vite/dist/server/server.js 1.84 kB
./packages/bundler-vite/dist/types.d.ts 597 B
./packages/bundler-vite/dist/types.js 611 B
./packages/bundler-webpack/compiled/autoprefixer/browserslist/index.d.ts 1.52 kB
./packages/bundler-webpack/compiled/autoprefixer/index.js 104 kB
./packages/bundler-webpack/compiled/autoprefixer/lib/autoprefixer.d.ts 890 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/at-rule.d.ts 981 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/comment.d.ts 609 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/container.d.ts 2.8 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts 1.68 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/declaration.d.ts 1.02 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/document.d.ts 720 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/input.d.ts 1.11 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/lazy-result.d.ts 1.15 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/list.d.ts 446 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/no-work-result.d.ts 586 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/node.d.ts 3.72 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/postcss.d.ts 2.96 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/previous-map.d.ts 704 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/processor.d.ts 1.14 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/result.d.ts 1.44 kB
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/root.d.ts 799 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/rule.d.ts 892 B
./packages/bundler-webpack/compiled/autoprefixer/postcss/lib/warning.d.ts 809 B
./packages/bundler-webpack/compiled/autoprefixer/source-map-js/source-map.d.ts 917 B
./packages/bundler-webpack/compiled/babel-loader/index.js 61.2 kB
./packages/bundler-webpack/compiled/compression/index.js 28.4 kB
./packages/bundler-webpack/compiled/connect-history-api-fallback/index.js 981 B
./packages/bundler-webpack/compiled/copy-webpack-plugin/939.index.js 9.07 kB
./packages/bundler-webpack/compiled/copy-webpack-plugin/index.js 82 kB
./packages/bundler-webpack/compiled/css-minimizer-webpack-plugin/index.js 59.6 kB
./packages/bundler-webpack/compiled/css-minimizer-webpack-plugin/minify.js 888 B
./packages/bundler-webpack/compiled/css-minimizer-webpack-plugin/utils.js 2.9 kB
./packages/bundler-webpack/compiled/cssnano/index.js 322 kB
./packages/bundler-webpack/compiled/express.d.ts 90 B
./packages/bundler-webpack/compiled/file-loader/index.js 67.2 kB
./packages/bundler-webpack/compiled/less-loader/index.js 2.82 kB
./packages/bundler-webpack/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js 1.74 kB
./packages/bundler-webpack/compiled/mini-css-extract-plugin/hmr/normalize-url.js 450 B
./packages/bundler-webpack/compiled/mini-css-extract-plugin/index.js 88.4 kB
./packages/bundler-webpack/compiled/mini-css-extract-plugin/loader.js 3.7 kB
./packages/bundler-webpack/compiled/mini-css-extract-plugin/utils.js 1.89 kB
./packages/bundler-webpack/compiled/postcss-flexbugs-fixes/index.js 829 B
./packages/bundler-webpack/compiled/postcss-loader/index.js 61.8 kB
./packages/bundler-webpack/compiled/purgecss-webpack-plugin/index.js 51 kB
./packages/bundler-webpack/compiled/sass-loader/index.js 575 kB
./packages/bundler-webpack/compiled/sass-loader/sass.default.dart.js 95 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/ajv.d.ts 432 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts 508 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts 992 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts 754 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/errors.d.ts 322 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/index.d.ts 875 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts 138 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/resolve.d.ts 308 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/rules.d.ts 366 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/util.d.ts 760 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts 695 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts 542 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/core.d.ts 2.22 kB
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts 163 B
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/types/index.d.ts 1.57 kB
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/types/json-schema.d.ts 1.27 kB
./packages/bundler-webpack/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts 1.64 kB
./packages/bundler-webpack/compiled/schema-utils/ajv/lib/ajv.d.ts 3.51 kB
./packages/bundler-webpack/compiled/schema-utils/declarations/index.d.ts 78 B
./packages/bundler-webpack/compiled/schema-utils/declarations/validate.d.ts 430 B
./packages/bundler-webpack/compiled/schema-utils/declarations/ValidationError.d.ts 574 B
./packages/bundler-webpack/compiled/schema-utils/index.js 50.6 kB
./packages/bundler-webpack/compiled/schema-utils/json-schema/index.d.ts 4.65 kB
./packages/bundler-webpack/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts 620 B
./packages/bundler-webpack/compiled/speed-measure-webpack-plugin/index.js 13.7 kB
./packages/bundler-webpack/compiled/style-loader/index.js 3.09 kB
./packages/bundler-webpack/compiled/style-loader/runtime/injectStylesIntoLinkTag.js 368 B
./packages/bundler-webpack/compiled/style-loader/runtime/injectStylesIntoStyleTag.js 783 B
./packages/bundler-webpack/compiled/style-loader/runtime/insertBySelector.js 490 B
./packages/bundler-webpack/compiled/style-loader/runtime/insertStyleElement.js 181 B
./packages/bundler-webpack/compiled/style-loader/runtime/isEqualLocals.js 243 B
./packages/bundler-webpack/compiled/style-loader/runtime/isOldIE.js 372 B
./packages/bundler-webpack/compiled/style-loader/runtime/setAttributesWithAttributes.js 243 B
./packages/bundler-webpack/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js 177 B
./packages/bundler-webpack/compiled/style-loader/runtime/setAttributesWithoutAttributes.js 196 B
./packages/bundler-webpack/compiled/style-loader/runtime/singletonStyleDomAPI.js 702 B
./packages/bundler-webpack/compiled/style-loader/runtime/styleDomAPI.js 570 B
./packages/bundler-webpack/compiled/style-loader/runtime/styleTagTransform.js 218 B
./packages/bundler-webpack/compiled/stylus-loader/index.js 28.7 kB
./packages/bundler-webpack/compiled/svgo-loader/index.js 175 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts 240 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts 1.1 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/types.d.ts 712 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/ajv/lib/ajv.d.ts 3.51 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/index.js 83.6 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/jest-worker/build/index.d.ts 1.04 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts 1.48 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/json-schema/index.d.ts 4.65 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/minify.js 549 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/schema-utils/declarations/index.d.ts 78 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/schema-utils/declarations/validate.d.ts 449 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/schema-utils/declarations/ValidationError.d.ts 577 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/source-map/source-map.d.ts 809 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/types/cjs.d.ts 102 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/types/index.d.ts 2.25 kB
./packages/bundler-webpack/compiled/terser-webpack-plugin/types/minify.d.ts 238 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/types/utils.d.ts 675 B
./packages/bundler-webpack/compiled/terser-webpack-plugin/utils.js 3.9 kB
./packages/bundler-webpack/compiled/terser/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts 1.03 kB
./packages/bundler-webpack/compiled/terser/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts 199 B
./packages/bundler-webpack/compiled/terser/@jridgewell/gen-mapping/dist/types/types.d.ts 304 B
./packages/bundler-webpack/compiled/terser/@jridgewell/source-map/dist/types/source-map.d.ts 466 B
./packages/bundler-webpack/compiled/terser/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts 240 B
./packages/bundler-webpack/compiled/terser/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts 1.1 kB
./packages/bundler-webpack/compiled/terser/@jridgewell/trace-mapping/dist/types/types.d.ts 712 B
./packages/bundler-webpack/compiled/terser/index.js 160 kB
./packages/bundler-webpack/compiled/terser/source-map/source-map.d.ts 3.12 kB
./packages/bundler-webpack/compiled/terser/tools/terser.d.ts 1.93 kB
./packages/bundler-webpack/compiled/url-loader/index.js 85.8 kB
./packages/bundler-webpack/compiled/webpack-5-chain/index.js 8.91 kB
./packages/bundler-webpack/compiled/webpack-5-chain/types/index.d.ts 4.22 kB
./packages/bundler-webpack/compiled/webpack-bundle-analyzer/index.js 86.6 kB
./packages/bundler-webpack/compiled/webpack-bundle-analyzer/public/viewer.js 90.8 kB
./packages/bundler-webpack/compiled/webpack-dev-middleware/index.js 95.2 kB
./packages/bundler-webpack/compiled/webpack-manifest-plugin/index.js 2.43 kB
./packages/bundler-webpack/compiled/webpack-sources/index.d.ts 384 B
./packages/bundler-webpack/compiled/webpack-sources/index.js 8.69 kB
./packages/bundler-webpack/compiled/webpack-sources/lib/CachedSource.d.ts 322 B
./packages/bundler-webpack/compiled/webpack-sources/lib/CompatSource.d.ts 157 B
./packages/bundler-webpack/compiled/webpack-sources/lib/ConcatSource.d.ts 301 B
./packages/bundler-webpack/compiled/webpack-sources/lib/index.d.ts 686 B
./packages/bundler-webpack/compiled/webpack-sources/lib/OriginalSource.d.ts 324 B
./packages/bundler-webpack/compiled/webpack-sources/lib/PrefixSource.d.ts 218 B
./packages/bundler-webpack/compiled/webpack-sources/lib/RawSource.d.ts 196 B
./packages/bundler-webpack/compiled/webpack-sources/lib/ReplaceSource.d.ts 468 B
./packages/bundler-webpack/compiled/webpack-sources/lib/SizeOnlySource.d.ts 127 B
./packages/bundler-webpack/compiled/webpack-sources/lib/Source.d.ts 552 B
./packages/bundler-webpack/compiled/webpack-sources/lib/SourceMapSource.d.ts 323 B
./packages/bundler-webpack/compiled/webpack-sources/source-list-map/index.d.ts 614 B
./packages/bundler-webpack/compiled/webpack-sources/source-map/source-map.d.ts 3.12 kB
./packages/bundler-webpack/compiled/webpack/ajv/lib/ajv.d.ts 3.51 kB
./packages/bundler-webpack/compiled/webpack/BasicEffectRulePlugin.js 74 B
./packages/bundler-webpack/compiled/webpack/BasicEvaluatedExpression.js 77 B
./packages/bundler-webpack/compiled/webpack/BasicMatcherRulePlugin.js 75 B
./packages/bundler-webpack/compiled/webpack/Chunk.js 58 B
./packages/bundler-webpack/compiled/webpack/Compilation.js 64 B
./packages/bundler-webpack/compiled/webpack/ExternalsPlugin.js 68 B
./packages/bundler-webpack/compiled/webpack/FetchCompileAsyncWasmPlugin.js 80 B
./packages/bundler-webpack/compiled/webpack/FetchCompileWasmPlugin.js 75 B
./packages/bundler-webpack/compiled/webpack/HotModuleReplacement.runtime.js 2.68 kB
./packages/bundler-webpack/compiled/webpack/index.js 1.08 MB
./packages/bundler-webpack/compiled/webpack/JavascriptHotModuleReplacement.runtime.js 3.04 kB
./packages/bundler-webpack/compiled/webpack/json-schema/index.d.ts 4.69 kB
./packages/bundler-webpack/compiled/webpack/lazy-compilation-node.js 619 B
./packages/bundler-webpack/compiled/webpack/lazy-compilation-web.js 864 B
./packages/bundler-webpack/compiled/webpack/LibraryTemplatePlugin.js 74 B
./packages/bundler-webpack/compiled/webpack/LimitChunkCountPlugin.js 74 B
./packages/bundler-webpack/compiled/webpack/LoaderTargetPlugin.js 71 B
./packages/bundler-webpack/compiled/webpack/ModuleFilenameHelpers.js 71 B
./packages/bundler-webpack/compiled/webpack/NodeTargetPlugin.js 69 B
./packages/bundler-webpack/compiled/webpack/NodeTemplatePlugin.js 71 B
./packages/bundler-webpack/compiled/webpack/NormalModule.js 62 B
./packages/bundler-webpack/compiled/webpack/ObjectMatcherRulePlugin.js 76 B
./packages/bundler-webpack/compiled/webpack/RuleSetCompiler.js 68 B
./packages/bundler-webpack/compiled/webpack/RuntimeGlobals.js 67 B
./packages/bundler-webpack/compiled/webpack/RuntimeModule.js 63 B
./packages/bundler-webpack/compiled/webpack/schema-utils/declarations/index.d.ts 78 B
./packages/bundler-webpack/compiled/webpack/schema-utils/declarations/validate.d.ts 449 B
./packages/bundler-webpack/compiled/webpack/schema-utils/declarations/ValidationError.d.ts 577 B
./packages/bundler-webpack/compiled/webpack/SingleEntryPlugin.js 70 B
./packages/bundler-webpack/compiled/webpack/StringXor.js 62 B
./packages/bundler-webpack/compiled/webpack/Template.js 61 B
./packages/bundler-webpack/compiled/webpack/types.d.ts 71.6 kB
./packages/bundler-webpack/compiled/webpack/UseEffectRulePlugin.js 72 B
./packages/bundler-webpack/compiled/webpack/WebWorkerTemplatePlugin.js 76 B
./packages/bundler-webpack/compiled/webpackbar/dist/index.d.ts 916 B
./packages/bundler-webpack/compiled/webpackbar/index.js 42.9 kB
./packages/bundler-webpack/compiled/ws/index.d.ts 3.3 kB
./packages/bundler-webpack/compiled/ws/index.js 13.2 kB
./packages/bundler-webpack/dist/build.d.ts 342 B
./packages/bundler-webpack/dist/build.js 2.08 kB
./packages/bundler-webpack/dist/cli.d.ts 31 B
./packages/bundler-webpack/dist/cli.js 1.23 kB
./packages/bundler-webpack/dist/config/_sampleFeature.d.ts 215 B
./packages/bundler-webpack/dist/config/_sampleFeature.js 549 B
./packages/bundler-webpack/dist/config/assetRules.d.ts 226 B
./packages/bundler-webpack/dist/config/assetRules.js 780 B
./packages/bundler-webpack/dist/config/bundleAnalyzerPlugin.d.ts 219 B
./packages/bundler-webpack/dist/config/bundleAnalyzerPlugin.js 740 B
./packages/bundler-webpack/dist/config/compressPlugin.d.ts 204 B
./packages/bundler-webpack/dist/config/compressPlugin.js 1.54 kB
./packages/bundler-webpack/dist/config/config.d.ts 431 B
./packages/bundler-webpack/dist/config/config.js 3.19 kB
./packages/bundler-webpack/dist/config/copyPlugin.d.ts 212 B
./packages/bundler-webpack/dist/config/copyPlugin.js 916 B
./packages/bundler-webpack/dist/config/cssRules.d.ts 223 B
./packages/bundler-webpack/dist/config/cssRules.js 1.99 kB
./packages/bundler-webpack/dist/config/detectCssModulesInDependence.d.ts 241 B
./packages/bundler-webpack/dist/config/detectCssModulesInDependence.js 1.98 kB
./packages/bundler-webpack/dist/config/detectDeadCode.d.ts 256 B
./packages/bundler-webpack/dist/config/detectDeadCode.js 2.29 kB
./packages/bundler-webpack/dist/config/detectDeadCodePlugin.d.ts 208 B
./packages/bundler-webpack/dist/config/detectDeadCodePlugin.js 1.12 kB
./packages/bundler-webpack/dist/config/fastRefreshPlugin.d.ts 234 B
./packages/bundler-webpack/dist/config/fastRefreshPlugin.js 958 B
./packages/bundler-webpack/dist/config/forkTSCheckerPlugin.d.ts 228 B
./packages/bundler-webpack/dist/config/forkTSCheckerPlugin.js 922 B
./packages/bundler-webpack/dist/config/harmonyLinkingErrorPlugin.d.ts 177 B
./packages/bundler-webpack/dist/config/harmonyLinkingErrorPlugin.js 851 B
./packages/bundler-webpack/dist/config/ignorePlugin.d.ts 213 B
./packages/bundler-webpack/dist/config/ignorePlugin.js 662 B
./packages/bundler-webpack/dist/config/javaScriptRules.d.ts 286 B
./packages/bundler-webpack/dist/config/javaScriptRules.js 2.69 kB
./packages/bundler-webpack/dist/config/manifestPlugin.d.ts 223 B
./packages/bundler-webpack/dist/config/manifestPlugin.js 653 B
./packages/bundler-webpack/dist/config/miniCSSExtractPlugin.d.ts 233 B
./packages/bundler-webpack/dist/config/miniCSSExtractPlugin.js 998 B
./packages/bundler-webpack/dist/config/nodePolyfill.d.ts 214 B
./packages/bundler-webpack/dist/config/nodePolyfill.js 757 B
./packages/bundler-webpack/dist/config/nodePrefixPlugin.d.ts 223 B
./packages/bundler-webpack/dist/config/nodePrefixPlugin.js 652 B
./packages/bundler-webpack/dist/config/progressPlugin.d.ts 221 B
./packages/bundler-webpack/dist/config/progressPlugin.js 914 B
./packages/bundler-webpack/dist/config/purgecssWebpackPlugin.d.ts 221 B
./packages/bundler-webpack/dist/config/purgecssWebpackPlugin.js 675 B
./packages/bundler-webpack/dist/config/speedMeasureWebpackPlugin.d.ts 175 B
./packages/bundler-webpack/dist/config/speedMeasureWebpackPlugin.js 1.12 kB
./packages/bundler-webpack/dist/config/ssrPlugin.d.ts 203 B
./packages/bundler-webpack/dist/config/ssrPlugin.js 1.28 kB
./packages/bundler-webpack/dist/config/svgRules.d.ts 237 B
./packages/bundler-webpack/dist/config/svgRules.js 1.11 kB
./packages/bundler-webpack/dist/constants.d.ts 263 B
./packages/bundler-webpack/dist/constants.js 791 B
./packages/bundler-webpack/dist/dev.d.ts 564 B
./packages/bundler-webpack/dist/dev.js 2.47 kB
./packages/bundler-webpack/dist/index.d.ts 193 B
./packages/bundler-webpack/dist/index.js 563 B
./packages/bundler-webpack/dist/loader/svgr.d.ts 165 B
./packages/bundler-webpack/dist/loader/svgr.js 1.28 kB
./packages/bundler-webpack/dist/loader/swc.d.ts 190 B
./packages/bundler-webpack/dist/loader/swc.js 1.61 kB
./packages/bundler-webpack/dist/parcelCSS.d.ts 73 B
./packages/bundler-webpack/dist/parcelCSS.js 743 B
./packages/bundler-webpack/dist/plugins/_SamplePlugin.d.ts 187 B
./packages/bundler-webpack/dist/plugins/_SamplePlugin.js 569 B
./packages/bundler-webpack/dist/plugins/EsbuildMinifyFix.d.ts 215 B
./packages/bundler-webpack/dist/plugins/EsbuildMinifyFix.js 1.55 kB
./packages/bundler-webpack/dist/plugins/ProgressPlugin.d.ts 256 B
./packages/bundler-webpack/dist/plugins/ProgressPlugin.js 1 kB
./packages/bundler-webpack/dist/plugins/RuntimePublicPathPlugin.d.ts 144 B
./packages/bundler-webpack/dist/plugins/RuntimePublicPathPlugin.js 751 B
./packages/bundler-webpack/dist/requireHook.d.ts 31 B
./packages/bundler-webpack/dist/requireHook.js 980 B
./packages/bundler-webpack/dist/schema.d.ts 142 B
./packages/bundler-webpack/dist/schema.js 1.55 kB
./packages/bundler-webpack/dist/server/server.d.ts 276 B
./packages/bundler-webpack/dist/server/server.js 2.68 kB
./packages/bundler-webpack/dist/server/ws.d.ts 255 B
./packages/bundler-webpack/dist/server/ws.js 1.12 kB
./packages/bundler-webpack/dist/swcPlugins/autoCSSModules.d.ts 606 B
./packages/bundler-webpack/dist/swcPlugins/autoCSSModules.js 1.07 kB
./packages/bundler-webpack/dist/swcPlugins/changeImportFromString.d.ts 127 B
./packages/bundler-webpack/dist/swcPlugins/changeImportFromString.js 539 B
./packages/bundler-webpack/dist/swcPlugins/lockCoreJS.d.ts 157 B
./packages/bundler-webpack/dist/swcPlugins/lockCoreJS.js 1.03 kB
./packages/bundler-webpack/dist/types.d.ts 1.1 kB
./packages/bundler-webpack/dist/types.js 742 B
./packages/bundler-webpack/dist/utils/browsersList.d.ts 127 B
./packages/bundler-webpack/dist/utils/browsersList.js 564 B
./packages/bundler-webpack/dist/utils/depMatch.d.ts 176 B
./packages/bundler-webpack/dist/utils/depMatch.js 927 B
./packages/bundler-webpack/dist/utils/formatWebpackMessages.d.ts 139 B
./packages/bundler-webpack/dist/utils/formatWebpackMessages.js 1.78 kB
./packages/bundler-webpack/dist/utils/getEsBuildTarget.d.ts 176 B
./packages/bundler-webpack/dist/utils/getEsBuildTarget.js 793 B
./packages/bundler-webpack/dist/utils/pkgUpContainsName.d.ts 85 B
./packages/bundler-webpack/dist/utils/pkgUpContainsName.js 866 B
./packages/core/compiled/dotenv-expand/index.js 608 B
./packages/core/compiled/dotenv-expand/lib/main.d.ts 383 B
./packages/core/compiled/dotenv/index.js 960 B
./packages/core/compiled/dotenv/lib/main.d.ts 827 B
./packages/core/compiled/dotenv/types/index.d.ts 703 B
./packages/core/compiled/just-diff/index.d.ts 305 B
./packages/core/compiled/just-diff/index.js 710 B
./packages/core/dist/config/config.d.ts 481 B
./packages/core/dist/config/config.js 2.49 kB
./packages/core/dist/config/utils.d.ts 117 B
./packages/core/dist/config/utils.js 644 B
./packages/core/dist/constants.d.ts 195 B
./packages/core/dist/constants.js 675 B
./packages/core/dist/index.d.ts 154 B
./packages/core/dist/index.js 699 B
./packages/core/dist/route/defineRoutes.d.ts 92 B
./packages/core/dist/route/defineRoutes.js 876 B
./packages/core/dist/route/route.d.ts 72 B
./packages/core/dist/route/route.js 528 B
./packages/core/dist/route/routesConfig.d.ts 144 B
./packages/core/dist/route/routesConfig.js 1.46 kB
./packages/core/dist/route/routesConvention.d.ts 121 B
./packages/core/dist/route/routesConvention.js 1.25 kB
./packages/core/dist/route/routeUtils.d.ts 167 B
./packages/core/dist/route/routeUtils.js 667 B
./packages/core/dist/route/utils.d.ts 213 B
./packages/core/dist/route/utils.js 850 B
./packages/core/dist/service/command.d.ts 262 B
./packages/core/dist/service/command.js 588 B
./packages/core/dist/service/env.d.ts 95 B
./packages/core/dist/service/env.js 733 B
./packages/core/dist/service/generatePlugin.d.ts 129 B
./packages/core/dist/service/generatePlugin.js 1.17 kB
./packages/core/dist/service/generator.d.ts 428 B
./packages/core/dist/service/generator.js 589 B
./packages/core/dist/service/hook.d.ts 167 B
./packages/core/dist/service/hook.js 873 B
./packages/core/dist/service/path.d.ts 192 B
./packages/core/dist/service/path.js 811 B
./packages/core/dist/service/plugin.d.ts 514 B
./packages/core/dist/service/plugin.js 2.15 kB
./packages/core/dist/service/pluginAPI.d.ts 637 B
./packages/core/dist/service/pluginAPI.js 2.61 kB
./packages/core/dist/service/service.d.ts 1.53 kB
./packages/core/dist/service/service.js 4.71 kB
./packages/core/dist/service/servicePlugin.d.ts 107 B
./packages/core/dist/service/servicePlugin.js 552 B
./packages/core/dist/service/telemetry.d.ts 335 B
./packages/core/dist/service/telemetry.js 1.1 kB
./packages/core/dist/service/utils.d.ts 99 B
./packages/core/dist/service/utils.js 563 B
./packages/core/dist/types.d.ts 758 B
./packages/core/dist/types.js 953 B
./packages/create-umi/dist/cli.d.ts 31 B
./packages/create-umi/dist/cli.js 368 B
./packages/create-umi/dist/index.d.ts 443 B
./packages/create-umi/dist/index.js 2.88 kB
./packages/create-umi/dist/template.d.ts 224 B
./packages/create-umi/dist/template.js 1.41 kB
./packages/lint/compiled/@rushstack/eslint-patch/lib/modern-module-resolution.js 2.14 kB
./packages/lint/compiled/postcss-less/index.js 22 kB
./packages/lint/compiled/stylelint-config-css-modules/index.js 461 B
./packages/lint/compiled/stylelint-config-prettier/index.js 739 B
./packages/lint/compiled/stylelint-declaration-block-no-ignored-properties/index.js 141 kB
./packages/lint/dist/config/eslint/index.d.ts 38 B
./packages/lint/dist/config/eslint/index.js 1.08 kB
./packages/lint/dist/config/eslint/legacy.d.ts 38 B
./packages/lint/dist/config/eslint/legacy.js 949 B
./packages/lint/dist/config/eslint/rules/fabric.d.ts 879 B
./packages/lint/dist/config/eslint/rules/fabric.js 1.29 kB
./packages/lint/dist/config/eslint/rules/recommended.d.ts 909 B
./packages/lint/dist/config/eslint/rules/recommended.js 1.65 kB
./packages/lint/dist/config/eslint/setup.d.ts 20 B
./packages/lint/dist/config/eslint/setup.js 114 B
./packages/lint/dist/config/stylelint/index.d.ts 20 B
./packages/lint/dist/config/stylelint/index.js 1.48 kB
./packages/lint/dist/index.d.ts 133 B
./packages/lint/dist/index.js 701 B
./packages/lint/dist/linter/base.d.ts 272 B
./packages/lint/dist/linter/base.js 1.08 kB
./packages/lint/dist/linter/eslint.d.ts 169 B
./packages/lint/dist/linter/eslint.js 820 B
./packages/lint/dist/linter/index.d.ts 83 B
./packages/lint/dist/linter/index.js 774 B
./packages/lint/dist/linter/stylelint.d.ts 172 B
./packages/lint/dist/linter/stylelint.js 867 B
./packages/lint/dist/types.d.ts 133 B
./packages/lint/dist/types.js 374 B
./packages/max/dist/cli.d.ts 31 B
./packages/max/dist/cli.js 667 B
./packages/max/dist/index.d.ts 41 B
./packages/max/dist/index.js 493 B
./packages/max/dist/plugins/maxAlias.d.ts 100 B
./packages/max/dist/plugins/maxAlias.js 519 B
./packages/max/dist/plugins/maxAppData.d.ts 100 B
./packages/max/dist/plugins/maxAppData.js 524 B
./packages/max/dist/plugins/maxChecker.d.ts 100 B
./packages/max/dist/plugins/maxChecker.js 647 B
./packages/max/dist/preset.d.ts 91 B
./packages/max/dist/preset.js 875 B
./packages/mfsu/compiled/is-absolute-url/index.d.ts 212 B
./packages/mfsu/compiled/is-absolute-url/index.js 434 B
./packages/mfsu/compiled/mrmime/index.d.ts 101 B
./packages/mfsu/compiled/mrmime/index.js 2.96 kB
./packages/mfsu/compiled/webpack-virtual-modules/index.js 2.13 kB
./packages/mfsu/dist/babelPlugins/awaitImport/awaitImport.d.ts 355 B
./packages/mfsu/dist/babelPlugins/awaitImport/awaitImport.js 1.29 kB
./packages/mfsu/dist/babelPlugins/awaitImport/checkMatch.d.ts 296 B
./packages/mfsu/dist/babelPlugins/awaitImport/checkMatch.js 2.07 kB
./packages/mfsu/dist/babelPlugins/awaitImport/getAliasedPath.d.ts 128 B
./packages/mfsu/dist/babelPlugins/awaitImport/getAliasedPath.js 711 B
./packages/mfsu/dist/babelPlugins/awaitImport/getRealPath.d.ts 99 B
./packages/mfsu/dist/babelPlugins/awaitImport/getRealPath.js 735 B
./packages/mfsu/dist/babelPlugins/awaitImport/isExternals.d.ts 169 B
./packages/mfsu/dist/babelPlugins/awaitImport/isExternals.js 673 B
./packages/mfsu/dist/babelPlugins/awaitImport/MFImport.d.ts 328 B
./packages/mfsu/dist/babelPlugins/awaitImport/MFImport.js 1.03 kB
./packages/mfsu/dist/babelPlugins/awaitImport/parseSpecifiers.d.ts 74 B
./packages/mfsu/dist/babelPlugins/awaitImport/parseSpecifiers.js 1.03 kB
./packages/mfsu/dist/constants.d.ts 198 B
./packages/mfsu/dist/constants.js 702 B
./packages/mfsu/dist/dep/dep.d.ts 330 B
./packages/mfsu/dist/dep/dep.js 1.77 kB
./packages/mfsu/dist/dep/getCJSExports.d.ts 92 B
./packages/mfsu/dist/dep/getCJSExports.js 1.13 kB
./packages/mfsu/dist/dep/getExposeFromContent.d.ts 141 B
./packages/mfsu/dist/dep/getExposeFromContent.js 1.43 kB
./packages/mfsu/dist/dep/getModuleExports.d.ts 147 B
./packages/mfsu/dist/dep/getModuleExports.js 855 B
./packages/mfsu/dist/depBuilder/depBuilder.d.ts 328 B
./packages/mfsu/dist/depBuilder/depBuilder.js 2.43 kB
./packages/mfsu/dist/depBuilder/getESBuildEntry.d.ts 131 B
./packages/mfsu/dist/depBuilder/getESBuildEntry.js 3.8 kB
./packages/mfsu/dist/depInfo.d.ts 354 B
./packages/mfsu/dist/depInfo.js 1.1 kB
./packages/mfsu/dist/esbuildHandlers/autoCssModules.d.ts 129 B
./packages/mfsu/dist/esbuildHandlers/autoCssModules.js 764 B
./packages/mfsu/dist/esbuildHandlers/awaitImport/index.d.ts 270 B
./packages/mfsu/dist/esbuildHandlers/awaitImport/index.js 986 B
./packages/mfsu/dist/index.d.ts 113 B
./packages/mfsu/dist/index.js 614 B
./packages/mfsu/dist/loader/esbuild.d.ts 182 B
./packages/mfsu/dist/loader/esbuild.js 1.04 kB
./packages/mfsu/dist/mfsu/mfsu.d.ts 934 B
./packages/mfsu/dist/mfsu/mfsu.js 4.27 kB
./packages/mfsu/dist/mfsu/strategyCompileTime.d.ts 372 B
./packages/mfsu/dist/mfsu/strategyCompileTime.js 1.54 kB
./packages/mfsu/dist/mfsu/strategyStaticAnalyze.js 2.12 kB
./packages/mfsu/dist/moduleGraph.d.ts 488 B
./packages/mfsu/dist/moduleGraph.js 1.8 kB
./packages/mfsu/dist/staticDepInfo/importParser.d.ts 93 B
./packages/mfsu/dist/staticDepInfo/importParser.js 508 B
./packages/mfsu/dist/staticDepInfo/simulations/babel-plugin-import.d.ts 302 B
./packages/mfsu/dist/staticDepInfo/simulations/babel-plugin-import.js 1.79 kB
./packages/mfsu/dist/staticDepInfo/staticDepInfo.d.ts 753 B
./packages/mfsu/dist/staticDepInfo/staticDepInfo.js 2.58 kB
./packages/mfsu/dist/types.d.ts 312 B
./packages/mfsu/dist/types.js 542 B
./packages/mfsu/dist/utils/makeArray.d.ts 69 B
./packages/mfsu/dist/utils/makeArray.js 512 B
./packages/mfsu/dist/utils/resolveUtils.d.ts 100 B
./packages/mfsu/dist/utils/resolveUtils.js 1.26 kB
./packages/mfsu/dist/utils/trimFileContent.d.ts 75 B
./packages/mfsu/dist/utils/trimFileContent.js 516 B
./packages/mfsu/dist/utils/webpackUtils.d.ts 168 B
./packages/mfsu/dist/utils/webpackUtils.js 1.31 kB
./packages/mfsu/dist/webpackPlugins/buildDepPlugin.d.ts 215 B
./packages/mfsu/dist/webpackPlugins/buildDepPlugin.js 835 B
./packages/mfsu/dist/webpackPlugins/depChunkIdPrefixPlugin.d.ts 137 B
./packages/mfsu/dist/webpackPlugins/depChunkIdPrefixPlugin.js 690 B
./packages/mfsu/dist/webpackPlugins/stripSourceMapUrlPlugin.d.ts 167 B
./packages/mfsu/dist/webpackPlugins/stripSourceMapUrlPlugin.js 824 B
./packages/mfsu/dist/webpackPlugins/writeCachePlugin.d.ts 173 B
./packages/mfsu/dist/webpackPlugins/writeCachePlugin.js 652 B
./packages/plugin-docs/compiled/@mdx-js/mdx/index.js 141 kB
./packages/plugin-docs/compiled/rehype-autolink-headings/index.js 2.59 kB
./packages/plugin-docs/compiled/rehype-slug/index.js 5.11 kB
./packages/plugin-docs/compiled/remark-gfm/index.js 25.5 kB
./packages/plugin-docs/dist/compiler.d.ts 113 B
./packages/plugin-docs/dist/compiler.js 1.76 kB
./packages/plugin-docs/dist/index.d.ts 100 B
./packages/plugin-docs/dist/index.js 2.12 kB
./packages/plugin-docs/dist/loader.d.ts 77 B
./packages/plugin-docs/dist/loader.js 614 B
./packages/plugin-docs/dist/markdown.d.ts 110 B
./packages/plugin-docs/dist/markdown.js 681 B
./packages/plugin-run/dist/index.d.ts 140 B
./packages/plugin-run/dist/index.js 1.62 kB
./packages/plugins/dist/access.d.ts 100 B
./packages/plugins/dist/access.js 2.1 kB
./packages/plugins/dist/analytics.d.ts 105 B
./packages/plugins/dist/analytics.js 1.26 kB
./packages/plugins/dist/antd.d.ts 100 B
./packages/plugins/dist/antd.js 4.19 kB
./packages/plugins/dist/confetti.d.ts 100 B
./packages/plugins/dist/confetti.js 847 B
./packages/plugins/dist/constants.d.ts 64 B
./packages/plugins/dist/constants.js 539 B
./packages/plugins/dist/dva.d.ts 170 B
./packages/plugins/dist/dva.js 3.2 kB
./packages/plugins/dist/initial-state.d.ts 100 B
./packages/plugins/dist/layout.d.ts 100 B
./packages/plugins/dist/layout.js 7.74 kB
./packages/plugins/dist/locale.d.ts 136 B
./packages/plugins/dist/locale.js 2.86 kB
./packages/plugins/dist/mf.d.ts 92 B
./packages/plugins/dist/mf.js 3.44 kB
./packages/plugins/dist/model.d.ts 100 B
./packages/plugins/dist/model.js 1.56 kB
./packages/plugins/dist/moment2dayjs.d.ts 100 B
./packages/plugins/dist/moment2dayjs.js 1.47 kB
./packages/plugins/dist/qiankun.d.ts 100 B
./packages/plugins/dist/qiankun.js 867 B
./packages/plugins/dist/qiankun/constants.d.ts 170 B
./packages/plugins/dist/qiankun/constants.js 638 B
./packages/plugins/dist/qiankun/master.d.ts 152 B
./packages/plugins/dist/qiankun/slave.d.ts 100 B
./packages/plugins/dist/react-query.d.ts 100 B
./packages/plugins/dist/react-query.js 2.46 kB
./packages/plugins/dist/request.d.ts 100 B
./packages/plugins/dist/request.js 3.39 kB
./packages/plugins/dist/styled-components.d.ts 100 B
./packages/plugins/dist/styled-components.js 2.02 kB
./packages/plugins/dist/tailwindcss.d.ts 100 B
./packages/plugins/dist/tailwindcss.js 1.35 kB
./packages/plugins/dist/unocss.d.ts 100 B
./packages/plugins/dist/unocss.js 1.13 kB
./packages/plugins/dist/utils/astUtils.d.ts 160 B
./packages/plugins/dist/utils/astUtils.js 881 B
./packages/plugins/dist/utils/localeUtils.d.ts 501 B
./packages/plugins/dist/utils/localeUtils.js 1.75 kB
./packages/plugins/dist/utils/mfUtils.d.ts 177 B
./packages/plugins/dist/utils/mfUtils.js 702 B
./packages/plugins/dist/utils/modelUtils.d.ts 514 B
./packages/plugins/dist/utils/modelUtils.js 3.09 kB
./packages/plugins/dist/utils/npmClient.d.ts 112 B
./packages/plugins/dist/utils/npmClient.js 713 B
./packages/plugins/dist/utils/resolveProjectDep.d.ts 115 B
./packages/plugins/dist/utils/resolveProjectDep.js 665 B
./packages/plugins/dist/utils/withTmpPath.d.ts 135 B
./packages/plugins/dist/utils/withTmpPath.js 615 B
./packages/plugins/dist/valtio.d.ts 100 B
./packages/plugins/dist/valtio.js 1.06 kB
./packages/preset-umi/compiled/@manypkg/get-packages/index.js 60.6 kB
./packages/preset-umi/compiled/body-parser/connect/index.d.ts 1.15 kB
./packages/preset-umi/compiled/body-parser/index.d.ts 1.43 kB
./packages/preset-umi/compiled/body-parser/index.js 214 kB
./packages/preset-umi/compiled/ini/index.d.ts 325 B
./packages/preset-umi/compiled/ini/index.js 1.36 kB
./packages/preset-umi/compiled/joi2types/index.js 62 kB
./packages/preset-umi/compiled/multer/body-parser/index.d.ts 1.42 kB
./packages/preset-umi/compiled/multer/connect/index.d.ts 1.15 kB
./packages/preset-umi/compiled/multer/express-serve-static-core/index.d.ts 10.1 kB
./packages/preset-umi/compiled/multer/express/index.d.ts 1.24 kB
./packages/preset-umi/compiled/multer/index.d.ts 3.38 kB
./packages/preset-umi/compiled/multer/index.js 237 kB
./packages/preset-umi/compiled/multer/mime/index.d.ts 508 B
./packages/preset-umi/compiled/multer/qs/index.d.ts 896 B
./packages/preset-umi/compiled/multer/range-parser/index.d.ts 595 B
./packages/preset-umi/compiled/multer/serve-static/index.d.ts 1.73 kB
./packages/preset-umi/compiled/os-locale/index.d.ts 371 B
./packages/preset-umi/compiled/os-locale/index.js 2.8 kB
./packages/preset-umi/compiled/sirv/index.js 5.04 kB
./packages/preset-umi/dist/commands/build.d.ts 108 B
./packages/preset-umi/dist/commands/config/config.d.ts 108 B
./packages/preset-umi/dist/commands/config/config.js 894 B
./packages/preset-umi/dist/commands/config/list.d.ts 133 B
./packages/preset-umi/dist/commands/config/list.js 746 B
./packages/preset-umi/dist/commands/config/remove.d.ts 88 B
./packages/preset-umi/dist/commands/config/remove.js 715 B
./packages/preset-umi/dist/commands/config/set.d.ts 114 B
./packages/preset-umi/dist/commands/config/set.js 821 B
./packages/preset-umi/dist/commands/deadcode.d.ts 108 B
./packages/preset-umi/dist/commands/deadcode.js 2.73 kB
./packages/preset-umi/dist/commands/dev/createRouteMiddleware.d.ts 190 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/depBuilder.d.ts 392 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/depBuilder.js 2.59 kB
./packages/preset-umi/dist/commands/dev/depBuildWorker/depBuildWorker.d.ts 31 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/depBuildWorker.js 1.91 kB
./packages/preset-umi/dist/commands/dev/depBuildWorker/dev-config.d.ts 106 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/dev-config.js 1.32 kB
./packages/preset-umi/dist/commands/dev/depBuildWorker/getConfig.d.ts 74 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/getConfig.js 871 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/workerPreset.d.ts 91 B
./packages/preset-umi/dist/commands/dev/depBuildWorker/workerPreset.js 752 B
./packages/preset-umi/dist/commands/dev/dev.d.ts 110 B
./packages/preset-umi/dist/commands/dev/faviconMiddleware.d.ts 119 B
./packages/preset-umi/dist/commands/dev/faviconMiddleware.js 601 B
./packages/preset-umi/dist/commands/dev/getAssetsMap.d.ts 120 B
./packages/preset-umi/dist/commands/dev/getAssetsMap.js 774 B
./packages/preset-umi/dist/commands/dev/getBabelOpts.d.ts 166 B
./packages/preset-umi/dist/commands/dev/getBabelOpts.js 1.16 kB
./packages/preset-umi/dist/commands/dev/getMarkupArgs.d.ts 225 B
./packages/preset-umi/dist/commands/dev/getMarkupArgs.js 1.25 kB
./packages/preset-umi/dist/commands/dev/plugins/ViteHtmlPlugin.d.ts 121 B
./packages/preset-umi/dist/commands/dev/plugins/ViteHtmlPlugin.js 958 B
./packages/preset-umi/dist/commands/dev/printMemoryUsage.d.ts 70 B
./packages/preset-umi/dist/commands/dev/printMemoryUsage.js 887 B
./packages/preset-umi/dist/commands/dev/watch.d.ts 323 B
./packages/preset-umi/dist/commands/dev/watch.js 948 B
./packages/preset-umi/dist/commands/generators/api.d.ts 162 B
./packages/preset-umi/dist/commands/generators/api.js 1.22 kB
./packages/preset-umi/dist/commands/generators/component.d.ts 249 B
./packages/preset-umi/dist/commands/generators/component.js 1.34 kB
./packages/preset-umi/dist/commands/generators/cypress.d.ts 108 B
./packages/preset-umi/dist/commands/generators/cypress.js 1.23 kB
./packages/preset-umi/dist/commands/generators/dva.d.ts 108 B
./packages/preset-umi/dist/commands/generators/dva.js 1.12 kB
./packages/preset-umi/dist/commands/generators/jest.d.ts 108 B
./packages/preset-umi/dist/commands/generators/jest.js 2.01 kB
./packages/preset-umi/dist/commands/generators/mock.d.ts 108 B
./packages/preset-umi/dist/commands/generators/mock.js 848 B
./packages/preset-umi/dist/commands/generators/page.d.ts 394 B
./packages/preset-umi/dist/commands/generators/page.js 1.97 kB
./packages/preset-umi/dist/commands/generators/precommit.d.ts 108 B
./packages/preset-umi/dist/commands/generators/precommit.js 1.13 kB
./packages/preset-umi/dist/commands/generators/prettier.d.ts 108 B
./packages/preset-umi/dist/commands/generators/prettier.js 1.03 kB
./packages/preset-umi/dist/commands/generators/tailwindcss.d.ts 108 B
./packages/preset-umi/dist/commands/generators/tailwindcss.js 1.06 kB
./packages/preset-umi/dist/commands/generators/tsconfig.d.ts 108 B
./packages/preset-umi/dist/commands/generators/tsconfig.js 1.11 kB
./packages/preset-umi/dist/commands/generators/utils.d.ts 763 B
./packages/preset-umi/dist/commands/generators/utils.js 2.84 kB
./packages/preset-umi/dist/commands/help.d.ts 105 B
./packages/preset-umi/dist/commands/help.js 1.02 kB
./packages/preset-umi/dist/commands/lint.d.ts 105 B
./packages/preset-umi/dist/commands/lint.js 1.18 kB
./packages/preset-umi/dist/commands/mfsu/mfsu.d.ts 108 B
./packages/preset-umi/dist/commands/mfsu/mfsu.js 1.37 kB
./packages/preset-umi/dist/commands/mfsu/util.d.ts 329 B
./packages/preset-umi/dist/commands/mfsu/util.js 3 kB
./packages/preset-umi/dist/commands/plugin.d.ts 105 B
./packages/preset-umi/dist/commands/plugin.js 881 B
./packages/preset-umi/dist/commands/preview.d.ts 105 B
./packages/preset-umi/dist/commands/preview.js 1.83 kB
./packages/preset-umi/dist/commands/setup.d.ts 108 B
./packages/preset-umi/dist/commands/setup.js 637 B
./packages/preset-umi/dist/commands/verify-commit.d.ts 105 B
./packages/preset-umi/dist/commands/verify-commit.js 3.89 kB
./packages/preset-umi/dist/commands/version.d.ts 105 B
./packages/preset-umi/dist/commands/version.js 598 B
./packages/preset-umi/dist/constants.d.ts 123 B
./packages/preset-umi/dist/constants.js 621 B
./packages/preset-umi/dist/features/__sample.d.ts 105 B
./packages/preset-umi/dist/features/__sample.js 459 B
./packages/preset-umi/dist/features/404/404.d.ts 164 B
./packages/preset-umi/dist/features/404/404.js 641 B
./packages/preset-umi/dist/features/apiRoute/apiRoute.d.ts 110 B
./packages/preset-umi/dist/features/apiRoute/apiRoute.js 2.4 kB
./packages/preset-umi/dist/features/apiRoute/constants.d.ts 62 B
./packages/preset-umi/dist/features/apiRoute/constants.js 511 B
./packages/preset-umi/dist/features/apiRoute/dev-server/esbuild.d.ts 123 B
./packages/preset-umi/dist/features/apiRoute/dev-server/esbuild.js 1.18 kB
./packages/preset-umi/dist/features/apiRoute/index.d.ts 105 B
./packages/preset-umi/dist/features/apiRoute/index.js 814 B
./packages/preset-umi/dist/features/apiRoute/request.d.ts 403 B
./packages/preset-umi/dist/features/apiRoute/request.js 1.62 kB
./packages/preset-umi/dist/features/apiRoute/response.d.ts 235 B
./packages/preset-umi/dist/features/apiRoute/response.js 680 B
./packages/preset-umi/dist/features/apiRoute/utils.d.ts 468 B
./packages/preset-umi/dist/features/apiRoute/utils.js 976 B
./packages/preset-umi/dist/features/apiRoute/vercel/esbuild.d.ts 123 B
./packages/preset-umi/dist/features/apiRoute/vercel/esbuild.js 1.05 kB
./packages/preset-umi/dist/features/appData/appData.d.ts 110 B
./packages/preset-umi/dist/features/appData/appData.js 2.31 kB
./packages/preset-umi/dist/features/appData/umiInfo.d.ts 110 B
./packages/preset-umi/dist/features/check/babel722.d.ts 110 B
./packages/preset-umi/dist/features/check/babel722.js 1.23 kB
./packages/preset-umi/dist/features/check/check.d.ts 108 B
./packages/preset-umi/dist/features/check/check.js 1.57 kB
./packages/preset-umi/dist/features/classPropertiesLoose/classPropertiesLoose.d.ts 108 B
./packages/preset-umi/dist/features/classPropertiesLoose/classPropertiesLoose.js 682 B
./packages/preset-umi/dist/features/clickToComponent/clickToComponent.d.ts 108 B
./packages/preset-umi/dist/features/clickToComponent/clickToComponent.js 1.38 kB
./packages/preset-umi/dist/features/clientLoader/clientLoader.d.ts 110 B
./packages/preset-umi/dist/features/clientLoader/clientLoader.js 636 B
./packages/preset-umi/dist/features/codeSplitting/codeSplitting.d.ts 108 B
./packages/preset-umi/dist/features/codeSplitting/codeSplitting.js 2.03 kB
./packages/preset-umi/dist/features/configPlugins/configPlugins.d.ts 110 B
./packages/preset-umi/dist/features/configPlugins/configPlugins.js 1.77 kB
./packages/preset-umi/dist/features/configPlugins/schema.d.ts 138 B
./packages/preset-umi/dist/features/configPlugins/schema.js 1.24 kB
./packages/preset-umi/dist/features/crossorigin/crossorigin.d.ts 108 B
./packages/preset-umi/dist/features/crossorigin/crossorigin.js 838 B
./packages/preset-umi/dist/features/depsOnDemand/depsOnDemand.d.ts 246 B
./packages/preset-umi/dist/features/depsOnDemand/depsOnDemand.js 1.45 kB
./packages/preset-umi/dist/features/devTool/devTool.d.ts 108 B
./packages/preset-umi/dist/features/esbuildHelperChecker/esbuildHelperChecker.d.ts 174 B
./packages/preset-umi/dist/features/esbuildHelperChecker/esbuildHelperChecker.js 1.82 kB
./packages/preset-umi/dist/features/esmi/esbuildPlugins/requireToImport.d.ts 216 B
./packages/preset-umi/dist/features/esmi/esbuildPlugins/requireToImport.js 972 B
./packages/preset-umi/dist/features/esmi/esbuildPlugins/topLevelExternal.d.ts 323 B
./packages/preset-umi/dist/features/esmi/esbuildPlugins/topLevelExternal.js 757 B
./packages/preset-umi/dist/features/esmi/esmi.d.ts 110 B
./packages/preset-umi/dist/features/esmi/esmi.js 2.64 kB
./packages/preset-umi/dist/features/esmi/Service.d.ts 575 B
./packages/preset-umi/dist/features/esmi/Service.js 1.66 kB
./packages/preset-umi/dist/features/exportStatic/exportStatic.d.ts 110 B
./packages/preset-umi/dist/features/favicons/favicons.d.ts 108 B
./packages/preset-umi/dist/features/favicons/favicons.js 982 B
./packages/preset-umi/dist/features/forget/forget.d.ts 108 B
./packages/preset-umi/dist/features/forget/forget.js 1.08 kB
./packages/preset-umi/dist/features/helmet/helmet.d.ts 147 B
./packages/preset-umi/dist/features/helmet/helmet.js 1.07 kB
./packages/preset-umi/dist/features/hmrGuardian/babelPlugin.d.ts 134 B
./packages/preset-umi/dist/features/hmrGuardian/babelPlugin.js 1.39 kB
./packages/preset-umi/dist/features/hmrGuardian/hmrGuardian.d.ts 93 B
./packages/preset-umi/dist/features/hmrGuardian/hmrGuardian.js 889 B
./packages/preset-umi/dist/features/icons/esbuildIconPlugin.d.ts 159 B
./packages/preset-umi/dist/features/icons/esbuildIconPlugin.js 1.1 kB
./packages/preset-umi/dist/features/icons/extract.d.ts 75 B
./packages/preset-umi/dist/features/icons/extract.js 970 B
./packages/preset-umi/dist/features/icons/icons.d.ts 110 B
./packages/preset-umi/dist/features/icons/icons.js 4.13 kB
./packages/preset-umi/dist/features/icons/loadIcon.d.ts 215 B
./packages/preset-umi/dist/features/icons/loadIcon.js 1.26 kB
./packages/preset-umi/dist/features/icons/svgr.d.ts 212 B
./packages/preset-umi/dist/features/icons/svgr.js 1.31 kB
./packages/preset-umi/dist/features/legacy/legacy.d.ts 110 B
./packages/preset-umi/dist/features/legacy/legacy.js 2.39 kB
./packages/preset-umi/dist/features/lowImport/babelPlugin.d.ts 295 B
./packages/preset-umi/dist/features/lowImport/babelPlugin.js 1.6 kB
./packages/preset-umi/dist/features/lowImport/lowImport.d.ts 183 B
./packages/preset-umi/dist/features/lowImport/lowImport.js 1.92 kB
./packages/preset-umi/dist/features/mako/mako.d.ts 108 B
./packages/preset-umi/dist/features/mock/constants.d.ts 122 B
./packages/preset-umi/dist/features/mock/constants.js 616 B
./packages/preset-umi/dist/features/mock/createMockMiddleware.d.ts 197 B
./packages/preset-umi/dist/features/mock/createMockMiddleware.js 1.45 kB
./packages/preset-umi/dist/features/mock/getMockData.d.ts 176 B
./packages/preset-umi/dist/features/mock/getMockData.js 1.76 kB
./packages/preset-umi/dist/features/mock/mock.d.ts 93 B
./packages/preset-umi/dist/features/mock/mock.js 1.28 kB
./packages/preset-umi/dist/features/monorepo/redirect.d.ts 110 B
./packages/preset-umi/dist/features/monorepo/redirect.js 2.14 kB
./packages/preset-umi/dist/features/mpa/extractExports.d.ts 116 B
./packages/preset-umi/dist/features/mpa/extractExports.js 1.38 kB
./packages/preset-umi/dist/features/mpa/mpa.d.ts 108 B
./packages/preset-umi/dist/features/mpa/mpa.js 2.65 kB
./packages/preset-umi/dist/features/okam/okam.d.ts 108 B
./packages/preset-umi/dist/features/overrides/compileLess.d.ts 145 B
./packages/preset-umi/dist/features/overrides/compileLess.js 980 B
./packages/preset-umi/dist/features/overrides/compileLess.testScript.d.ts 31 B
./packages/preset-umi/dist/features/overrides/compileLess.testScript.js 1.07 kB
./packages/preset-umi/dist/features/overrides/overrides.d.ts 162 B
./packages/preset-umi/dist/features/overrides/overrides.js 1.09 kB
./packages/preset-umi/dist/features/overrides/transform.d.ts 98 B
./packages/preset-umi/dist/features/overrides/transform.js 1.33 kB
./packages/preset-umi/dist/features/phantomDependency/phantomDependency.d.ts 108 B
./packages/preset-umi/dist/features/phantomDependency/phantomDependency.js 1.78 kB
./packages/preset-umi/dist/features/polyfill/polyfill.d.ts 108 B
./packages/preset-umi/dist/features/polyfill/polyfill.js 1.65 kB
./packages/preset-umi/dist/features/polyfill/publicPathPolyfill.d.ts 108 B
./packages/preset-umi/dist/features/polyfill/publicPathPolyfill.js 826 B
./packages/preset-umi/dist/features/prepare/build.d.ts 273 B
./packages/preset-umi/dist/features/prepare/build.js 1.67 kB
./packages/preset-umi/dist/features/prepare/esbuildPlugins/esbuildAliasPlugin.d.ts 150 B
./packages/preset-umi/dist/features/prepare/esbuildPlugins/esbuildAliasPlugin.js 1.45 kB
./packages/preset-umi/dist/features/prepare/esbuildPlugins/esbuildExternalPlugin.d.ts 152 B
./packages/preset-umi/dist/features/prepare/esbuildPlugins/esbuildExternalPlugin.js 1.3 kB
./packages/preset-umi/dist/features/prepare/esbuildPlugins/isRelative.d.ts 80 B
./packages/preset-umi/dist/features/prepare/esbuildPlugins/isRelative.js 539 B
./packages/preset-umi/dist/features/prepare/prepare.d.ts 108 B
./packages/preset-umi/dist/features/prepare/prepare.js 1.77 kB
./packages/preset-umi/dist/features/routePrefetch/routePrefetch.d.ts 110 B
./packages/preset-umi/dist/features/routePrefetch/routePrefetch.js 919 B
./packages/preset-umi/dist/features/routePreloadOnLoad/routePreloadOnLoad.d.ts 261 B
./packages/preset-umi/dist/features/routePreloadOnLoad/routePreloadOnLoad.js 3.06 kB
./packages/preset-umi/dist/features/routePreloadOnLoad/utils.d.ts 380 B
./packages/preset-umi/dist/features/routePreloadOnLoad/utils.js 948 B
./packages/preset-umi/dist/features/routeProps/routeProps.d.ts 110 B
./packages/preset-umi/dist/features/routeProps/routeProps.js 638 B
./packages/preset-umi/dist/features/ssr/builder/assets-loader.d.ts 137 B
./packages/preset-umi/dist/features/ssr/builder/assets-loader.js 949 B
./packages/preset-umi/dist/features/ssr/builder/builder.d.ts 198 B
./packages/preset-umi/dist/features/ssr/builder/builder.js 1.68 kB
./packages/preset-umi/dist/features/ssr/builder/css-loader.d.ts 224 B
./packages/preset-umi/dist/features/ssr/builder/css-loader.js 1.12 kB
./packages/preset-umi/dist/features/ssr/builder/less-loader.d.ts 275 B
./packages/preset-umi/dist/features/ssr/builder/less-loader.js 1.89 kB
./packages/preset-umi/dist/features/ssr/builder/svg-loader.d.ts 143 B
./packages/preset-umi/dist/features/ssr/builder/svg-loader.js 642 B
./packages/preset-umi/dist/features/ssr/ssr.d.ts 110 B
./packages/preset-umi/dist/features/ssr/webpack/webpack.d.ts 117 B
./packages/preset-umi/dist/features/ssr/webpack/webpack.js 1.4 kB
./packages/preset-umi/dist/features/swc/swc.d.ts 108 B
./packages/preset-umi/dist/features/swc/swc.js 688 B
./packages/preset-umi/dist/features/terminal/terminal.d.ts 108 B
./packages/preset-umi/dist/features/terminal/terminal.js 1.29 kB
./packages/preset-umi/dist/features/test/test.d.ts 108 B
./packages/preset-umi/dist/features/test/test.js 1.39 kB
./packages/preset-umi/dist/features/tmpFiles/configTypes.d.ts 108 B
./packages/preset-umi/dist/features/tmpFiles/configTypes.js 1.51 kB
./packages/preset-umi/dist/features/tmpFiles/getModuleExports.d.ts 108 B
./packages/preset-umi/dist/features/tmpFiles/getModuleExports.js 727 B
./packages/preset-umi/dist/features/tmpFiles/importsToStr.d.ts 102 B
./packages/preset-umi/dist/features/tmpFiles/importsToStr.js 626 B
./packages/preset-umi/dist/features/tmpFiles/routes.d.ts 282 B
./packages/preset-umi/dist/features/tmpFiles/routes.js 3.01 kB
./packages/preset-umi/dist/features/tmpFiles/tmpFiles.d.ts 108 B
./packages/preset-umi/dist/features/transform/babelPlugin.d.ts 202 B
./packages/preset-umi/dist/features/transform/babelPlugin.js 1.52 kB
./packages/preset-umi/dist/features/transform/CodeFrameError.d.ts 172 B
./packages/preset-umi/dist/features/transform/CodeFrameError.js 509 B
./packages/preset-umi/dist/features/transform/transform.d.ts 108 B
./packages/preset-umi/dist/features/transform/transform.js 1.15 kB
./packages/preset-umi/dist/features/ui/ui.d.ts 108 B
./packages/preset-umi/dist/features/ui/ui.js 9.89 kB
./packages/preset-umi/dist/features/vite/vite.d.ts 110 B
./packages/preset-umi/dist/features/vite/vite.js 1.02 kB
./packages/preset-umi/dist/features/webpack/webpack.d.ts 108 B
./packages/preset-umi/dist/features/webpack/webpack.js 1.12 kB
./packages/preset-umi/dist/index.d.ts 179 B
./packages/preset-umi/dist/index.js 1.48 kB
./packages/preset-umi/dist/libs/folderCache/AutoUpdateFolderCache.d.ts 371 B
./packages/preset-umi/dist/libs/folderCache/AutoUpdateFolderCache.js 1.32 kB
./packages/preset-umi/dist/libs/folderCache/AutoUpdateSourceCodeCache.d.ts 404 B
./packages/preset-umi/dist/libs/folderCache/AutoUpdateSourceCodeCache.js 1.93 kB
./packages/preset-umi/dist/libs/folderCache/constant.d.ts 225 B
./packages/preset-umi/dist/libs/folderCache/constant.js 765 B
./packages/preset-umi/dist/libs/folderCache/FolderWatch.d.ts 257 B
./packages/preset-umi/dist/libs/folderCache/FolderWatch.js 1.01 kB
./packages/preset-umi/dist/libs/folderCache/LazySourceCodeCache.d.ts 499 B
./packages/preset-umi/dist/libs/folderCache/LazySourceCodeCache.js 2.41 kB
./packages/preset-umi/dist/libs/folderCache/types.d.ts 166 B
./packages/preset-umi/dist/libs/folderCache/types.js 389 B
./packages/preset-umi/dist/libs/scan.d.ts 347 B
./packages/preset-umi/dist/libs/scan.js 2.26 kB
./packages/preset-umi/dist/registerMethods.d.ts 104 B
./packages/preset-umi/dist/registerMethods.js 1.96 kB
./packages/preset-umi/dist/types.js 531 B
./packages/preset-umi/dist/utils/fileSizeReporter.d.ts 255 B
./packages/preset-umi/dist/utils/fileSizeReporter.js 2.23 kB
./packages/preset-umi/dist/utils/isTypeScriptFile.d.ts 84 B
./packages/preset-umi/dist/utils/isTypeScriptFile.js 532 B
./packages/preset-umi/dist/utils/lazyImportFromCurrentPkg.d.ts 139 B
./packages/preset-umi/dist/utils/lazyImportFromCurrentPkg.js 596 B
./packages/preset-umi/dist/utils/projectFileList.d.ts 112 B
./packages/preset-umi/dist/utils/projectFileList.js 672 B
./packages/preset-umi/dist/utils/routeExportExtractor.d.ts 222 B
./packages/preset-umi/dist/utils/routeExportExtractor.js 1.72 kB
./packages/preset-umi/dist/utils/transformIEAR.d.ts 393 B
./packages/preset-umi/dist/utils/transformIEAR.js 1.24 kB
./packages/preset-vue/compiled/@vitejs/plugin-vue/index.js 13.7 kB
./packages/preset-vue/dist/constants.d.ts 64 B
./packages/preset-vue/dist/constants.js 539 B
./packages/preset-vue/dist/features/config/assetRules.d.ts 189 B
./packages/preset-vue/dist/features/config/assetRules.js 687 B
./packages/preset-vue/dist/features/config/config.d.ts 145 B
./packages/preset-vue/dist/features/config/config.js 1.12 kB
./packages/preset-vue/dist/features/default.d.ts 105 B
./packages/preset-vue/dist/features/default.js 1.34 kB
./packages/preset-vue/dist/features/tmpFiles/tmpFiles.d.ts 105 B
./packages/preset-vue/dist/features/tmpFiles/tmpFiles.js 956 B
./packages/preset-vue/dist/features/vite/vite.d.ts 105 B
./packages/preset-vue/dist/features/vite/vite.js 908 B
./packages/preset-vue/dist/features/vueBabelLoaderCustomize.d.ts 177 B
./packages/preset-vue/dist/features/vueBabelLoaderCustomize.js 643 B
./packages/preset-vue/dist/features/webpack.d.ts 105 B
./packages/preset-vue/dist/features/webpack.js 635 B
./packages/preset-vue/dist/index.d.ts 123 B
./packages/preset-vue/dist/index.js 823 B
./packages/preset-vue/dist/utils/resolveProjectDep.d.ts 135 B
./packages/preset-vue/dist/utils/resolveProjectDep.js 1 kB
./packages/renderer-react/dist/dataFetcher.d.ts 129 B
./packages/renderer-react/dist/dataFetcher.js 561 B
./packages/renderer-react/dist/link.d.ts 200 B
./packages/renderer-react/dist/link.js 500 B
./packages/renderer-react/dist/routeContext.d.ts 166 B
./packages/renderer-react/dist/routeContext.js 144 B
./packages/renderer-react/dist/routes.d.ts 212 B
./packages/renderer-react/dist/routes.js 1.3 kB
./packages/renderer-react/dist/types.js 30 B
./packages/renderer-react/dist/useFetcher.d.ts 94 B
./packages/renderer-react/dist/useFetcher.js 204 B
./packages/renderer-react/dist/withRouter.d.ts 320 B
./packages/renderer-react/dist/withRouter.js 400 B
./packages/renderer-vue/dist/browser.d.ts 236 B
./packages/renderer-vue/dist/browser.js 725 B
./packages/renderer-vue/dist/index.d.ts 230 B
./packages/renderer-vue/dist/index.js 187 B
./packages/renderer-vue/dist/routes.d.ts 178 B
./packages/renderer-vue/dist/routes.js 607 B
./packages/renderer-vue/dist/types.d.ts 139 B
./packages/renderer-vue/dist/types.js 30 B
./packages/server/dist/index.d.ts 75 B
./packages/server/dist/index.js 572 B
./packages/server/dist/routes.d.ts 222 B
./packages/server/dist/routes.js 699 B
./packages/server/dist/scripts.d.ts 151 B
./packages/server/dist/scripts.js 1.01 kB
./packages/server/dist/server.d.ts 381 B
./packages/server/dist/server.js 2.09 kB
./packages/server/dist/styles.d.ts 154 B
./packages/server/dist/styles.js 1.02 kB
./packages/server/dist/types.js 374 B
./packages/testing/dist/index.d.ts 442 B
./packages/testing/dist/index.js 1.39 kB
./packages/testing/dist/resolver.js 242 B
./packages/testing/dist/transformers/esbuild/index.d.ts 150 B
./packages/testing/dist/transformers/esbuild/index.js 1.57 kB
./packages/testing/dist/transformers/esbuild/options.d.ts 110 B
./packages/testing/dist/transformers/esbuild/options.js 556 B
./packages/testing/dist/transformers/esbuild/requireHook.d.ts 65 B
./packages/testing/dist/transformers/esbuild/requireHook.js 947 B
./packages/testing/dist/transformers/esbuild/transformer.d.ts 161 B
./packages/testing/dist/transformers/esbuild/transformer.js 676 B
./packages/testing/dist/transformers/esbuild/type.d.ts 111 B
./packages/testing/dist/transformers/esbuild/type.js 389 B
./packages/umi/dist/cli/cli.d.ts 118 B
./packages/umi/dist/cli/cli.js 1.04 kB
./packages/umi/dist/cli/dev.d.ts 57 B
./packages/umi/dist/cli/dev.js 858 B
./packages/umi/dist/cli/fork.d.ts 155 B
./packages/umi/dist/cli/fork.js 1.09 kB
./packages/umi/dist/cli/forkedDev.d.ts 31 B
./packages/umi/dist/cli/forkedDev.js 473 B
./packages/umi/dist/constants.d.ts 172 B
./packages/umi/dist/constants.js 684 B
./packages/umi/dist/defineConfig.d.ts 276 B
./packages/umi/dist/defineConfig.js 498 B
./packages/umi/dist/defineMock.d.ts 213 B
./packages/umi/dist/defineMock.js 497 B
./packages/umi/dist/index.d.ts 187 B
./packages/umi/dist/index.js 663 B
./packages/umi/dist/pluginUtils.d.ts 162 B
./packages/umi/dist/pluginUtils.js 897 B
./packages/umi/dist/service/cwd.d.ts 62 B
./packages/umi/dist/service/cwd.js 591 B
./packages/umi/dist/service/requireHook.d.ts 31 B
./packages/umi/dist/service/requireHook.js 305 B
./packages/umi/dist/service/service.d.ts 163 B
./packages/umi/dist/service/service.js 1.21 kB
./packages/umi/dist/test-setup.d.ts 31 B
./packages/umi/dist/test-setup.js 110 B
./packages/umi/dist/test.d.ts 1.19 kB
./packages/umi/dist/test.js 1.04 kB
./packages/utils/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts 739 B
./packages/utils/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts 199 B
./packages/utils/compiled/@ampproject/remapping/@jridgewell/gen-mapping/dist/types/types.d.ts 304 B
./packages/utils/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts 240 B
./packages/utils/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts 1.1 kB
./packages/utils/compiled/@ampproject/remapping/@jridgewell/trace-mapping/dist/types/types.d.ts 712 B
./packages/utils/compiled/@ampproject/remapping/dist/types/remapping.d.ts 499 B
./packages/utils/compiled/@ampproject/remapping/dist/types/source-map.d.ts 317 B
./packages/utils/compiled/@ampproject/remapping/dist/types/types.d.ts 275 B
./packages/utils/compiled/@ampproject/remapping/index.js 6.48 kB
./packages/utils/compiled/@clack/prompts/dist/index.d.ts 466 B
./packages/utils/compiled/@clack/prompts/index.js 4.74 kB
./packages/utils/compiled/@hapi/joi/index.d.ts 17 kB
./packages/utils/compiled/@hapi/joi/index.js 52.6 kB
./packages/utils/compiled/address/index.js 1.19 kB
./packages/utils/compiled/address/lib/address.d.ts 285 B
./packages/utils/compiled/axios/index.d.ts 1.71 kB
./packages/utils/compiled/axios/index.js 10.9 kB
./packages/utils/compiled/chalk/index.d.ts 2.25 kB
./packages/utils/compiled/chalk/index.js 3.39 kB
./packages/utils/compiled/chalk/source/index.d.ts 1.72 kB
./packages/utils/compiled/chalk/source/vendor/supports-color/index.d.ts 463 B
./packages/utils/compiled/cheerio/domelementtype/lib/index.d.ts 502 B
./packages/utils/compiled/cheerio/domhandler/lib/index.d.ts 974 B
./packages/utils/compiled/cheerio/domhandler/lib/node.d.ts 1.33 kB
./packages/utils/compiled/cheerio/htmlparser2/lib/index.d.ts 663 B
./packages/utils/compiled/cheerio/htmlparser2/lib/Parser.d.ts 1.47 kB
./packages/utils/compiled/cheerio/htmlparser2/lib/Tokenizer.d.ts 1.74 kB
./packages/utils/compiled/cheerio/index.js 95.5 kB
./packages/utils/compiled/cheerio/lib/api/attributes.d.ts 1.95 kB
./packages/utils/compiled/cheerio/lib/api/css.d.ts 487 B
./packages/utils/compiled/cheerio/lib/api/forms.d.ts 421 B
./packages/utils/compiled/cheerio/lib/api/manipulation.d.ts 2.59 kB
./packages/utils/compiled/cheerio/lib/api/traversing.d.ts 3.66 kB
./packages/utils/compiled/cheerio/lib/cheerio.d.ts 801 B
./packages/utils/compiled/cheerio/lib/index.d.ts 772 B
./packages/utils/compiled/cheerio/lib/load.d.ts 1.15 kB
./packages/utils/compiled/cheerio/lib/options.d.ts 521 B
./packages/utils/compiled/cheerio/lib/static.d.ts 1.07 kB
./packages/utils/compiled/cheerio/lib/types.d.ts 558 B
./packages/utils/compiled/color/color-convert/conversions.d.ts 762 B
./packages/utils/compiled/color/color-convert/index.d.ts 568 B
./packages/utils/compiled/color/color-convert/route.d.ts 1.33 kB
./packages/utils/compiled/color/color-name/index.d.ts 927 B
./packages/utils/compiled/color/index.d.ts 1.04 kB
./packages/utils/compiled/color/index.js 8.48 kB
./packages/utils/compiled/cross-spawn/index.d.ts 467 B
./packages/utils/compiled/cross-spawn/index.js 2.97 kB
./packages/utils/compiled/debug/index.d.ts 619 B
./packages/utils/compiled/debug/index.js 4.53 kB
./packages/utils/compiled/debug/ms/index.d.ts 310 B
./packages/utils/compiled/deepmerge/index.d.ts 302 B
./packages/utils/compiled/deepmerge/index.js 967 B
./packages/utils/compiled/execa/index.d.ts 5.01 kB
./packages/utils/compiled/execa/index.js 7.57 kB
./packages/utils/compiled/fastest-levenshtein/index.js 788 B
./packages/utils/compiled/fastest-levenshtein/mod.d.ts 127 B
./packages/utils/compiled/filesize/filesize.d.ts 1.28 kB
./packages/utils/compiled/filesize/index.js 1.46 kB
./packages/utils/compiled/filesize/types/filesize.d.ts 317 B
./packages/utils/compiled/fs-extra/index.d.ts 4.66 kB
./packages/utils/compiled/fs-extra/index.js 9.71 kB
./packages/utils/compiled/fs-extra/jsonfile/index.d.ts 740 B
./packages/utils/compiled/glob/index.d.ts 893 B
./packages/utils/compiled/glob/index.js 11.2 kB
./packages/utils/compiled/glob/minimatch/index.d.ts 1.56 kB
./packages/utils/compiled/gzip-size/index.d.ts 818 B
./packages/utils/compiled/gzip-size/index.js 1.18 kB
./packages/utils/compiled/import-lazy/index.d.ts 387 B
./packages/utils/compiled/import-lazy/index.js 348 B
./packages/utils/compiled/lodash/common/array.d.ts 7.1 kB
./packages/utils/compiled/lodash/common/collection.d.ts 6.26 kB
./packages/utils/compiled/lodash/common/common.d.ts 4.32 kB
./packages/utils/compiled/lodash/common/date.d.ts 269 B
./packages/utils/compiled/lodash/common/function.d.ts 6.45 kB
./packages/utils/compiled/lodash/common/lang.d.ts 5.31 kB
./packages/utils/compiled/lodash/common/math.d.ts 1.47 kB
./packages/utils/compiled/lodash/common/number.d.ts 818 B
./packages/utils/compiled/lodash/common/object.d.ts 8.81 kB
./packages/utils/compiled/lodash/common/seq.d.ts 953 B
./packages/utils/compiled/lodash/common/string.d.ts 3.26 kB
./packages/utils/compiled/lodash/common/util.d.ts 5.29 kB
./packages/utils/compiled/lodash/index.d.ts 574 B
./packages/utils/compiled/lodash/index.js 28.8 kB
./packages/utils/compiled/magic-string/index.d.ts 2.36 kB
./packages/utils/compiled/magic-string/index.js 6.78 kB
./packages/utils/compiled/mustache/index.d.ts 2.86 kB
./packages/utils/compiled/mustache/index.js 3.06 kB
./packages/utils/compiled/pirates/index.d.ts 621 B
./packages/utils/compiled/pirates/index.js 1.14 kB
./packages/utils/compiled/pkg-up/index.d.ts 425 B
./packages/utils/compiled/pkg-up/index.js 1.73 kB
./packages/utils/compiled/portfinder/index.js 11.5 kB
./packages/utils/compiled/portfinder/lib/portfinder.d.ts 577 B
./packages/utils/compiled/prettier/index.d.ts 6.9 kB
./packages/utils/compiled/prettier/index.js 2.16 MB
./packages/utils/compiled/prompts/index.d.ts 1.28 kB
./packages/utils/compiled/prompts/index.js 20.7 kB
./packages/utils/compiled/resolve/index.d.ts 1.76 kB
./packages/utils/compiled/resolve/index.js 5.41 kB
./packages/utils/compiled/rimraf/glob/index.d.ts 882 B
./packages/utils/compiled/rimraf/index.d.ts 725 B
./packages/utils/compiled/rimraf/index.js 12.3 kB
./packages/utils/compiled/rimraf/minimatch/index.d.ts 1.56 kB
./packages/utils/compiled/semver/classes/comparator.d.ts 256 B
./packages/utils/compiled/semver/classes/range.d.ts 292 B
./packages/utils/compiled/semver/classes/semver.d.ts 456 B
./packages/utils/compiled/semver/functions/clean.d.ts 214 B
./packages/utils/compiled/semver/functions/cmp.d.ts 293 B
./packages/utils/compiled/semver/functions/coerce.d.ts 196 B
./packages/utils/compiled/semver/functions/compare-build.d.ts 329 B
./packages/utils/compiled/semver/functions/compare-loose.d.ts 137 B
./packages/utils/compiled/semver/functions/compare.d.ts 317 B
./packages/utils/compiled/semver/functions/diff.d.ts 233 B
./packages/utils/compiled/semver/functions/eq.d.ts 246 B
./packages/utils/compiled/semver/functions/gt.d.ts 171 B
./packages/utils/compiled/semver/functions/gte.d.ts 173 B
./packages/utils/compiled/semver/functions/inc.d.ts 271 B
./packages/utils/compiled/semver/functions/lt.d.ts 171 B
./packages/utils/compiled/semver/functions/lte.d.ts 172 B
./packages/utils/compiled/semver/functions/major.d.ts 182 B
./packages/utils/compiled/semver/functions/minor.d.ts 181 B
./packages/utils/compiled/semver/functions/neq.d.ts 186 B
./packages/utils/compiled/semver/functions/parse.d.ts 221 B
./packages/utils/compiled/semver/functions/patch.d.ts 182 B
./packages/utils/compiled/semver/functions/prerelease.d.ts 230 B
./packages/utils/compiled/semver/functions/rcompare.d.ts 234 B
./packages/utils/compiled/semver/functions/rsort.d.ts 222 B
./packages/utils/compiled/semver/functions/satisfies.d.ts 212 B
./packages/utils/compiled/semver/functions/sort.d.ts 221 B
./packages/utils/compiled/semver/functions/valid.d.ts 215 B
./packages/utils/compiled/semver/index.d.ts 1.3 kB
./packages/utils/compiled/semver/index.js 10 kB
./packages/utils/compiled/semver/internals/identifiers.d.ts 218 B
./packages/utils/compiled/semver/ranges/gtr.d.ts 228 B
./packages/utils/compiled/semver/ranges/intersects.d.ts 206 B
./packages/utils/compiled/semver/ranges/ltr.d.ts 227 B
./packages/utils/compiled/semver/ranges/max-satisfying.d.ts 272 B
./packages/utils/compiled/semver/ranges/min-satisfying.d.ts 270 B
./packages/utils/compiled/semver/ranges/min-version.d.ts 221 B
./packages/utils/compiled/semver/ranges/outside.d.ts 301 B
./packages/utils/compiled/semver/ranges/simplify.d.ts 401 B
./packages/utils/compiled/semver/ranges/subset.d.ts 201 B
./packages/utils/compiled/semver/ranges/to-comparators.d.ts 207 B
./packages/utils/compiled/semver/ranges/valid.d.ts 207 B
./packages/utils/compiled/strip-ansi/index.d.ts 236 B
./packages/utils/compiled/strip-ansi/index.js 571 B
./packages/utils/compiled/tar/index.d.ts 5.96 kB
./packages/utils/compiled/tar/index.js 26.6 kB
./packages/utils/compiled/tar/minipass/index.d.ts 1.49 kB
./packages/utils/compiled/tsconfig-paths/index.js 12.8 kB
./packages/utils/compiled/tsconfig-paths/lib/index.d.ts 205 B
./packages/utils/compiled/yargs-parser/index.d.ts 1.89 kB
./packages/utils/compiled/yargs-parser/index.js 5.95 kB
./packages/utils/compiled/zod/index.d.ts 64 B
./packages/utils/compiled/zod/index.js 13.7 kB
./packages/utils/compiled/zod/lib/__tests__/Mocker.d.ts 200 B
./packages/utils/compiled/zod/lib/benchmarks/discriminatedUnion.d.ts 109 B
./packages/utils/compiled/zod/lib/benchmarks/index.d.ts 31 B
./packages/utils/compiled/zod/lib/benchmarks/object.d.ts 109 B
./packages/utils/compiled/zod/lib/benchmarks/primitives.d.ts 109 B
./packages/utils/compiled/zod/lib/benchmarks/realworld.d.ts 109 B
./packages/utils/compiled/zod/lib/benchmarks/string.d.ts 109 B
./packages/utils/compiled/zod/lib/benchmarks/union.d.ts 109 B
./packages/utils/compiled/zod/lib/errors.d.ts 141 B
./packages/utils/compiled/zod/lib/external.d.ts 97 B
./packages/utils/compiled/zod/lib/helpers/enumUtil.d.ts 282 B
./packages/utils/compiled/zod/lib/helpers/errorUtil.d.ts 152 B
./packages/utils/compiled/zod/lib/helpers/parseUtil.d.ts 758 B
./packages/utils/compiled/zod/lib/helpers/partialUtil.d.ts 337 B
./packages/utils/compiled/zod/lib/helpers/typeAliases.d.ts 124 B
./packages/utils/compiled/zod/lib/helpers/util.d.ts 757 B
./packages/utils/compiled/zod/lib/index.d.ts 83 B
./packages/utils/compiled/zod/lib/locales/en.d.ts 93 B
./packages/utils/compiled/zod/lib/types.d.ts 8.43 kB
./packages/utils/compiled/zod/lib/ZodError.d.ts 1.5 kB
./packages/utils/dist/aliasUtils/getAliasValue.d.ts 122 B
./packages/utils/dist/aliasUtils/getAliasValue.js 1.04 kB
./packages/utils/dist/aliasUtils/index.d.ts 81 B
./packages/utils/dist/aliasUtils/index.js 544 B
./packages/utils/dist/aliasUtils/parseCircleAlias.d.ts 124 B
./packages/utils/dist/aliasUtils/parseCircleAlias.js 932 B
./packages/utils/dist/BaseGenerator/BaseGenerator.d.ts 296 B
./packages/utils/dist/BaseGenerator/BaseGenerator.js 1.09 kB
./packages/utils/dist/BaseGenerator/generateFile.d.ts 216 B
./packages/utils/dist/BaseGenerator/generateFile.js 802 B
./packages/utils/dist/Generator/Generator.d.ts 332 B
./packages/utils/dist/Generator/Generator.js 1.39 kB
./packages/utils/dist/getCorejsVersion.d.ts 85 B
./packages/utils/dist/getCorejsVersion.js 656 B
./packages/utils/dist/getDevBanner.d.ts 136 B
./packages/utils/dist/getDevBanner.js 1.36 kB
./packages/utils/dist/getFileGitIno.d.ts 406 B
./packages/utils/dist/getFileGitIno.js 1.46 kB
./packages/utils/dist/getGitInfo.d.ts 126 B
./packages/utils/dist/getGitInfo.js 855 B
./packages/utils/dist/importLazy.d.ts 222 B
./packages/utils/dist/importLazy.js 811 B
./packages/utils/dist/index.d.ts 783 B
./packages/utils/dist/index.js 1.9 kB
./packages/utils/dist/installDeps.d.ts 151 B
./packages/utils/dist/installDeps.js 1.15 kB
./packages/utils/dist/isJavaScriptFile.d.ts 82 B
./packages/utils/dist/isJavaScriptFile.js 545 B
./packages/utils/dist/isLocalDev.d.ts 113 B
./packages/utils/dist/isLocalDev.js 603 B
./packages/utils/dist/isMonorepo.d.ts 106 B
./packages/utils/dist/isMonorepo.js 705 B
./packages/utils/dist/isStyleFile.d.ts 153 B
./packages/utils/dist/isStyleFile.js 615 B
./packages/utils/dist/logger.d.ts 223 B
./packages/utils/dist/logger.js 2.03 kB
./packages/utils/dist/node.d.ts 139 B
./packages/utils/dist/node.js 806 B
./packages/utils/dist/npmClient.d.ts 225 B
./packages/utils/dist/npmClient.js 1.31 kB
./packages/utils/dist/printHelp.d.ts 79 B
./packages/utils/dist/printHelp.js 1.14 kB
./packages/utils/dist/randomColor/randomColor.d.ts 136 B
./packages/utils/dist/randomColor/randomColor.js 876 B
./packages/utils/dist/readDirFiles.d.ts 145 B
./packages/utils/dist/readDirFiles.js 811 B
./packages/utils/dist/register.d.ts 136 B
./packages/utils/dist/register.js 1.04 kB
./packages/utils/dist/setNoDeprecation.d.ts 68 B
./packages/utils/dist/setNoDeprecation.js 506 B
./packages/utils/dist/tryPaths.d.ts 82 B
./packages/utils/dist/tryPaths.js 542 B
./packages/utils/dist/updatePackageJSON.d.ts 126 B
./packages/utils/dist/updatePackageJSON.js 905 B
./packages/utils/dist/winPath.d.ts 68 B
./packages/utils/dist/winPath.js 552 B
./packages/utils/dist/zod/isZodSchema.d.ts 127 B
./packages/utils/dist/zod/isZodSchema.js 513 B
./packages/zod2ts/dist/index.d.ts 53 B
./packages/zod2ts/dist/index.js 503 B
./packages/zod2ts/dist/types.d.ts 185 B
./packages/zod2ts/dist/types.js 374 B
./packages/zod2ts/dist/zod.d.ts 104 B
./packages/zod2ts/dist/zod.js 1.66 kB

compressed-size-action

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 15

Outside diff range and nitpick comments (14)
packages/bundler-webpack/src/config/definePlugin.test.ts (1)

Line range hint 52-52: 避免使用 delete 操作符

静态分析工具指出使用 delete 操作符可能会影响性能。建议用 undefined 赋值来替代。

- delete process.env.SOCKET_SERVER;
+ process.env.SOCKET_SERVER = undefined;

Also applies to: 64-64

packages/preset-umi/src/commands/dev/createRouteMiddleware.ts (1)

Line range hint 10-10: 避免使用 'Function' 作为类型

根据静态分析工具的提示,不建议使用 'Function' 作为类型,因为它可能导致错误。建议您为 onStats 变量定义一个更具体的函数类型,例如明确参数和返回值的类型。

- let onStats: Function | null = null;
+ let onStats: ((stats: Stats) => void) | null = null;
packages/preset-umi/src/features/devTool/devTool.ts (1)

Line range hint 78-80: 移除不必要的 else 子句

在此代码段中,由于之前的分支已经提前结束,所以这个 else 子句是多余的。建议移除以简化代码结构。

-            if (isMFSUDone && isBundleDone) {
-              return res.end();
-            }
-
-            return res.status(400).end();
+            if (!isMFSUDone || !isBundleDone) {
+              return res.status(400).end();
+            }
+            return res.end();
packages/mfsu/src/mfsu/strategyStaticAnalyze.ts (1)

Line range hint 14-20: 使用 dangerouslySetInnerHTML

这里使用了 dangerouslySetInnerHTML 来设置 HTML 内容,这可能会引起 XSS 攻击的风险。建议仅在确保内容安全的情况下使用,或者寻找其他方式来实现。

- <noscript dangerouslySetInnerHTML={{ __html: `<b>Enable JavaScript to run this app.</b>` }} />
+ <noscript><b>Enable JavaScript to run this app.</b></noscript>
packages/preset-umi/src/types.ts (1)

Line range hint 148-152: 避免使用 {} 作为类型

在 TypeScript 中,使用 {} 作为类型可能会导致意外的行为,因为它表示任何非 null/undefined 的值。建议明确指定对象的结构。

- modifyHTMLFavicon: IModify<string[], {}>;
+ modifyHTMLFavicon: IModify<string[], Record<string, unknown>>;
packages/preset-umi/src/commands/build.ts (1)

Line range hint 72-72: 优化类型定义

在这三个地方使用了 Object 类型,这不是一个好的实践,因为它代表了任何非空值。建议定义更具体的类型来代替 Object

- async (memo: any, args: Object) => {
+ async (memo: any, args: Record<string, unknown>) => {

Also applies to: 80-80, 87-87

packages/renderer-react/src/browser.tsx (1)

Line range hint 282-337: 客户端和服务器加载器逻辑

代码中处理了客户端和服务器加载器的逻辑。这部分逻辑较为复杂,建议添加更多的注释和文档,以帮助其他开发者理解这些逻辑的工作方式。

packages/plugins/src/qiankun/slave.ts (1)

Line range hint 208-209: 移除不必要的 Boolean 调用。

此处的 Boolean 调用是多余的,直接使用条件表达式即可进行布尔值转换。

-    shouldNotAddLibraryChunkName = api.env === 'production' || !Boolean(api.config.mfsu),
+    shouldNotAddLibraryChunkName = api.env === 'production' || !api.config.mfsu,
packages/preset-umi/src/commands/dev/dev.ts (1)

Line range hint 279-279: 避免使用 'Object' 作为类型

这里使用了 'Object' 作为类型,这种做法不够明确,可能会引起类型安全问题。建议具体定义对象的形状,以提高代码的可维护性和类型安全。

- const chainWebpack = async (memo: any, args: Object) => {
+ const chainWebpack = async (memo: any, args: { [key: string]: any }) => {

Also applies to: 287-287, 294-294

packages/server/src/ssr.ts (3)

Line range hint 125-159: 不要在 Promise 执行函数中使用 async

这里在 Promise 的执行函数中使用了 async 关键字,这是不推荐的做法,因为它可能导致意外的错误处理和状态管理问题。建议改为使用显式的 Promise 链。

- await Promise.all(
+ Promise.all(
    matches
      .filter((id: string) => routes[id].hasServerLoader)
      .map(
        (id: string) =>
          new Promise<void>((resolve) => {
            executeLoader({
              routeKey: id,
              routesWithServerLoader,
              serverLoaderArgs,
            }).then(loaderData => {
              // 处理 loaderData 和 metadataLoaderData
              resolve();
            });
          }),
      ),
  );

Line range hint 216-273: 不要在 Promise 执行函数中使用 async

与之前的问题相同,这里也在 Promise 的执行函数中使用了 async 关键字。建议改为使用显式的 Promise 链来处理异步操作。

- return new Promise(async (resolve, reject) => {
+ return new Promise((resolve, reject) => {
    const jsx = await jsxGeneratorDeferrer(url);
    if (jsx) {
      const [JSXProvider, serverInsertedHTMLCallbacks] = createJSXProvider(
        opts.ServerInsertedHTMLContext.Provider,
      );
      // 处理 JSX 和 HTML
      resolve(html);
    } else {
      reject(new Error('No JSX returned'));
    }
  });

Line range hint 81-81: 使用 React 的标准方式传递 children

在这些行中,通过属性传递了 children,这不是 React 推荐的做法。建议使用 React.createElement 的参数来传通 children。

- React.createElement(React.Fragment, {
-   children: Array.from(serverInsertedHTMLCallbacks || []).map((callback) =>
-     callback(),
-   ),
- });
+ React.createElement(React.Fragment, null,
+   Array.from(serverInsertedHTMLCallbacks || []).map((callback) =>
+     callback(),
+   ),
+ );

Also applies to: 195-196, 259-260

packages/preset-umi/src/features/tmpFiles/tmpFiles.ts (2)

Line range hint 264-325: 检查 api.applyPlugins 方法的使用。

在此代码段中,多次调用 api.applyPlugins 方法,但未看到对返回值的错误处理。在异步编程中,处理可能的异常是很重要的。建议添加错误处理逻辑,以避免程序在运行时出现未被捕获的异常。


Line range hint 504-556: 优化 umi.server.ts 文件的生成逻辑。

在生成 umi.server.ts 文件的代码中,有大量的 JSON 字符串操作和正则表达式的使用。这可能会影响性能,特别是在处理大量路由时。可以考虑使用更高效的数据处理方式,例如直接操作对象而不是转换为字符串后再处理。

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3a92682 and 7d0f2f8.

Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing (50)
  • examples/max/package.json (1 hunks)
  • examples/mf-host/package.json (1 hunks)
  • examples/mf-remote/package.json (1 hunks)
  • examples/qiankun-master/package.json (1 hunks)
  • examples/qiankun-slave-app2/package.json (1 hunks)
  • examples/qiankun-slave/package.json (1 hunks)
  • examples/ssr-demo/.umirc.ts (1 hunks)
  • examples/ssr-demo/mako.config.json (1 hunks)
  • examples/ssr-demo/package.json (1 hunks)
  • examples/ssr-demo/src/layouts/index.tsx (1 hunks)
  • examples/ssr-demo/src/pages/index.tsx (3 hunks)
  • package.json (3 hunks)
  • packages/bundler-webpack/src/config/definePlugin.test.ts (2 hunks)
  • packages/bundler-webpack/src/config/definePlugin.ts (1 hunks)
  • packages/mfsu/src/mfsu/strategyStaticAnalyze.ts (1 hunks)
  • packages/plugins/libs/qiankun/master/masterRuntimePlugin.tsx (2 hunks)
  • packages/plugins/libs/qiankun/slave/slaveRuntimePlugin.ts (1 hunks)
  • packages/plugins/src/initial-state.ts (1 hunks)
  • packages/plugins/src/qiankun/master.ts (1 hunks)
  • packages/plugins/src/qiankun/slave.ts (2 hunks)
  • packages/plugins/src/utils/modelUtils.test.ts (3 hunks)
  • packages/preset-umi/package.json (1 hunks)
  • packages/preset-umi/src/commands/build.ts (5 hunks)
  • packages/preset-umi/src/commands/dev/createRouteMiddleware.ts (2 hunks)
  • packages/preset-umi/src/commands/dev/dev.ts (2 hunks)
  • packages/preset-umi/src/features/appData/umiInfo.ts (1 hunks)
  • packages/preset-umi/src/features/devTool/devTool.ts (1 hunks)
  • packages/preset-umi/src/features/esbuildHelperChecker/esbuildHelperChecker.ts (1 hunks)
  • packages/preset-umi/src/features/exportStatic/exportStatic.ts (2 hunks)
  • packages/preset-umi/src/features/mako/mako.ts (3 hunks)
  • packages/preset-umi/src/features/okam/okam.ts (1 hunks)
  • packages/preset-umi/src/features/ssr/mako/mako.ts (1 hunks)
  • packages/preset-umi/src/features/ssr/ssr.ts (6 hunks)
  • packages/preset-umi/src/features/ssr/utils.ts (2 hunks)
  • packages/preset-umi/src/features/tmpFiles/tmpFiles.ts (8 hunks)
  • packages/preset-umi/src/types.ts (1 hunks)
  • packages/preset-umi/src/utils/platform.ts (1 hunks)
  • packages/preset-umi/templates/server.tpl (3 hunks)
  • packages/preset-umi/templates/umi.tpl (2 hunks)
  • packages/renderer-react/package.json (1 hunks)
  • packages/renderer-react/src/appContext.ts (3 hunks)
  • packages/renderer-react/src/browser.tsx (6 hunks)
  • packages/renderer-react/src/html.tsx (1 hunks)
  • packages/renderer-react/src/index.ts (1 hunks)
  • packages/renderer-react/src/server.tsx (2 hunks)
  • packages/renderer-react/src/types.ts (2 hunks)
  • packages/server/package.json (1 hunks)
  • packages/server/src/server.ts (1 hunks)
  • packages/server/src/ssr.ts (17 hunks)
  • packages/server/src/types.ts (2 hunks)
Files not reviewed due to errors (2)
  • packages/preset-umi/src/features/ssr/mako/mako.ts (no review received)
  • packages/preset-umi/templates/umi.tpl (no review received)
Files skipped from review due to trivial changes (12)
  • examples/max/package.json
  • examples/mf-host/package.json
  • examples/mf-remote/package.json
  • examples/qiankun-master/package.json
  • examples/qiankun-slave-app2/package.json
  • examples/qiankun-slave/package.json
  • examples/ssr-demo/mako.config.json
  • examples/ssr-demo/package.json
  • packages/preset-umi/package.json
  • packages/renderer-react/package.json
  • packages/server/package.json
  • packages/server/src/server.ts
Additional context used
Biome
examples/ssr-demo/src/layouts/index.tsx

[error] 13-13: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

packages/bundler-webpack/src/config/definePlugin.test.ts

[error] 52-52: Avoid the delete operator which can impact performance. (lint/performance/noDelete)

Unsafe fix: Use an undefined assignment instead.


[error] 64-64: Avoid the delete operator which can impact performance. (lint/performance/noDelete)

Unsafe fix: Use an undefined assignment instead.

packages/preset-umi/src/commands/dev/createRouteMiddleware.ts

[error] 10-10: Don't use 'Function' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the function shape. This type accepts any function-like value, which can be a common source of bugs.

examples/ssr-demo/src/pages/index.tsx

[error] 67-67: Unexpected empty object pattern. (lint/correctness/noEmptyPattern)


[error] 32-32: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

packages/preset-umi/src/features/devTool/devTool.ts

[error] 78-80: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.

packages/renderer-react/src/html.tsx

[error] 48-55: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 53-55: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)


[error] 91-93: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 126-126: Provide a lang attribute when using the html element. (lint/a11y/useHtmlLang)

Setting a lang attribute on HTML document elements configures the languageused by screen readers when no user default is specified.


[error] 16-16: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks


[error] 30-30: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks


[error] 99-99: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks


[error] 172-172: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

packages/preset-umi/src/types.ts

[error] 148-148: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".


[error] 149-149: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".


[error] 150-150: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".


[error] 151-151: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".


[error] 152-152: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".


[error] 177-177: Don't use '{}' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. '{}' means "any non-nullable value".

packages/plugins/src/qiankun/master.ts

[error] 48-48: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

packages/preset-umi/src/commands/build.ts

[error] 72-72: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.


[error] 80-80: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.


[error] 87-87: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

packages/preset-umi/src/features/ssr/ssr.ts

[error] 66-66: Avoid the delete operator which can impact performance. (lint/performance/noDelete)

Unsafe fix: Use an undefined assignment instead.

packages/plugins/src/qiankun/slave.ts

[error] 138-139: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.


[error] 208-209: Avoid redundant Boolean call (lint/complexity/noExtraBooleanCast)

It is not necessary to use Boolean call when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant Boolean call


[error] 210-210: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.

packages/preset-umi/src/commands/dev/dev.ts

[error] 279-279: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.


[error] 287-287: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.


[error] 294-294: Don't use 'Object' as a type. (lint/complexity/noBannedTypes)

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

packages/server/src/ssr.ts

[error] 125-159: Promise executor functions should not be async. (lint/suspicious/noAsyncPromiseExecutor)


[error] 216-273: Promise executor functions should not be async. (lint/suspicious/noAsyncPromiseExecutor)


[error] 362-363: The assignment should not be in an expression. (lint/suspicious/noAssignInExpressions)

The use of assignments in expressions is confusing.
Expressions are often considered as side-effect free.


[error] 81-81: Avoid passing children using a prop (lint/correctness/noChildrenProp)

The canonical way to pass children in React is to use additional arguments to React.createElement


[error] 195-196: Avoid passing children using a prop (lint/correctness/noChildrenProp)

The canonical way to pass children in React is to use additional arguments to React.createElement


[error] 259-260: Avoid passing children using a prop (lint/correctness/noChildrenProp)

The canonical way to pass children in React is to use additional arguments to React.createElement

Additional comments not posted (39)
packages/preset-umi/src/utils/platform.ts (1)

1-3: 代码检查通过。

这段代码用于检测操作系统是否为Windows,逻辑正确且简洁。

packages/preset-umi/src/features/appData/umiInfo.ts (1)

6-10: 代码检查通过。

此代码块正确地在客户端环境中添加了版本信息到全局对象 window.g_umi,并且有对 window 是否存在的检查,避免了服务器端执行时出错。

examples/ssr-demo/.umirc.ts (1)

4-20: 配置检查通过。

此配置文件为SSR和静态导出设置了多个选项,包括一个名为 mako 的新构建器。所有配置项都明确且合理设置。

packages/preset-umi/src/features/okam/okam.ts (1)

6-6: 代码检查通过。

此代码块基于 mako 配置启用功能,并添加了对Node.js版本的检查,确保 mako 只在支持的版本上运行。

packages/renderer-react/src/index.ts (1)

30-30: 新增导出项审查

代码中添加了新的导出项,用于支持 SSR 和数据处理的功能。请确保这些新的导出在项目中的其他部分也有正确的使用。

Verification successful

新增导出项审查

代码中添加的导出项 useLoaderDatauseRoutePropsuseSelectedRoutesuseServerLoaderData 已在项目的多个文件中使用,包括 appContext.tsroutes.tsx 以及多个示例文件。这表明这些导出项已按预期使用。

  • packages/renderer-react/src/appContext.ts
  • packages/renderer-react/src/routes.tsx
  • 多个示例文件 (examples/ssr-webpack, examples/ssr-demo-2, examples/ssr-demo, examples/ssr-todos, examples/route-props)
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# 检查新导出函数的使用情况
rg --type ts "useLoaderData|useRouteProps|useSelectedRoutes|useServerLoaderData"

Length of output: 3212

packages/plugins/libs/qiankun/slave/slaveRuntimePlugin.ts (1)

6-9: SSR 场景下的条件检查

render 函数中添加了对 window 对象是否定义的检查,这是在 SSR 场景下常见的做法,以确保代码不会在服务器环境中执行。建议添加注释说明此检查的必要性,以便未来的维护者理解。

packages/bundler-webpack/src/config/definePlugin.test.ts (1)

16-16: 测试用例中添加环境变量

在测试用例中正确地添加了 'process.env.SSR_MANIFEST' 环境变量,以支持新的 SSR 功能。此更改看起来符合预期。

Also applies to: 35-35

packages/renderer-react/src/server.tsx (1)

10-25: 服务器端渲染组件设置审查

getClientRootComponent 函数为服务器端渲染设置了 React 组件,应用了多个插件和配置。建议增加更详细的文档,说明函数的行为和各个插件之间的交互。

packages/preset-umi/src/commands/dev/createRouteMiddleware.ts (2)

17-18: 优化getStats函数的逻辑

您添加了一个新的条件检查,以处理当编译器不存在且api.config.mako为真的情况。这似乎是为了支持新的mako构建系统。请确认这种情况下返回的静态资源配置是否正确。


35-35: 确保getStats函数调用正确处理

您在这里使用了await getStats(opts.api)来获取编译统计信息,并将其用于构建资产映射。这是一个好的改进,因为它确保了资产映射总是基于最新的编译结果。请确保这个改动在所有相关的部署和测试环境中都能正常工作。

packages/server/src/types.ts (3)

1-22: 扩展了 IOpts 接口

您在 IOpts 接口中添加了多个新属性,如 mountElementId, esmScript, modifyHTML, 和 historyType。这些改动支持了更灵活的 SSR 配置。请确保这些新属性在文档和类型定义中都有清晰的描述。


25-25: 新增 IUserExtraRoute 类型

您定义了一个新的类型 IUserExtraRoute,它可以是一个字符串或一个包含 pathprerender 属性的对象。这似乎是为了支持更复杂的路由配置。请确保这个新类型在相关的文档中有详细的介绍和示例。


67-74: 扩展了 IhtmlPageOpts 接口

IhtmlPageOpts 接口中添加了新的属性,如 headScripts, links, styles, favicons, 和 scripts。这将允许用户在生成 HTML 页面时更灵活地配置资源。请确保所有新属性都经过充分测试,特别是在不同的 SSR 场景下。

packages/bundler-webpack/src/config/definePlugin.ts (1)

69-69: 添加 SSR_MANIFEST 环境变量

此修改用于支持服务器端渲染(SSR)的清单文件路径配置。确保此环境变量的使用符合预期,并在实际部署中进行测试。

packages/renderer-react/src/types.ts (1)

Line range hint 1-98: 代码类型定义检查

请确保所有接口和类型定义都清晰且一致,以便在项目中广泛使用。特别是对于全局的类型定义,如 WindowIRoute,确保它们的属性和方法都被适当地注释和文档化,以便于其他开发者理解和使用。

packages/preset-umi/templates/server.tpl (1)

26-26: SSR 配置模板更新

更新了 SSR manifest 的处理方式,以及对其他几个配置项的引入。请确保这些更改在实际部署中能正确工作,并且与整体配置兼容。

Also applies to: 54-54, 62-62, 64-64

packages/preset-umi/src/features/esbuildHelperChecker/esbuildHelperChecker.ts (1)

93-93: 审查代码逻辑和配置条件

在这段代码中,有多个条件判断是否执行 checkDir 函数。这些条件涉及配置和环境变量,确保在特定配置或环境下不执行冗余的检查。建议审查这些条件是否覆盖了所有预期的场景,以及是否有潜在的配置组合可能导致意外行为。

packages/renderer-react/src/appContext.ts (3)

52-52: 标记过时函数

此函数已被标记为过时,请确保文档中有指向新函数 useLoaderData 的引导,并检查是否所有旧的函数调用都已更新,以避免在未来的版本中出现问题。


101-101: 标记过时函数

与上文相同,此函数也被标记为过时。重复的标记说明了代码迁移的过程中可能存在的问题,建议彻底检查并清理所有相关的旧代码调用。


108-117: 合并数据逻辑

此函数用于合并来自服务端和客户端的数据。建议审查数据合并的逻辑是否可能导致数据冲突或不一致,特别是在并发环境下。

packages/plugins/src/initial-state.ts (1)

55-55: 条件渲染逻辑

此处的条件渲染逻辑用于在应用加载时显示加载组件,但仅在客户端环境下执行。建议检查此逻辑是否能正确处理所有预期的加载状态,以及是否有潜在的渲染时序问题或性能影响。

packages/plugins/src/utils/modelUtils.test.ts (1)

Line range hint 202-222: 测试代码的书写格式

这段测试代码用于检查 TypeScript 装饰器的处理。建议确保测试覆盖所有相关的用例,特别是边缘情况和异常处理。此外,检查是否所有的测试都遵循了一致的格式和命名约定。

packages/plugins/libs/qiankun/master/masterRuntimePlugin.tsx (2)

80-83: 处理 SSR 场景

这段代码在 SSR 场景下直接返回了旧的渲染函数,这是为了避免在服务器端执行不必要的客户端逻辑。建议确保这种处理方式与整体的服务器端渲染策略一致,并检查是否有潜在的服务器端资源泄露或性能问题。


145-148: SSR 场景下的路由处理

在 SSR 场景下,此函数直接返回,避免执行客户端特定的路由处理逻辑。建议检查这种快速返回的做法是否可能导致路由配置中的某些信息在服务器端渲染时被忽略,从而影响渲染结果的正确性。

packages/mfsu/src/mfsu/strategyStaticAnalyze.ts (3)

1-1: 优化导入语句的顺序

建议将导入语句按照一定的顺序(例如:库、类型、本地文件)进行排序,以增加代码的可读性。

- import { logger, printHelp, winPath } from '@umijs/utils';
+ import { printHelp, logger, winPath } from '@umijs/utils';

Line range hint 6-12: 函数 isUrl 的实现

这个函数用于检测一个字符串是否为 URL。实现逻辑是正确的,但可以考虑添加更多注释来解释每个条件的具体意义,这样可以帮助其他开发者更好地理解代码。


Line range hint 22-38: 全局数据脚本组件的实现

这个组件负责将一些全局数据嵌入到 HTML 中。代码实现上没有问题,但同样使用了 dangerouslySetInnerHTML,需要确保嵌入的数据是安全的。

package.json (2)

141-142: 使用 overrides 来解决依赖问题

这里使用 overrides 来固定某些依赖库的版本,这是处理依赖冲突的一种有效方式。建议在文档中添加对这种做法的解释,以帮助新成员理解。


104-105: 更新 reactreact-dom 的版本

这里将 reactreact-dom 的版本从 18.1.0 更新到 18.3.1。这是一个重要的更新,因为它可能包含性能改进和 bug 修复。建议检查整个项目以确保没有与新版本不兼容的地方。

packages/plugins/src/qiankun/master.ts (1)

214-226: 在 SSR 场景下处理 qiankun 依赖

这里的代码逻辑是在 SSR 场景下将 qiankun 作为外部依赖处理,避免将其打包进产品中。这是一个很好的实践,可以减少包的大小并提高加载速度。

packages/preset-umi/src/commands/build.ts (2)

110-115: 检查配置结构

代码中新增了 pluginsconfig 的配置项。请确保这些配置项的使用与项目其他部分保持一致,并且这些配置是必要的。

Verification successful

检查配置结构

根据检索结果,pluginsconfig 配置项在项目中被广泛使用。代码中的新增配置项与项目的其他部分保持一致,且这些配置项是必要的。

  • pluginsconfig 配置在多个文件中都有出现,确保了代码的一致性。
  • 没有发现明显的配置不一致或冗余配置。
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the usage of new configuration items.

# Test: Search for the usage of `plugins` and `config` in the project files. Expect: Consistent usage across the project.
rg --type ts "plugins|config"

Length of output: 197688


146-146: 使用环境变量

这里使用了环境变量 OKAM 来动态引入模块。建议验证这个环境变量在部署和开发环境中是否都已正确设置。

packages/preset-umi/src/features/exportStatic/exportStatic.ts (2)

Line range hint 21-23: 引入新的构建器

代码中引入了名为 makoBuiler 的新构建器。建议检查这个构建器的实现,确保它符合项目的构建需求和标准。


Line range hint 33-39: 配置架构检查

此处为 ssr 配置添加了新的可选项。请确保这些新配置项的文档和类型定义都已更新,以帮助开发者了解如何正确使用它们。

Verification successful

配置架构检查

已确认在文档和类型定义中更新了新的 SSR 配置项。以下文件中包含相关信息:

  • 文档更新:
    • docs/docs/docs/api/config.md 中提到 exportStaticssr 的配置。
  • 类型定义更新:
    • packages/preset-umi/src/types.ts 中有 ssr 的类型定义。
    • packages/preset-umi/src/features/ssr/ssr.ts 中有 serverBuildTargetbuilder 的定义。

这些更新确保了开发者能够了解如何正确使用新的 SSR 配置项。

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the documentation for new SSR configuration options.

# Test: Search for documentation comments related to new SSR configuration options. Expect: Documentation should be updated.
rg --type md "serverBuildTarget|builder"

Length of output: 780



Script:

#!/bin/bash
# Description: Verify the documentation and type definitions for new SSR configuration options.

# Test: Search for documentation comments related to new SSR configuration options. Expect: Documentation should be updated.
rg --type md "ssr|serverBuildTarget|builder"

# Test: Search for type definitions related to new SSR configuration options. Expect: Type definitions should be updated.
rg --type ts "ssr|serverBuildTarget|builder"

Length of output: 10095

packages/preset-umi/src/features/ssr/ssr.ts (1)

191-197: 构建器逻辑

这里根据不同的构建器进行不同的构建操作。建议增加对每种构建器的详细注释,说明它们各自的用途和差异,以便维护者更好地理解代码。

packages/renderer-react/src/browser.tsx (1)

386-412: React DOM 渲染逻辑

这里的代码负责处理 React DOM 的渲染。建议检查 hydrateRootrender 方法的使用,确保它们在不同的渲染场景下都能正确工作。

Verification successful

React DOM 渲染逻辑

经过验证,hydrateRootrender 方法在 packages/renderer-react/src/browser.tsx 文件中的使用是正确的,并且在不同的渲染场景下能够正常工作。

  • hydrateRoot 方法在第 398 行使用,条件逻辑合理。
  • render 方法在第 401 行使用,符合预期的渲染逻辑。
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the correct usage of ReactDOM methods across different rendering scenarios.

# Test: Search for usage of `hydrateRoot` and `render` in the project. Expect: Consistent and correct usage.
rg --type ts "hydrateRoot|render"

Length of output: 43876

packages/plugins/src/qiankun/slave.ts (2)

230-237: 确保服务器端渲染和客户端渲染的生命周期函数正确处理。

这段代码正确地处理了服务器端和客户端的生命周期函数,通过条件判断确保在服务器端时不执行任何操作。这是一个很好的实践,确保了代码的健壯性。


183-187: 优化建议:使用可选链简化代码。

这里的条件判断可以通过使用可选链操作符来简化,使代码更加简洁易读。

-    if (ssr) {
-      return;
-    }
+    return ssr ? undefined : config;

Likely invalid or redundant comment.

packages/preset-umi/src/commands/dev/dev.ts (1)

360-364: 优化配置对象的构建

这里的配置对象构建方式可以优化,避免在每次调用时都进行复制和扩展操作,这样可以提高代码的执行效率。
[REFACTOR_SUGGESTion]

-  plugins: api.config.mako?.plugins,
-  config: {
-    outputPath: api.userConfig.outputPath || 'dist',
-    ...api.config,
-  },
+  config: Object.assign({}, api.config, {
+    outputPath: api.userConfig.outputPath || 'dist',
+    plugins: api.config.mako?.plugins,
+  }),

@@ -2,11 +2,11 @@ import { importLazy, lodash, winPath } from '@umijs/utils';
import { existsSync, readdirSync } from 'fs';
import { basename, dirname, join } from 'path';
import { RUNTIME_TYPE_FILE_NAME } from 'umi';
import { getMarkupArgs } from '../../commands/dev/getMarkupArgs';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请添加对新引入的 getMarkupArgs 函数的说明。

在文件中引入了 getMarkupArgs,但没有相应的注释说明其用途和工作方式。为了提高代码的可读性和可维护性,建议添加必要的文档注释。

Comment on lines +296 to +300
const __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = api.config.ssr
?.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED ?? {
pureApp: false,
pureHtml: false,
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关于 __INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED 的使用。

此变量的命名明显是为了警告开发者不要在其他地方使用这个内部变量,这是一个好的实践。但是,从维护和可读性角度来看,如果能在代码中添加更多关于此变量具体作用和使用场景的注释,将会更加有帮助。

Comment on lines +644 to +646
exports.push(
`export type { History, ClientLoader } from '${rendererPath}'`,
);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

检查导出类型的正确性。

在这里导出了 HistoryClientLoader 类型,但没有提供对应的导入语句。这可能会导致在其他使用这些类型的文件中出现找不到类型的错误。建议检查是否在文件的其他部分或相关依赖中正确导入了这些类型。

Comment on lines +1 to +23
import { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs';
import { useState } from 'react';
import { Outlet, useServerInsertedHTML } from 'umi';

export default function Layout() {
const [cssCache] = useState(() => createCache());

useServerInsertedHTML(() => {
const style = extractStyle(cssCache, { plain: true });
return (
<style
id="antd-cssinjs"
dangerouslySetInnerHTML={{ __html: style }}
></style>
);
});

return (
<StyleProvider cache={cssCache}>
<Outlet />
</StyleProvider>
);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免使用 dangerouslySetInnerHTML

代码中使用了 dangerouslySetInnerHTML 来设置内联样式,这可能会导致跨站脚本攻击(XSS)。建议寻找其他方法来设置样式,以提高应用的安全性。

- <style id="antd-cssinjs" dangerouslySetInnerHTML={{ __html: style }}></style>
+ <style id="antd-cssinjs">{style}</style>
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs';
import { useState } from 'react';
import { Outlet, useServerInsertedHTML } from 'umi';
export default function Layout() {
const [cssCache] = useState(() => createCache());
useServerInsertedHTML(() => {
const style = extractStyle(cssCache, { plain: true });
return (
<style
id="antd-cssinjs"
dangerouslySetInnerHTML={{ __html: style }}
></style>
);
});
return (
<StyleProvider cache={cssCache}>
<Outlet />
</StyleProvider>
);
}
import { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs';
import { useState } from 'react';
import { Outlet, useServerInsertedHTML } from 'umi';
export default function Layout() {
const [cssCache] = useState(() => createCache());
useServerInsertedHTML(() => {
const style = extractStyle(cssCache, { plain: true });
return (
<style id="antd-cssinjs">{style}</style>
);
});
return (
<StyleProvider cache={cssCache}>
<Outlet />
</StyleProvider>
);
}
Tools
Biome

[error] 13-13: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

Comment on lines +32 to +34
dangerouslySetInnerHTML={{
__html: `.server_inserted_style { color: #1677ff }`,
}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免使用 dangerouslySetInnerHTML

直接在组件内部使用 dangerouslySetInnerHTML 可能会增加跨站脚本攻击(XSS)的风险。建议使用更安全的方法来插入或更新页面内容。

Tools
Biome

[error] 32-32: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

Comment on lines 11 to 18
return zod
.object({
plugins: zod.object({
load: zod.function(),
generateEnd: zod.function(),
}),
})
.partial();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mako 配置和日志消息审查

文件中添加了 Mako 的新配置架构和对 Windows 兼容性的检查。此外,还增加了有关 Mako 开发状态的日志消息。建议改进日志消息,使其更清晰,并明确指出工具的开发状态。

- `Mako is an extremely fast, production-grade web bundler based on Rust. And it's still under active development and is not yet ready for production use. If you encounter any issues, please checkout https://makojs.dev/ to join the community and report the issue.`
+ `Mako is a high-performance web bundler based on Rust, currently under active development. It is not recommended for production use yet. For issues, join the community at https://makojs.dev/.`

Also applies to: 25-29, 38-54

Comment on lines +67 to +69
const html = await markupRender(path);
logger.info(`Pre-render for ${path}`);
return html;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优化错误处理

在进行预渲染时,如果遇到错误,代码会记录错误并可能抛出。建议在这里添加更详细的错误处理逻辑,例如错误重试或提供更详细的错误信息。

- logger.error(`Pre-render ${path} error: ${err}`);
- if (!ignorePreRenderError) {
+ logger.error(`Pre-render ${path} error: ${err}, attempting a retry...`);
+ try {
+   const html = await markupRender(path);
+   logger.info(`Retry successful for ${path}`);
+   return html;
+ } catch (retryErr) {
+   logger.error(`Retry failed for ${path}: ${retryErr}`);
+   if (!ignorePreRenderError) {
    throw err;
+   }
+ }
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const html = await markupRender(path);
logger.info(`Pre-render for ${path}`);
return html;
const html = await markupRender(path);
logger.info(`Pre-render for ${path}`);
return html;
} catch (err) {
logger.error(`Pre-render ${path} error: ${err}, attempting a retry...`);
try {
const html = await markupRender(path);
logger.info(`Retry successful for ${path}`);
return html;
} catch (retryErr) {
logger.error(`Retry failed for ${path}: ${retryErr}`);
if (!ignorePreRenderError) {
throw err;
}
}
}

Comment on lines +16 to +18
dangerouslySetInnerHTML={{
__html: `<b>Enable JavaScript to run this app.</b>`,
}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免使用 dangerouslySetInnerHTML

此处使用 dangerouslySetInnerHTML 可能会导致 XSS 攻击。建议找到替代的安全方式来实现此功能。

- dangerouslySetInnerHTML={{ __html: `<b>Enable JavaScript to run this app.</b>` }}
+ children={<b>Enable JavaScript to run this app.</b>}
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
dangerouslySetInnerHTML={{
__html: `<b>Enable JavaScript to run this app.</b>`,
}}
children={<b>Enable JavaScript to run this app.</b>}
Tools
Biome

[error] 16-16: Avoid passing content using the dangerouslySetInnerHTML prop. (lint/security/noDangerouslySetInnerHtml)

Setting content using code can expose users to cross-site scripting (XSS) attacks

Comment on lines 90 to 99
if (memo.ssr.builder === 'mako') {
assert(
!memo.mako,
`The \`ssr.builder mako\` config is now allowed when \`mako\` is enable!`,
);
memo.manifest ??= {};
if (isWindows) {
memo.ssr.builder = 'webpack';
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

配置校验

搜索结果显示在项目文档中没有找到关于 ssr.buildermako 配置项的详细文档说明。建议在项目文档中添加这些配置项的必要性和用途的详细说明,以避免未来的误配置。

  • 未找到关于 ssr.builder 的详细文档说明。
  • 未找到关于 mako 的详细文档说明。
Analysis chain

配置校验

这里进行了一系列配置校验,确保配置的正确性。建议在文档中明确指出这些配置项的必要性和用途,避免未来的误配置。

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the necessity and usage of configuration items in the project documentation.

# Test: Search for documentation about the configuration items used in SSR setup. Expect: Detailed documentation should exist.
rg --type md "ssr.builder|mako"

Length of output: 124



Script:

#!/bin/bash
# Expand the search for detailed documentation about `ssr.builder` and `mako` in all Markdown files and any other potential documentation files.

# Search for mentions of `ssr.builder` in Markdown files
rg --type md "ssr.builder"

# Search for mentions of `mako` in Markdown files
rg --type md "mako"

# Search for detailed documentation in other potential documentation files (e.g., HTML, JSON, etc.)
rg --type html "ssr.builder|mako"
rg --type json "ssr.builder|mako"

Length of output: 332

return (
<html>
<head></head>
<body>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为 HTML 元素添加 lang 属性

出于无障碍访问性的考虑,应为 HTML 元素添加 lang 属性,这有助于屏幕阅读器正确地识别页面使用的语言。

- <html>
+ <html lang="en">

Committable suggestion was skipped due to low confidence.

Tools
Biome

[error] 126-126: Provide a lang attribute when using the html element. (lint/a11y/useHtmlLang)

Setting a lang attribute on HTML document elements configures the languageused by screen readers when no user default is specified.

@@ -66,6 +66,7 @@ export function resolveDefine(opts: IOpts) {

return {
'process.env': env,
'process.env.SSR_MANIFEST': 'process.env.SSR_MANIFEST',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

忘了当时的情况了,这个能实现到 ssr plugin 里吗


api.chainWebpack((config, { ssr }) => {
// 在 ssr 的场景下,把 qiankun external 到一个任意模块
// 这样就不会把 qiankun 的依赖构建进产物中
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里感觉还是得有个本质解,现在的方式只是绕过,注释里至少要包含两个问题:

  1. 为什么不能引入 qiankun 的依赖
  2. 为什么 ssr 没用到 qiankun 却又会把 qiankun 打进来

以及本质解应该是满足某个前提 ssr 就不受影响,也不用 externals 来绕,可以留成 TODO

@@ -107,7 +107,12 @@ umi build --clean
react: {
runtime: shouldUseAutomaticRuntime ? 'automatic' : 'classic',
},
config: api.config,
plugins: api.config.mako?.plugins,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个分支为啥会出现 Mako 相关的 diff

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7d0f2f8 and a113db8.

Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing (1)
  • package.json (3 hunks)
Files skipped from review due to trivial changes (1)
  • package.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Outside diff range and nitpick comments (4)
packages/preset-umi/src/commands/build.ts (2)

142-144: 处理环境变量的使用

代码中使用了环境变量 process.env.OKAM 来动态引入模块。这种做法虽然提供了灵活性,但也增加了代码的复杂性和潜在的错误风险。建议在文档中详细说明这种用法的场景和限制,以帮助开发者正确使用。


Line range hint 72-72: 避免使用 'Object' 作为类型

代码中多次使用了 'Object' 作为类型,这种做法虽然简便,但会导致类型检查的不严格。建议使用更具体的类型定义,以提高代码的安全性和可维护性。

- const modifyWebpackConfig = async (memo: Object, args: Object) => {
+ const modifyWebpackConfig = async (memo: WebpackConfig, args: WebpackArgs) => {

Also applies to: 80-80, 87-87

packages/preset-umi/src/features/ssr/ssr.ts (1)

Line range hint 176-193: 优化构建逻辑

在处理不同构建工具的逻辑时,代码中使用了多个条件判断。这种做法虽然可以处理复杂的场景,但也使得代码难以阅读和维护。建议对构建逻辑进行抽象和封装,以简化代码结构。

- if (builder === 'esbuild') {
-   await esbuildBuilder.build({
-     api,
-     watch: api.env === 'development',
-   });
- } else if (builder === 'webpack') {
-   assert(
-     !api.config.vite,
-     `The \`vite\` config is now allowed when \`ssr.builder\` is webpack!`,
-   );
-   await webpackBuilder.build(api, opts);
- } else if (api.config.mako && builder === 'mako') {
-   await makoBuiler.build(api);
- }
+ await handleBuild(builder, api, opts);
packages/preset-umi/src/commands/dev/dev.ts (1)

439-441: 处理环境变量的使用

代码中使用了环境变量 process.env.OKAM 来动态引入模块。这种做法虽然提供了灵活性,但也增加了代码的复杂性和潜在的错误风险。建议在文档中详细说明这种用法的场景和限制,以帮助开发者正确使用。

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between a113db8 and da9315b.

Files selected for processing (6)
  • examples/ssr-demo/.umirc.ts (1 hunks)
  • packages/preset-umi/src/commands/build.ts (5 hunks)
  • packages/preset-umi/src/commands/dev/dev.ts (2 hunks)
  • packages/preset-umi/src/features/mako/mako.ts (2 hunks)
  • packages/preset-umi/src/features/ssr/mako/mako.ts (1 hunks)
  • packages/preset-umi/src/features/ssr/ssr.ts (6 hunks)
Files skipped from review as they are similar to previous changes (3)
  • examples/ssr-demo/.umirc.ts
  • packages/preset-umi/src/features/mako/mako.ts
  • packages/preset-umi/src/features/ssr/mako/mako.ts
Additional context used
Biome
packages/preset-umi/src/commands/build.ts

[error] 72-72: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)


[error] 80-80: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)


[error] 87-87: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)

packages/preset-umi/src/features/ssr/ssr.ts

[error] 66-66: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

packages/preset-umi/src/commands/dev/dev.ts

[error] 279-279: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)


[error] 287-287: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)


[error] 294-294: Don't use 'Object' as a type.

Prefer explicitly define the object shape. This type means "any non-nullable value", which is slightly better than 'unknown', but it's still a broad type.

(lint/complexity/noBannedTypes)

Comment on lines +181 to +193
const args = await getMarkupArgs({ api });

const finalMarkUpArgs = {
...markupArgs,
styles: markupArgs.styles.concat(
...args,
styles: args.styles.concat(
api.config.vite
? []
: [...(assetsMap['umi.css'] || []).map((src) => ({ src }))],
),
scripts: (api.config.vite
? []
: [...(assetsMap['umi.js'] || []).map((src) => ({ src }))]
).concat(markupArgs.scripts),
).concat(args.scripts),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优化资源引用

在处理静态资源的路径时,代码尝试根据配置动态调整路径。这是一个复杂的逻辑,建议增加单元测试来确保路径计算的正确性。

是否需要帮助编写这部分的单元测试代码?

Comment on lines +110 to +113
config: {
outputPath: api.userConfig.outputPath || 'dist',
...api.config,
} as IServicePluginAPI['config'],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

优化配置对象的定义方式

在配置对象的定义中,使用了扩展操作符来合并用户配置和默认配置。这种方式虽然便捷,但可能会导致意外的属性覆盖。建议明确指出每个属性的来源,以提高代码的可读性和可维护性。

-          ...api.config,
+          outputPath: api.userConfig.outputPath || 'dist',
+          someOtherConfig: api.config.someOtherConfig,

Committable suggestion was skipped due to low confidence.

const oReactDom = memo.alias['react-dom'];

// put react-dom after react-dom/server
delete memo.alias['react-dom'];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免使用 delete 操作符

代码中使用了 delete 操作符来处理对象属性,这可能会影响性能。建议使用其他方法来处理不需要的属性。

- delete memo.alias['react-dom'];
+ memo.alias['react-dom'] = undefined;
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
delete memo.alias['react-dom'];
memo.alias['react-dom'] = undefined;
Tools
Biome

[error] 66-66: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between da9315b and 63e13e9.

Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing (1)
  • packages/preset-umi/package.json (2 hunks)
Files skipped from review due to trivial changes (1)
  • packages/preset-umi/package.json

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 63e13e9 and 9f483d8.

Files selected for processing (3)
  • packages/preset-umi/package.json (2 hunks)
  • packages/renderer-react/package.json (1 hunks)
  • packages/server/package.json (1 hunks)
Files skipped from review as they are similar to previous changes (3)
  • packages/preset-umi/package.json
  • packages/renderer-react/package.json
  • packages/server/package.json

@Jinbao1001 Jinbao1001 merged commit b50da63 into master Jun 27, 2024
23 checks passed
@fz6m
Copy link
Contributor

fz6m commented Jul 3, 2024

这个 PR 看起来质量很差,唉。

@burakakca
Copy link

burakakca commented Aug 19, 2024

I tried to use qiankun on ssr mode but there is error.

import { defineConfig } from 'umi' ;

export default defineConfig ({
  ssr: { builder: 'webpack' },
  exportStatic: {},
  hash: true,
	mfsu : false,
	chainWebpack(memo) {
		memo.output.libraryTarget('umd') ;
		memo.output.library('ssr-webpack') ;
		memo.output.chunkLoadingGlobal('webpackJsonp_ssr-webpack') ;
		return memo ;
	},
	plugins: [
		'@umijs/plugins/dist/qiankun',
	],
	qiankun: {
		slave: {},
	},
	routes: [
    { path: '/', component: 'index' },
  ],
}) ;

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants