profile
viewpoint
chencheng (云谦) sorrycc Alipay HangZhou https://sorrycc.com/ Front-end developer at alipay, creator of @dvajs, roadhog, babel-plugin-import... I'm developing @umijs.

sorrycc/awesome-javascript 21055

🐢 A collection of awesome browser-side JavaScript libraries, resources and shiny things.

dvajs/dva 15122

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)

oldj/SwitchHosts 10899

Switch hosts quickly!

ant-design/babel-plugin-import 2438

Modularly import plugin for babel.

sorrycc/awesome-f2e-libs 1058

🎉 整理我平时关注的前端库。

ant-design/antd-init 813

:beginner: Ant Design boilerplate generator.

reactjs/zh-hans.reactjs.org 377

React documentation website in Simplified Chinese

macacajs/macaca-datahub 346

Continuous data provider for development, testing, staging and production. Just enjoy the data out-of-the-box.📦

macacajs/torchjs 40

Test framework to light up the world.

sorrycc/ama 29

Ask me anything!

issue commentumijs/umi

热更新不起作用了,我并没有关闭热更新

给复现步骤。

521guyu

comment created time in 2 days

issue commentumijs/umi

process.env return undefined

Why use process.env? process.env.NODE_ENV should have defined.

mahmutduva

comment created time in 2 days

pull request commentumijs/umi

fix: resolve correct component and wrappers path in windows

👍

mortalYoung

comment created time in 2 days

push eventumijs/umi

野迂迂

commit sha ef674b120c9a3188f0167a9fa2211d3cdbf60a21

