File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,7 @@ npm i rsbuild-plugin-console-debug -D
1515// rsbuild.config.ts
1616import { pluginConsoleDebug } from ' rsbuild-plugin-console-debug' ;
1717
18- // install launch-editor-middleware
19- import launchEditorMiddleware from ' launch-editor-middleware' ;
20-
2118export default defineConfig ({
22- dev: {
23- setupMiddlewares: [
24- ({ unshift }, server ) => {
25- unshift ((req , res , next ) => {
26- if (req .url .startsWith (' /__open-in-editor' )) {
27- launchEditorMiddleware ()(req , res , next );
28- return ;
29- }
30-
31- next ();
32- });
33- },
34- ],
35- },
36-
3719 plugins: [
3820 pluginConsoleDebug (),
3921 ],
@@ -48,8 +30,6 @@ Example: [`playground/`](./playground/)
4830
4931- [ Rsbuild] ( https://rsbuild.dev/ )
5032
51- - [ launch-editor] ( https://github.com/yyx990803/launch-editor )
52-
5333## Demo
5434
5535![ demo] ( ./assets/demo.png )
You can’t perform that action at this time.
0 commit comments