diff --git a/.changeset/tidy-doors-judge.md b/.changeset/tidy-doors-judge.md new file mode 100644 index 00000000000..e0a7ae2d014 --- /dev/null +++ b/.changeset/tidy-doors-judge.md @@ -0,0 +1,5 @@ +--- +"@remix-run/dev": patch +--- + +Log errors thrown during initial build in development. diff --git a/packages/remix-dev/compiler/watch.ts b/packages/remix-dev/compiler/watch.ts index 3700e4e286a..f8bad392d21 100644 --- a/packages/remix-dev/compiler/watch.ts +++ b/packages/remix-dev/compiler/watch.ts @@ -61,7 +61,7 @@ export async function watch( let compiler = createRemixCompiler(config, options); // initial build - await compile(compiler); + await compile(compiler, { onCompileFailure }); onInitialBuild?.(Date.now() - start); let restart = debounce(async () => { @@ -77,7 +77,7 @@ export async function watch( } compiler = createRemixCompiler(config, options); - let assetsManifest = await compile(compiler); + let assetsManifest = await compile(compiler, { onCompileFailure }); onRebuildFinish?.(Date.now() - start, assetsManifest); }, 500);