Comments (14)
我们有一个项目加了自定义的 webpack 插件。以下是比对情况:
[email protected]
[email protected]
from blog.
已升级~赞一个
from blog.
迫不及待了
from blog.
有些插件和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.
webpack 5 的 lazy compilation 在哪里有提到,在webpack官网没找到相关的信息
from blog.
@duan602728596 已内置处理了额外插件的 webpack 依赖问题,提 issue 给复现,我排查下具体原因吧。
from blog.
@zhangchao828 webpack github 上的 release notes 里找找。
from blog.
@duan602728596 已内置处理了额外插件的 webpack 依赖问题,提 issue 给复现,我排查下具体原因吧。
https://github.com/duan602728596/umi-3.4-demo
worker-loader里面使用了webpack的插件,启动会导致问题
from blog.
@zhangchao828 webpack github 上的 release notes 里找找。
找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的
from blog.
请问,umi@3啥时候可以支持私有区块的接入
from blog.
@MengShaofei 区块使用效果不佳,功能已暂停,短期不会投入开发。
from blog.
@zhangchao828 webpack github 上的 release notes 里找找。
找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的
同遇到这个问题,有没有解决方案
from blog.
from blog.
@zhangchao828 webpack github 上的 release notes 里找找。
找到了,自己实验了一下,发现首次打开浏览器,一片空白,得手动刷新一次才行,之后就好了,hmr是正常的
同遇到这个问题,有没有解决方案
现在不知道怎么样了,当时记得这个配置有个entries选项设置为false就好了,另外devServer估计也要升级到新的
from blog.
Related Issues (20)
- umi 打包报错
- 请问roadhog想要加prerender-spa-plugin要怎么加?
- 汇总:react-router、history 更新引起的相关问题及解决方案 HOT 1
- 装了啥 2019 版 HOT 22
- webpack配置到底用 .webpackrc.js 还是 webpack.config.js
- 《蚂蚁金服的前端框架和工程化实践》文字稿 HOT 47
- Hello! Umi UI HOT 83
- Umi UI 二期来了(区块和模板、Mini 气泡、编译态同步、build 和 dev 分析等) HOT 55
- 赞 学习一波
- 一个月过去后,Umi UI 怎么样了 HOT 21
- 《蚂蚁前端研发最佳实践》文字稿 HOT 29
- 为什么没用了libraryTarget,现在没办法做成组件给别人用了
- 发布 UMI 3,插件化的企业级前端应用框架 HOT 10
- Umi 3.1,支持 mpa,编译大幅提速,两种 node_modules 编译方式,优化 defineConfig 的 TypeScript 体验 HOT 32
- 在umi 的项目中无法使用redux-modal
- Failed to minify the bundle. Error: index.6d841c69.js from UglifyJs
- 大佬,ppt地址无法访问了 HOT 1
- 请问下umi中COMPRESS不是批处理文件,这个需要怎么解决 HOT 1
- ,,,,,,bb bvvbb cvm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.