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

umi2如何不编译node_modules? #5119

Closed
dohooo opened this issue Jul 28, 2020 · 6 comments
Closed

umi2如何不编译node_modules? #5119

dohooo opened this issue Jul 28, 2020 · 6 comments

Comments

@dohooo
Copy link
Contributor

dohooo commented Jul 28, 2020

What happens?

文档里说的实在太抽象了,请问有没有例子?感谢

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue. Use yarn create @umijs/umi-app then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version:
  • Node Version:
  • Platform:
@dohooo dohooo mentioned this issue Jul 29, 2020
@xiaohuoni
Copy link
Member

本来就没编译的吧?

@dohooo
Copy link
Contributor Author

dohooo commented Jul 29, 2020

本来就没编译的吧?

看样子是编译了的 我怎么给你复现..

@xiaohuoni
Copy link
Member

好的

@dohooo
Copy link
Contributor Author

dohooo commented Jul 29, 2020

好的

我的意思是我怎么给你复现这个问题,他确实是编译了的,构建速度很慢很慢,或者换个问题umi2可以怎么加快构建速度? sry 我上面的问题可能问得并不准确

@sorrycc
Copy link
Member

sorrycc commented Jul 29, 2020

umi 2 默认不编译 node_modules。

@appzk
Copy link

appzk commented Jan 21, 2021

● Webpack █████████████████████████ building (69%) 1776/1777 modules 1 active
node_modules/_is-plain-obj@1.1.0@is-plain-obj/index.js

Starting the development server..

image

<--- Last few GCs --->

[7187:0x10287c000]    84315 ms: Scavenge 1375.8 (1422.2) -> 1375.2 (1422.7) MB, 4.8 / 0.0 ms  (average mu = 0.208, current mu = 0.237) allocation failure
[7187:0x10287c000]    84322 ms: Scavenge 1376.0 (1422.7) -> 1375.5 (1423.2) MB, 5.5 / 0.0 ms  (average mu = 0.208, current mu = 0.237) allocation failure
[7187:0x10287c000]    84331 ms: Scavenge 1376.1 (1423.2) -> 1375.6 (1424.2) MB, 6.1 / 0.0 ms  (average mu = 0.208, current mu = 0.237) allocation failure


<--- JS stacktrace --->

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

No branches or pull requests

4 participants