File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const refreshContentRE = /\$RefreshReg\$\(/
66// NOTE: this is exposed publicly via plugin-react
77export const preambleCode = `import { injectIntoGlobalHook } from "__BASE__${ runtimePublicPath . slice (
88 1 ,
9- ) } "
9+ ) } ";
1010injectIntoGlobalHook(window);
1111window.$RefreshReg$ = () => {};
1212window.$RefreshSig$ = () => (type) => type;`
Original file line number Diff line number Diff line change 22
33## Unreleased
44
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+
59## 0.2.0 (2025-05-23)
610
711### 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 22
33## Unreleased
44
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+
59## 3.10.0 (2025-05-23)
610
711### 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 22
33## Unreleased
44
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+
59## 4.5.0 (2025-05-23)
610
711### 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