Skip to content

🎥 Make videos programmatically with React

unexport

Jonny Burger1273f9b702f4
diff --git a/packages/bundler/src/dev-middleware/index.ts b/packages/bundler/src/dev-middleware/index.ts
index b8da036dba..e41c5e2d97 100644
--- a/packages/bundler/src/dev-middleware/index.ts
+++ b/packages/bundler/src/dev-middleware/index.ts
@@ -4,8 +4,6 @@ import {setupHooks} from './setup-hooks';
import {setupOutputFileSystem} from './setup-output-filesystem';
import {DevMiddlewareContext} from './types';
-const noop = () => undefined;
-
export const wdm = (compiler: webpack.Compiler): MiddleWare => {
const context: DevMiddlewareContext = {
state: false,
diff --git a/packages/bundler/src/homepage/homepage.tsx b/packages/bundler/src/homepage/homepage.tsx
index 6ecd433d5c..4422d4f631 100644
--- a/packages/bundler/src/homepage/homepage.tsx
+++ b/packages/bundler/src/homepage/homepage.tsx
@@ -23,7 +23,7 @@ const pre: React.CSSProperties = {
overflowX: 'auto',
};
-export const AvailableCompositions: React.FC = () => {
+const AvailableCompositions: React.FC = () => {
const [comps, setComps] = useState<TCompMetadata[] | null>(null);
useEffect(() => {
diff --git a/packages/bundler/src/routes.ts b/packages/bundler/src/routes.ts
index bd81bd7869..6cf558fd9c 100644
--- a/packages/bundler/src/routes.ts
+++ b/packages/bundler/src/routes.ts
@@ -14,10 +14,7 @@ import {serveStatic} from './serve-static';
import {indexHtml} from './static-preview';
import {isUpdateAvailableWithTimeout} from './update-available';
-export const handleUpdate = async (
- _: IncomingMessage,
- response: ServerResponse
-) => {
+const handleUpdate = async (_: IncomingMessage, response: ServerResponse) => {
const data = await isUpdateAvailableWithTimeout();
response.setHeader('content-type', 'application/json');
response.writeHead(200);
@@ -26,7 +23,7 @@ export const handleUpdate = async (
const editorGuess = guessEditor();
-export const handleFallback = async (
+const handleFallback = async (
hash: string,
_: IncomingMessage,
response: ServerResponse
@@ -39,7 +36,7 @@ export const handleFallback = async (
response.end(indexHtml(hash, '/', displayName));
};
-export const handleProjectInfo = async (
+const handleProjectInfo = async (
_: IncomingMessage,
response: ServerResponse
) => {
@@ -49,7 +46,7 @@ export const handleProjectInfo = async (
response.end(JSON.stringify(data));
};
-export const handleFileSource = async (
+const handleFileSource = async (
search: string,
_: IncomingMessage,
response: ServerResponse
@@ -70,7 +67,7 @@ export const handleFileSource = async (
return response.end();
};
-export const handleOpenInEditor = async (
+const handleOpenInEditor = async (
req: IncomingMessage,
res: ServerResponse
) => {
@@ -118,7 +115,7 @@ export const handleOpenInEditor = async (
}
};
-export const handleFavicon = (_: IncomingMessage, response: ServerResponse) => {
+const handleFavicon = (_: IncomingMessage, response: ServerResponse) => {
const filePath = path.join(__dirname, '..', 'web', 'favicon.png');
const stat = statSync(filePath);