Skip to content

Commit

Permalink
fix: dev tools build error in node 14 (#4642)
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Sep 14, 2023
1 parent 20514b9 commit 29c75d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/mount/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineConfig<'rspack'>({
insert: function insert(element) {
const key = `__DEVTOOLS_STYLE_${process.env.DEVTOOLS_MARK}`;
// @ts-expect-error
window[key] ||= [];
window[key] = window[key] || [];
// @ts-expect-error
window[key].push(element);
},
Expand Down

0 comments on commit 29c75d7

Please sign in to comment.