putaozhenhaochi
0.01D
V2EX  ›  Node.js

前端项目动不动几万个包有啥解决方案吗

  •  
  •   putaozhenhaochi · May 13, 2020 · 6861 views
    This topic created in 2223 days ago, the information mentioned may be changed or developed.
    记得已经发生过 2 次灾难了吧。
    8 replies    2020-06-09 02:05:49 +08:00
    ragnaroks
        1
    ragnaroks  
       May 13, 2020   ❤️ 1
    vanilla.js
    sofm
        2
    sofm  
       May 13, 2020
    mywaiting
        3
    mywaiting  
       May 13, 2020
    等 Deno 来拯救 nodejs 的哪天到来???
    cmostuor
        4
    cmostuor  
       May 13, 2020   ❤️ 1
    @sofm 生动形象,nodejs 的项目没 npm install 前几 m 不到一旦执行命令后少则几百 m 多则上 g,互相之间的依赖关系简直比 Linux 系统安装软件还可怕。
    SilentDepth
        5
    SilentDepth  
       May 14, 2020
    没啥解决方案,要么动手一个个去掉,要么接受它
    SilentDepth
        6
    SilentDepth  
       May 14, 2020
    @mywaiting #3 Deno 解决不了这个问题
    mywaiting
        7
    mywaiting  
       May 14, 2020
    @SilentDepth 从代码的本质看来,deno 确实没有解决,毕竟要用到某个函数某个模块,肯定要从什么地方导入进来或者复制进来的

    但是,deno 里面你至少不用看到那个令人怀疑人生的 node_modules 的目录了~
    xcstream
        8
    xcstream  
       Jun 9, 2020
    什么项目会怎么复杂
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 14:41 · PVG 22:41 · LAX 07:41 · JFK 10:41
    ♥ Do have faith in what you're doing.