fix: resolve correct component and wrappers path in windows (#5469)

view details

push time in 2 days

PR merged umijs/umi

fix: resolve correct component and wrappers path in windows

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [x] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • 修复在 windows 平台下 wrappers 的地址错误的情况
  • close https://github.com/umijs/umi/issues/5401
+3 -2

0 comment

1 changed file

mortalYoung

pr closed time in 2 days

issue closedumijs/umi

[Bug] route.wrappers 在 windows 下存在问题

<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->

What happens?

  • 在调试 dumi 的时候,发现生成的 .umi/core/routes.ts 中存在异常数据,其中 wrappers 的路径异常如下
{
    "path": "/",
    "wrappers": [require('D:/projects/dumi/pages/D:/projects/dumi/packages/preset-dumi/lib/theme/layout').default
     ...
}

  • 排查之后发现是在 windows 下给 route.wrapper 传绝对路径会被迫 joinroot, 导致拿到了错误的路径信息
  • 虽然可以通过传相对路径来规避该问题,但是我认为这肯定是一个bug

<!-- 清晰的描述下遇到的问题。-->

最小可复现仓库

  • 问题简单不需要提供复现仓库了吧,看代码就能看出问题

思路

引用 Route.ts 的一段代码就可以看出来

 if (route.wrappers) {
      route.wrappers = route.wrappers.map((wrapper) => {
        if (wrapper.startsWith('@/') || wrapper.startsWith('/')) {
          return wrapper;
        } else {
          return winPath(join(opts.root, wrapper));
        }
      });
    }
  • 这里用 wrapper.startsWith('@/') || wrapper.startsWith('/') 来判断是否为绝对路径不合理,我建议用 path.isAbsolute 来判断
  • 如果是 Windows 的绝对路径 比如 D:\projects\xxx\xxx 就会被迫 joinroot

相关环境信息

  • Umi 版本:v3.2.20
  • Node 版本:v12.16.2
  • 操作系统:Windows

closed time in 2 days

mortalYoung

push eventumijs/umi

Fortune Ochi

commit sha da41799939023193c2cb76695d1ddfc5f67f7576

Update README.md (#5470) Updated "front-line" to "front-end" developers

view details

push time in 2 days

PR merged umijs/umi

doc(README.md): updated typo in README.md

Updated "front-line" to "front-end" developers

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [x] npm test passes
  • [x] tests are included
  • [x] documentation is changed or added
  • [x] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL

View rendered docs/docs/README.md

+1 -1

0 comment

1 changed file

ofuochi

pr closed time in 2 days

issue closedumijs/umi

升级到umi 3.1.0 打包项目卡死,不知道为什么,哪位大佬给看下

<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: --> image

升级到 umi3.1.0 把配置文件简化后就变成这样了

What happens?

<!-- 清晰的描述下遇到的问题。-->

最小可复现仓库

请使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库

<!-- 为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN --> <!-- https://github.com/YOUR_REPOSITORY_URL -->

复现步骤,错误日志以及相关配置

<!-- 请提供复现步骤,错误日志以及相关配置 --> <!-- 可以尝试不要锁版本,重新安装依赖试试先 -->

相关环境信息

  • Umi 版本
  • Node 版本
  • 操作系统

closed time in 2 days

XSmarter

issue commentumijs/umi

Umi 3.x打包 dynamicImport 开启与否对打包结果影响很大

需要调整下 code splitting 策略,参考 https://umijs.org/guide/boost-compile-speed#%E8%B0%83%E6%95%B4-splitchunks-%E7%AD%96%E7%95%A5%EF%BC%8C%E5%87%8F%E5%B0%91%E6%95%B4%E4%BD%93%E5%B0%BA%E5%AF%B8 试试。

XiaoJiuDYS

comment created time in 2 days

issue commentumijs/next-app

跑不起来,这个不维护了吗

@xiaohuoni 如果优先级低,可以把仓库 archive 下。

ouzhou

comment created time in 2 days

push eventumijs/plugins

chencheng

commit sha 7e278a121eaef4c008f0c1462bca5a4318e12245

chore(release): Publish - @umijs/plugin-dva@0.9.1 - @umijs/preset-react@1.6.8

view details

push time in 2 days

created tagumijs/plugins

tag@umijs/plugin-dva@0.9.1

Official plugins and presets for umi@3.

created time in 2 days

created tagumijs/plugins

tag@umijs/preset-react@1.6.8

Official plugins and presets for umi@3.

created time in 2 days

push eventumijs/plugins

chencheng (云谦)

commit sha 03320cc4203facea68b3a5212d7c73f9cde17c3e

dep(dva): upgrade dva-immer to 0.5 (#398) * dep(dva): upgrade dva-immer to 0.5 * chore: update yarn.lock

view details

push time in 2 days

PR merged umijs/plugins

dep(dva): upgrade dva-immer to 0.5
+10 -10

1 comment

2 changed files

sorrycc

pr closed time in 2 days

push eventumijs/plugins

chencheng

commit sha ded6e7544b56ae9d36ae4b541a9090f230f2df47

chore: update yarn.lock

view details

push time in 2 days

PR opened umijs/plugins

dep(dva): upgrade dva-immer to 0.5
+1 -1

0 comment

1 changed file

pr created time in 2 days

create barnchumijs/plugins

branch : dep/upgrade-dva-immer

created branch time in 2 days

push eventdvajs/dva

sorrycc

commit sha 45dfa782c4e6f2854fe6e5c6f34fee1b0d6ef151

Publish - dva-core@2.0.3 - dva-immer@0.5.0 - dva-loading@3.0.21 - dva@2.6.0-beta.21

view details

push time in 4 days

push eventdvajs/dva

Chen XI

commit sha 0546eba295056cf24f767d0075114a1cfff6adb7

feat: upgrade immer version to 7.x (#2380)

view details

push time in 4 days

PR merged dvajs/dva

feat: upgrade immer version to 7.x

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [x] npm test passes
Description of change
  • 升级 immer 的版本到最新的 7.x,否则 import { original, isDraft } from 'immer' 中导出的方法无法在 dva reducer 中使用(假设项目也是使用的 7.x 版本的 immer)。

  • 重新生成根目录下的 yarn.lock,否则项目安装会失败,参考:https://github.com/nodejs/node/issues/27389

<!-- Provide a description of the change below this comment. -->

+5320 -5196

1 comment

4 changed files

xc1427

pr closed time in 4 days

push eventdvajs/dva

chencheng (云谦)

commit sha 792f32d7e3b643aa3f642e4b843c9aca2cce3330

chore: update ci (#2381)

view details

push time in 4 days

PR merged dvajs/dva

chore: update ci

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/dvajs/dva/ISSUE_URL
+1 -21

0 comment

2 changed files

sorrycc

pr closed time in 4 days

PR opened dvajs/dva

chore: update ci

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/dvajs/dva/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/dvajs/dva/ISSUE_URL
+1 -21

0 comment

2 changed files

pr created time in 4 days

create barnchdvajs/dva

branch : chore/update-ci

created branch time in 4 days

issue closedumijs/umi

约定式路由,未设置routes,pages下的页面除了index其他都不渲染

按照文档配置,.umirc.ts中未设置routes,在pages目录下新建页面,如下 image

访问/manage/emeter/realtime未渲染realtime页面内容,访问/可以正常渲染index页面 可复现demo https://github.com/qwe9527/umi-example.git

closed time in 4 days

qwe9527

issue commentumijs/umi

约定式路由,未设置routes,pages下的页面除了index其他都不渲染

image 不是可以的吗?

qwe9527

comment created time in 4 days

issue closedumijs/umi

[Feature]base前缀路由不支持动态参数

<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->

What happens?

<!-- 清晰的描述下遇到的问题。--> 如图所示,base只能是固定的字符串 image 实际应用场景中,应该经常存在动态参数的情况,是不是考虑支持一下动态参数的情况?

最小可复现仓库

请使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库

<!-- 为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN --> <!-- https://github.com/YOUR_REPOSITORY_URL -->

复现步骤,错误日志以及相关配置

<!-- 请提供复现步骤,错误日志以及相关配置 --> <!-- 可以尝试不要锁版本,重新安装依赖试试先 -->

相关环境信息

  • Umi 版本
  • Node 版本
  • 操作系统

closed time in 4 days

xiexingen

issue commentumijs/umi

[Feature]base前缀路由不支持动态参数

需要由服务端控制 html 输出,在 html 里输出不同的 base,然后切换时刷页面。

xiexingen

comment created time in 4 days

push eventumijs/umi

chencheng

commit sha dc6f653c50756ff8abc3ab22d3ec69b29dfb2cb7

docs: update wechat's qrcode

view details

push time in 4 days

release umijs/umi

v3.2.22

released time in 4 days

created tagumijs/umi

tagv3.2.22

🌋 Pluggable enterprise-level react application framework.

created time in 4 days

push eventumijs/umi

chencheng

commit sha c1fb425b9125af6d3d34f6cdcfd5f3ac6aa8be57

release: v3.2.22

view details

push time in 4 days

push eventumijs/umi

信鑫-King

commit sha a5908e36523d570e868774f63702848ccc99d949

fix: dist regexp in windows os (#5462) * fix: windows bug in ignored watch files * fix: windows bug in ignored watch files« * chore: windows ci * chore: windows ci * chore: sep * chore: test * chore: console.log * chore: windows * chore: use anymatch in webpack * chore: format * chore: test * chore: anymatch Co-authored-by: pr <pr>

view details

push time in 4 days

PR merged umijs/umi

Reviewers
fix: dist regexp in windows os

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

ref: https://github.com/umijs/umi/issues/5416 Close https://github.com/umijs/umi/issues/5465 Close https://github.com/ant-design/ant-design-pro/issues/7381

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [x] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL
+70 -22

1 comment

9 changed files

ycjcl868

pr closed time in 4 days

issue closedant-design/ant-design-pro

初始化运行npm start报正则不合法的错误

实验项目均为重新按照官方文档流程新建立的,而不是老项目。 SyntaxError: Invalid regular expression: /(node_modules|D:\workspace\antTest\dist)/: Unterminated group at new RegExp (<anonymous>) at Bundler.setupDevServerOpts (D:\workspace\antTest\node_modules_@umijs_bundler-webpack@3.2.21@@umijs\bundler-webpack\lib\index.js:150:69)

经定位是上述index.js中正则拼接的错误,代码片段: watchOptions: { // not watch outputPath dir and node_modules ignored: process.env.WATCH_IGNORED === 'none' ? undefined : new RegExp(process.env.WATCH_IGNORED || (node_modules|${absOutputPath}${_path().sep})) } 由于${absOutputPath}${_path().sep}=D:\workspace\antTest\dist\中存在\特殊字符,导致生成正则错误,如果只针对开发,可以将后续拼接删除或者变成${absOutputPath}${_path().sep}.*,但觉得不妥,想问问有遇到这个问题的吗,如何解决。

closed time in 4 days

xinyouhunran

issue closedumijs/umi

ant-design-pro umi 正则表达式 运行报错

What happens?

如题

Mini Showcase Repository(REQUIRED)

用 yarn create umi 选取ant-design-pro 模板, 直接运行报错

<!-- https://github.com/YOUR_REPOSITORY_URL -->

How To Reproduce

npm start

Context

报错信息: Invalid regular expression: /(node_modules|D:\WorkSpace\front\admin\dist)/: Unterminated group SyntaxError: Invalid regular expression: /(node_modules|D:\WorkSpace\front\admin\dist)/: Unterminated group at new RegExp (<anonymous>) at Bundler.setupDevServerOpts (D:\WorkSpace\front\admin\node_modules@umijs\bundler-webpack\lib\index.js:148:69) at D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:269:30 at Generator.next (<anonymous>) at asyncGeneratorStep (D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:74:103) at _next (D:\WorkSpace\front\admin\node_modules@umijs\preset-built-in\lib\plugins\commands\dev\dev.js:76:194)

  • Umi Version: ^3.2.14
  • Node Version: v12.18.4
  • Platform: Windows10

closed time in 4 days

MrCx0810

issue commentumijs/umi

开启dynamicImport loading能否禁用

既然开了按需加载,肯定是一个异步的过程,有 loading 正常吧。

eevin

comment created time in 4 days

issue closedumijs/umi

umi@3 启用SPEED_MEASURE后 umi dev 报错

What happens?

set SPEED_MEASURE=JSON&& umi dev :启用 SPEED_MEASURE后 dev报错,试了两个项目, 第一个项目如果不使用copy,就没有问题,而且就算使用了copy,虽然有报错但是却不会导致中断; 第二个项目会直接中断

image

image

情况应该与https://github.com/umijs/umi/issues/4430 相同

  • Umi Version: 3.1.0
  • Node Version: 10.15.3
  • Platform: windows

closed time in 4 days

NexxLuo

Pull request review commentumijs/umi

fix: dist regexp in windows os

 class Bundler {     });   } +  /**+   * get ignored watch dirs regexp, for test case+   */+  getIgnoredWatchRegExp = (): undefined | RegExp => {+    const { outputPath } = this.config;+    console.log('this.cwd', this.cwd);

console.log 删了。

ycjcl868

comment created time in 4 days

PullRequestReviewEvent

created tagumijs/plugins

tag@umijs/plugin-qiankun@2.14.2

Official plugins and presets for umi@3.

created time in 4 days

push eventumijs/plugins

chencheng

commit sha b16c427567ec10c6270b8194e5162229d13bb767

chore(release): Publish - @umijs/plugin-qiankun@2.14.2

view details

push time in 4 days

delete branch umijs/plugins

delete branch : feat/qiankun-no-cjs-imports

delete time in 4 days

push eventumijs/plugins

chencheng (云谦)

commit sha c679b30425bde3e1274efca5b8051861c578a026

fix(qiankun): no cjs require, use umiExports.MicroApp (#395)

view details

push time in 4 days

PR merged umijs/plugins

fix(qiankun): no cjs require, use umiExports.MicroApp
  • MicroApp 和 React 不使用 cjs 的方式引入,cjs 会影响提速方案的实施
  • 相关 pr: https://github.com/umijs/umi/pull/5456
  • 依赖 umi@3.2.21(已发布)
  • packages/plugin-qiankun/examples 下的例子已验证
+543 -131

1 comment

3 changed files

sorrycc

pr closed time in 4 days

PR opened umijs/plugins

fix(qiankun): no cjs require, use umiExports.MicroApp
  • MicroApp 和 React 不使用 cjs 的方式引入,cjs 会影响提速方案的实施
  • 相关 pr: https://github.com/umijs/umi/pull/5456
  • 依赖 umi@3.2.21(已发布)
  • packages/plugin-qiankun/examples 下的例子已验证
+543 -131

0 comment

3 changed files

pr created time in 4 days

push eventumijs/umi

Kuitos

commit sha 20bbce43387c1deb2e25b2efd4af4867e4fc8e71

optimize: 仅 runtimeHistory 开启时才导出 setCreateHistoryOptions 和 getCreateHistoryOptions 方法 (#5461)

view details

push time in 4 days

PR merged umijs/umi

optimize: 仅 runtimeHistory 开启时才导出 setCreateHistoryOptions 和 getCreateHistoryOptions 方法

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+8 -6

0 comment

2 changed files

kuitos

pr closed time in 4 days

create barnchumijs/plugins

branch : feat/qiankun-no-cjs-imports

created branch time in 4 days

PullRequestReviewEvent

release umijs/umi

v3.2.21

released time in 4 days

created tagumijs/umi

tagv3.2.21

🌋 Pluggable enterprise-level react application framework.

created time in 4 days

push eventumijs/umi

chencheng

commit sha dc0f87b9e400b420c97b27ef4c595c6cb48ce456

release: v3.2.21

view details

push time in 4 days

push eventumijs/umi

chencheng (云谦)

commit sha 38946ff744f9acf95827e975ea09860be580f0e0

feat: export umiExports and React in core/routes.ts (#5456) * refactor: export umi in core/routes.ts * fix: testcase * chore: export react

view details

push time in 4 days

PR merged umijs/umi

feat: export umiExports and React in core/routes.ts

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL
+2 -0

0 comment

1 changed file

sorrycc

pr closed time in 4 days

push eventumijs/umi

Kuitos

commit sha f692219a05b0524462f64cf4fb6f242c7193c8ac

feat: add getCreateHistoryOptions api to get runtime history options (#5457) * feat: add getCreateHistoryOptions api to get runtime history options * chore: typo

view details

push time in 4 days

PR merged umijs/umi

feat: add getCreateHistoryOptions api to get runtime history options

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL

<!-- Reviewable:start -->

This change is <img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/> <!-- Reviewable:end -->

+5 -2

0 comment

2 changed files

kuitos

pr closed time in 4 days

PullRequestReviewEvent

push eventumijs/umi

chencheng

commit sha 1c042ba5b7c2c82b5c8ece39c3ddd2937ec0669c

chore: export react

view details

push time in 4 days

push eventumijs/umi

chencheng

commit sha 0ff4766f620a6eef080a62a94c10e254f4eb2e1c

fix: testcase

view details

push time in 4 days

push eventumijs/umi

chencheng (云谦)

commit sha 686e0031bd01e0e5f84676ebfacef1a320ccac32

fix: dev's exit code when Service init failed (#4983)

view details

push time in 4 days

PR merged umijs/umi

fix: dev's exit code when Service init failed

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL
+2 -0

1 comment

1 changed file

sorrycc

pr closed time in 4 days

PR opened umijs/umi

refactor: export umi in core/routes.ts

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature?
  • close https://github.com/umijs/umi/ISSUE_URL
+4 -4

0 comment

2 changed files

pr created time in 4 days

push eventumijs/umi

chencheng

commit sha 1c011f2540fce47145a1e87c4ba54b5f18336e6c

refactor: export umi in core/routes.ts

view details

push time in 4 days

create barnchumijs/umi

branch : feat/export-umi-in-routes

created branch time in 4 days

push eventumijs/umi

chencheng

commit sha cdb2f14df61fc9ce7174356901011bde549eb5f9

docs: update banner image

view details

push time in 5 days

startedjean-smaug/babel-plugin-search-and-replace

started time in 5 days

PR merged umijs/umi

feat: update copy-webpack-plugin@6.1.0

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md --> 更新 copy-webpack-plugin@6.1.0。 由于 patterns 不能是一个空数组,所以改成按需引入。

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [x] npm test passes
  • [ ] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

Close: https://github.com/umijs/umi/issues/5208

+114 -2390

4 comments

3 changed files

xiaohuoni

pr closed time in 5 days

issue closedumijs/umi

"found 1 high severity vulnerability" @umijs/bundler-webpack > copy-webpack-plugin > serialize-javascript

What happens?

Installing umi gives security vulnerability: umi-security

How To Reproduce

Steps to reproduce the behavior:

npx @umijs/create-umi-app
npm install

Expected behavior: No "found 1 high security vulnerability"

Context

  • Umi Version: 3.2.14
  • Node Version: 14.7.0
  • Platform: Linux

Solution

Upgrade copy-webpack-builder to 6.0.3: https://github.com/umijs/umi/blob/master/packages/bundler-webpack/package.json#L37

Note: Possible breaking changes: https://github.com/webpack-contrib/copy-webpack-plugin/releases/tag/v6.0.0

closed time in 5 days

MatthewScholefield

pull request commentumijs/umi

feat: update copy-webpack-plugin@6.1.0

补下用例,在现有 fixtures/copy 的基础上,加个 { from, to } 的例子

xiaohuoni

comment created time in 5 days

startedairbnb/ts-migrate

started time in 5 days

issue closedumijs/umi

函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?

<!-- 感谢您向我们反馈问题,为了高效的解决问题,我们期望你能提供以下信息: -->

What happens?

函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?

相关环境信息

  • **Umi 版本3.2.9:
  • **Node 版本12:
  • **操作系统win2019:

closed time in 8 days

effapp

issue commentumijs/umi

函数组件国际化可以使用useIntl,在class组件中国际化应该怎么做呢?

改成 Function 的方式。

effapp

comment created time in 8 days

issue closedumijs/umi

覆盖antd-mobile样式失败 src/global.less 下全局样式无法覆盖antd-mobile样式

检查元素看到全局样式文件被划掉了,应该是引入样式顺序问题,没能成功覆盖antd-mobile样式

closed time in 8 days

userhjp

issue commentumijs/umi

覆盖antd-mobile样式失败 src/global.less 下全局样式无法覆盖antd-mobile样式

加载有先后,通过调整权重的方式覆盖吧。

userhjp

comment created time in 8 days

issue closedumijs/umi

当项目比较大的时候 , 热更新很慢,有无办法提升一下

当项目比较大的时候 , 热更新很慢,有无办法提升一下

closed time in 8 days

544751779

issue commentumijs/umi

当项目比较大的时候 , 热更新很慢,有无办法提升一下

热更新慢是因为依赖多,参考 https://umijs.org/zh-CN/guide/boost-compile-speed 这里的方式优化下。

544751779

comment created time in 8 days

issue closedumijs/umi

mac下v5模版无法热刷新

使用ant design pro v5 , yarn start 后无法热刷新,只能修改一个地方,重新yarn start

closed time in 8 days

wowtrxqn

pull request commentumijs/umi

chore: ci speed up

windows 的没过。

ycjcl868

comment created time in 8 days

pull request commentumijs/umi

feat: update copy-webpack-plugin@6.1.0

前面的格式乱了,加空格是故意的,还在前面加了 // prettier-ignore,为啥你的工具会做这个格式化?

xiaohuoni

comment created time in 8 days

pull request commentumijs/umi

feat: update copy-webpack-plugin@6.1.0

有冲突,merge 下 master。

xiaohuoni

comment created time in 9 days

Pull request review commentumijs/umi

feat: update copy-webpack-plugin@6.1.0

 export default async function getConfig(   }    // copy-  webpackConfig.plugin('copy').use(require.resolve('copy-webpack-plugin'), [-    [-      existsSync(join(cwd, 'public')) && {-        from: join(cwd, 'public'),-        to: absOutputPath,-      },-      ...(config.copy-        ? config.copy.map((from) => ({-            from: join(cwd, from),+  if (existsSync(join(cwd, 'public')) || config.copy) {

const copyPatterns = ...; if (copyPatterns.length) { webpackConfig.plugin('copy').use(...) }

换成这样简单点。

xiaohuoni

comment created time in 9 days

PullRequestReviewEvent

push eventumijs/umi

小虎oni

commit sha d6b8fc0ebe794773cf2776dff6feabc0ce311c8c

feat: copy config support from-to (#5440) * feat: copy config support from-to * docs: config copy docs * fix: type error

view details

push time in 9 days

PR merged umijs/umi

Reviewers
feat: copy config support from-to

<!-- Thank you for your pull request. Please review the below requirements. Bug fixes and new features should include tests. Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试。 Contributors guide: https://github.com/umijs/umi/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [x] npm test passes
  • [x] tests are included
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change below this comment. -->

  • any feature? Close: https://github.com/umijs/umi/issues/5277
+109 -9

1 comment

9 changed files

xiaohuoni

pr closed time in 9 days

issue closedumijs/umi

关于 配置.copy 的问题

What happens?

文件 .umirc.ts 的 copy 命令,以前 都支持 form/to 用的挺好的,后来改为了 只允许 string; 那么问题来了: 加入需求是:把文件夹 /src/resource 复制到 /dist , 根据帮助文档,应该写: copy: [ './src/resource', // 尝试了 './src/resource/' 效果一样 ], 但是,无论是 npm run start,还是 npm run build,复制过得的文件夹,丢了 resource ,会把里面的子文件全部复制到根目录; 难道我 需要文件:/dist/resource/* 我需要搞一个 /src/resource/resource 才可以???

相关环境信息

  • Umi 版本: "umi": "^3.2.16",
  • Node 版本:node 12
  • 操作系统: mac

closed time in 9 days

block-sexy

pull request commentumijs/umi

feat: copy config support from-to

看下用例为啥挂了?

xiaohuoni

comment created time in 9 days

created tagumijs/plugins

tag@umijs/plugin-locale@0.10.2

Official plugins and presets for umi@3.

created time in 9 days

push eventumijs/plugins

chencheng

commit sha a5e823f356ef9f7c7f3d26192e6439a5254168cf

chore(release): Publish - @umijs/plugin-locale@0.10.2 - @umijs/plugin-qiankun@2.12.1 - @umijs/preset-react@1.6.6

view details

push time in 9 days

created tagumijs/plugins

tag@umijs/plugin-qiankun@2.12.1

Official plugins and presets for umi@3.

created time in 9 days

created tagumijs/plugins

tag@umijs/preset-react@1.6.6

Official plugins and presets for umi@3.

created time in 9 days

push eventumijs/plugins

chencheng (云谦)

commit sha ba7d20c41d6d2176c216fb82a7cba9298646ee08

fix(locale): import order problem (#369)

view details

push time in 9 days

PR merged umijs/plugins

fix(locale): import order problem
+1 -1

1 comment

1 changed file

sorrycc

pr closed time in 9 days

PR opened umijs/plugins

fix(locale): import order problem
+1 -1

0 comment

1 changed file

pr created time in 9 days

create barnchumijs/plugins

branch : fix/layout-import-order

created branch time in 9 days

issue commentumijs/umi

在jenkins自动化部署的时候打包出错。

试试这个,https://umijs.org/guide/boost-compile-speed#%E6%9B%BF%E6%8D%A2%E5%8E%8B%E7%BC%A9%E5%99%A8%E4%B8%BA-esbuild

insistenceZHUO

comment created time in 9 days

startedyyx990803/vue-lit

started time in 10 days

startedbansal/filters.css

started time in 10 days

more