Coder Social home page Coder Social logo

Comments (14)

xiaohuoni avatar xiaohuoni commented on June 5, 2024 1

我们有一个项目加了自定义的 webpack 插件。以下是比对情况:
[email protected]
image
[email protected]
image

from blog.

hanwenbo avatar hanwenbo commented on June 5, 2024

已升级~赞一个

from blog.

afc163 avatar afc163 commented on June 5, 2024

迫不及待了

from blog.

duan602728596 avatar duan602728596 commented on June 5, 2024

有些插件和loader引入了webpack的模块(比如monaco-editor-webpack-plugin、worker-loader),
会有The 'compilation' argument must be an instance of Compilation错误。
解决方案是需要将插件从webpack引入改为从@umijs/deps引入,目前我的解决方案是@bbkkbkk/umi-webpack5-export,拿项目试了一下,能编译成功了。

from blog.

zhangchao828 avatar zhangchao828 commented on June 5, 2024

webpack 5 的 lazy compilation 在哪里有提到,在webpack官网没找到相关的信息

from blog.

sorrycc avatar sorrycc commented on June 5, 2024

@duan602728596 已内置处理了额外插件的 webpack 依赖问题,提 issue 给复现,我排查下具体原因吧。

from blog.

sorrycc avatar sorrycc commented on June 5, 2024

@zhangchao828 webpack github 上的 release notes 里找找。

from blog.

duan602728596 avatar duan602728596 commented on June 5, 2024

@duan602728596 已内置处理了额外插件的 webpack 依赖问题,提 issue 给复现,我排查下具体原因吧。

https://github.com/duan602728596/umi-3.4-demo
worker-loader里面使用了webpack的插件,启动会导致问题

from blog.

zhangchao828 avatar zhangchao828 commented on June 5, 2024

@zhangchao828 webpack github 上的 release notes 里找找。

找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的

from blog.

MengShaofei avatar MengShaofei commented on June 5, 2024

请问,umi@3啥时候可以支持私有区块的接入

from blog.

sorrycc avatar sorrycc commented on June 5, 2024

@MengShaofei 区块使用效果不佳,功能已暂停,短期不会投入开发。

from blog.

leeword avatar leeword commented on June 5, 2024

@zhangchao828 webpack github 上的 release notes 里找找。

找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的

同遇到这个问题,有没有解决方案

from blog.

jayguojianhai avatar jayguojianhai commented on June 5, 2024

from blog.

zhangchao828 avatar zhangchao828 commented on June 5, 2024

@zhangchao828 webpack github 上的 release notes 里找找。

找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的

同遇到这个问题,有没有解决方案

现在不知道怎么样了,当时记得这个配置有个entries选项设置为false就好了,另外devServer估计也要升级到新的

from blog.

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.