Skip to content

Commit

Permalink
chore: remove react hot loader
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk committed Jun 5, 2024
1 parent 3c6d2c5 commit 04533c4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 138 deletions.
4 changes: 2 additions & 2 deletions demo/playground/hmr-playground.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import type { RedocRawOptions } from '../../src/services/RedocNormalizedOptions';
import RedocStandalone from './hot';
import { RedocStandalone } from '../../src';

const big = window.location.search.indexOf('big') > -1;
const swagger = window.location.search.indexOf('swagger') > -1;

const userUrl = window.location.search.match(/url=(.*)$/);

const specUrl =
(userUrl && userUrl[1]) || (swagger ? 'openapi.yaml' : big ? 'big-openapi.json' : 'openapi.yaml');
(userUrl && userUrl[1]) || (swagger ? 'museum.yaml' : big ? 'big-openapi.json' : 'museum.yaml');

const options: RedocRawOptions = { nativeScrollbars: false, maxDisplayedEnumValues: 3 };

Expand Down
10 changes: 0 additions & 10 deletions demo/playground/hot.tsx

This file was deleted.

125 changes: 0 additions & 125 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"raf": "^3.4.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-hot-loader": "^4.13.1",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"size-limit": "^8.2.6",
Expand Down

0 comments on commit 04533c4

Please sign in to comment.