Skip to content

Commit e951e2b

Browse files
author
Loïc Mangeonjean
committed
clean: remove outdated README instruction
1 parent 8d500be commit e951e2b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,6 @@ There are workarounds for both:
8282
}
8383
}
8484
```
85-
- we can serialize and eval the code to prevent vite from touching it:
86-
```typescript
87-
{
88-
plugins: [{
89-
// prevent vite from trying to inject code into an extension file du to an `import()` in that file
90-
name: 'hack-prevent-transform-javascript',
91-
apply: 'serve',
92-
load (source) {
93-
if (source.includes('tsserver.web.js')) {
94-
return `eval(${JSON.stringify(fs.readFileSync(source).toString('utf-8'))})`
95-
}
96-
}
97-
}]
98-
}
99-
```
10085

10186
### If using Angular and getting `Not allowed to load local resource:` errors
10287

0 commit comments

Comments
 (0)