feat: support HMR for class components #569
Annotations
2 errors and 1 notice
[chromium] › playground/class-components/__tests__/class-components.spec.ts:4:1 › Class component HMR:
playground/utils.ts#L55
1) [chromium] › playground/class-components/__tests__/class-components.spec.ts:4:1 › Class component HMR
Error: 'App mounted' not found in src/index.tsx
at playground/utils.ts:55
53 | for (let [search, replace] of replacements) {
54 | if (!content.includes(search)) {
> 55 | throw new Error(`'${search}' not found in ${name}`);
| ^
56 | }
57 | content = content.replace(search, replace);
58 | }
at editFile (/home/runner/work/vite-plugin-react-swc/vite-plugin-react-swc/playground/utils.ts:55:17)
at /home/runner/work/vite-plugin-react-swc/vite-plugin-react-swc/playground/class-components/__tests__/class-components.spec.ts:19:3
|
ci
Process completed with exit code 1.
|
🎭 Playwright Run Summary
1 failed
[chromium] › playground/class-components/__tests__/class-components.spec.ts:4:1 › Class component HMR
18 passed (17.9s)
|