Skip to content

Conversation

@fireairforce
Copy link
Contributor

@fireairforce fireairforce commented Oct 13, 2025

Summary

prev pr:

closes: #2244

publicPath 支持 runtime 配置:

output: {
  publicPath: 'runtime'
}

配置之后使用运行时注入的 window.publicPath 值。

同时还有一些额外的修改:

  • 移除 umd 运行时代码中关于 CHUNK_BASE_PATH 的处理逻辑,umd 不涉及到 chunk 拆分,这部分代码没作用(目前默认传值也是 None)
  • compat webpack 模式支持 pulicPath 配置的转换

Test Plan

参考快照测试 public_path/runtime

@fireairforce fireairforce marked this pull request as ready for review October 13, 2025 16:47
@fireairforce fireairforce merged commit 2b5cf02 into next Oct 14, 2025
17 checks passed
@fireairforce fireairforce deleted the feat-2244 branch October 14, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Utoopack]: publicPath 支持 runtime 模式

3 participants