Giter Club home page Giter Club logo

Comments (1)

beanlee avatar beanlee commented on May 20, 2024

.devtool(isDevelopmentEnv() ? "cheap-module-source-map" : "source-map")

在 node v10.22 版本下复现,切换到 node v12+ 以上问题消失。设置成其他可以映射源码的模式都会有内存溢出的问题 xxx-module-source-map

参考文档 https://webpack.docschina.org/configuration/devtool/

目前两种解决方案:

  1. 建议用户升级 node 版本;
  2. 修改 cheap-module-source-map 成其他非源码类的 map;(这种没法起到开发过程中查看映射源码 sourcemap 的作用,不可取
  3. 给 webpack devtool 提 issue 看能否让官方解决,分析下看具体是 node 10 问题,还是 webpack 实现时能否换一个实现方式的问题

from rocketact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.