🎥 Make videos programmatically with React
fix + simplification
Jonny Burger9112352ab745
diff --git a/packages/bundler/src/hot-middleware/index.tsx b/packages/bundler/src/hot-middleware/index.tsxindex dbe9b20278..88131f3b2b 100644--- a/packages/bundler/src/hot-middleware/index.tsx+++ b/packages/bundler/src/hot-middleware/index.tsx@@ -30,8 +30,8 @@ export const webpackHotMiddleware = (compiler: webpack.Compiler) => {let latestStats: webpack.Stats | null = null;let closed = false;- compiler.hooks.invalid.tap('webpack-hot-middleware', onInvalid);- compiler.hooks.done.tap('webpack-hot-middleware', onDone);+ compiler.hooks.invalid.tap('remotion', onInvalid);+ compiler.hooks.done.tap('remotion', onDone);function onInvalid() {if (closed) return;@@ -165,14 +165,7 @@ function publishStats(}if (log) {- log(- 'webpack built ' +- (name ? name + ' ' : '') +- _stats.hash +- ' in ' +- _stats.time +- 'ms'- );+ log(`webpack built in ${_stats.time}ms`);}eventStream?.publish({diff --git a/packages/bundler/src/serve-static.ts b/packages/bundler/src/serve-static.tsindex 8793fc4e7f..df7d7b9927 100644--- a/packages/bundler/src/serve-static.ts+++ b/packages/bundler/src/serve-static.ts@@ -37,7 +37,7 @@ export const serveStatic = async function ());- if (isPathInside(path, root)) {+ if (!isPathInside(path, root)) {res.writeHead(500);res.write('Not allowed to read');res.end();