File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const refreshContentRE = /\$RefreshReg\$\(/
6
6
// NOTE: this is exposed publicly via plugin-react
7
7
export const preambleCode = `import { injectIntoGlobalHook } from "__BASE__${ runtimePublicPath . slice (
8
8
1 ,
9
- ) } "
9
+ ) } ";
10
10
injectIntoGlobalHook(window);
11
11
window.$RefreshReg$ = () => {};
12
12
window.$RefreshSig$ = () => (type) => type;`
Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Add explicit semicolon in preambleCode [ #485 ] ( https://github.com/vitejs/vite-plugin-react/pull/485 )
6
+
7
+ This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
8
+
5
9
## 0.2.0 (2025-05-23)
6
10
7
11
### Add ` filter ` for rolldown-vite [ #470 ] ( https://github.com/vitejs/vite-plugin-react/pull/470 )
Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Add explicit semicolon in preambleCode [ #485 ] ( https://github.com/vitejs/vite-plugin-react/pull/485 )
6
+
7
+ This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
8
+
5
9
## 3.10.0 (2025-05-23)
6
10
7
11
### Add ` filter ` for rolldown-vite [ #470 ] ( https://github.com/vitejs/vite-plugin-react/pull/470 )
Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Add explicit semicolon in preambleCode [ #485 ] ( https://github.com/vitejs/vite-plugin-react/pull/485 )
6
+
7
+ This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
8
+
5
9
## 4.5.0 (2025-05-23)
6
10
7
11
### Add ` filter ` for rolldown-vite [ #470 ] ( https://github.com/vitejs/vite-plugin-react/pull/470 )
You can’t perform that action at this time.
0 commit comments