Skip to content

Commit 6289d31

Browse files
authored
fix(core): remove duplicate addRuntimeExports hook in @modern-js/core (#3697)
* fix: remove duplicate addRuntimeExports in @modern-js/core * docs: change changeset
1 parent 5f055ab commit 6289d31

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/quick-rocks-tell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@modern-js/core': patch
3+
---
4+
5+
fix: remove duplicate addRuntimeExports hook in @modern-js/core
6+
fix: 删除 @modern-js/core 中重复的 addRuntimeExports hook

packages/cli/core/src/createCli.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ export const createCli = () => {
128128
ConfigContext.set(loaded.config);
129129
ResolvedConfigContext.set(resolved);
130130

131-
await hooksRunner.addRuntimeExports();
132-
133131
await hooksRunner.prepare();
134132

135133
await hooksRunner.afterPrepare();

0 commit comments

Comments
 (0)