Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Jan 31, 2025
1 parent 79469e4 commit 006bb63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/watch/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const updateError = (filename: string, error: Error) => {
// Needs to run first, to create output folder
await watchFiles(updateStart, updateEnd, updateError);

watchCss(updateStart, updateEnd, updateError);

// Schema is needed for JS bunlde, and watchJsonSchema is async
watchJsonSchema(updateStart, updateEnd, updateError).then(() => {
watchJs(updateStart, updateEnd, updateError);
});
await watchJsonSchema(updateStart, updateEnd, updateError);

watchCss(updateStart, updateEnd, updateError);
watchJs(updateStart, updateEnd, updateError);
3 changes: 3 additions & 0 deletions tools/watch/watchCss.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import path from "node:path";
import { Worker } from "node:worker_threads";

// This import is needed for https://github.com/parcel-bundler/lightningcss/issues/892
import "lightningcss";

export const watchCss = async (
updateStart: (filename: string) => void,
updateEnd: (filename: string) => void,
Expand Down

0 comments on commit 006bb63

Please sign in to comment.