-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(templates): 更新依赖,以解决 @pmmmwh/react-refresh-webpack-plugin 更新导致的 require is not defined 异常 #15113
Open
weizs
wants to merge
16
commits into
NervJS:main
Choose a base branch
from
weizs:feat/upgrade-webpack
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…equire is not defined 异常 @pmmmwh/react-refresh-webpack-plugin 在 0.5.11 版本升级中应用了 webpack 5.85.0 在 loader context 新增的 environment 属性(之前版本不存在),导致默认模板初始化的项目在引入依赖包含“.mjs 或 package.json 中 type 为 module”时,报 require is not defined。经验证 webpack 5.89.0 与现有依赖无冲突,故升级为最新版,同时锁定 @pmmmwh/react-refresh-webpack-plugin 版本
16 similar comments
* feat(runtime): 整理 h5 运行时入口 * test: update snapshot * feat(runtime): 整理 h5 运行时入口 * feat(components): 移除适配组件库 weui 依赖 * feat(h5): 调整运行时依赖 polyfill 方案 chore(release): publish 3.6.22-nightly.1 --tag=nightly fix(deps): update devDeps for pnpm workspace chore(release): publish 3.6.22-nightly.2 --tag=nightly --force chore(release): publish 3.6.22-nightly.3 --tag=nightly * feat(h5): 合并 tslib 依赖 chore(release): publish 3.6.22-nightly.5 --tag=nightly * feat(runtime): 抽离 web 端公共方案 chore(release): publish 3.6.22-nightly.6 --tag=nightly chore(release): publish 3.6.22-nightly.7 --tag=nightly --access=public * feat: add intersection-observer license * fix(h5): rm useless deps * fix(h5): 补充 Android 4.4 与 iOS 9.3 依赖语法 polyfill chore(release): publish 3.6.22-nightly.8 --tag=nightly
* 获取scrollTop报错处理 * 获取scrollTop报错处理 --------- Co-authored-by: qnnp <[email protected]> Co-authored-by: chenjiajian <[email protected]>
xuanzebin
force-pushed
the
4.x
branch
2 times, most recently
from
April 29, 2024 13:40
ab5038c
to
5928b26
Compare
This was referenced May 4, 2024
ZEJIA-LIU
force-pushed
the
4.x
branch
2 times, most recently
from
July 12, 2024 12:52
39395da
to
a7fcf67
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
这个 PR 做了什么? (简要描述所做更改)
@pmmmwh/react-refresh-webpack-plugin 在 0.5.11 版本升级中应用了 webpack 5.85.0 在 loader context 新增的 environment 属性(之前版本不存在),导致默认模板初始化的项目在引入依赖包含“.mjs 或 package.json 中 type 为 module”时,报 require is not defined。经验证 webpack 5.89.0 与现有依赖无冲突,故升级为最新版,同时锁定 @pmmmwh/react-refresh-webpack-plugin 版本。
之前只改一个文件,直接在本地 main 分支调整了,重新拉了分支解决冲突
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: