Skip to content

Commit ca37f01

Browse files
committed
chore: changelog
1 parent 3cb799b commit ca37f01

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
See [https://github.com/ice-lab/icestark/releases](https://github.com/ice-lab/icestark/releases) for what has changed in each version of icestark.
44

5+
# 2.8.5
6+
7+
- [feat] support `freezeRuntime` option to freeze the runtime library.
8+
59
# 2.8.4
610

711
- [fix] automatically switch to "fetch" mode when runtime is set.

packages/icestark/src/util/handleAssets.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ export async function fetchScripts(jsList: Asset[], fetch: Fetch = defaultFetch)
353353
const backupCode = `if (${globalLib}) {${backupLib} = ${globalLib};}\n`;
354354
const restoreCode = `if (${backupLib}) {${globalLib} = ${backupLib};${backupLib} = undefined;}\n`;
355355

356-
// 如果启用了冻结功能,添加冻结逻辑
357356
let lockCode = '';
358357
if (globalConfiguration.freezeRuntime) {
359358
lockCode = generateRuntimeLockCode(versionedLibKey);

0 commit comments

Comments
 (0)