diff --git a/app/components/OutputContainer.vue b/app/components/OutputContainer.vue
index 40b753c..58001fd 100644
--- a/app/components/OutputContainer.vue
+++ b/app/components/OutputContainer.vue
@@ -166,6 +166,20 @@ watch(error, (newError) => {
bundlerError.value = newError
})
+const napiWorkerError = ref<{
+ message?: string
+ stack?: string
+} | null>(null)
+useEventListener(globalThis, 'napi-rs-worker-error', (event: CustomEvent) => {
+ napiWorkerError.value = event.detail
+})
+
+watch(status, (newStatus) => {
+ if (newStatus === 'pending') {
+ napiWorkerError.value = null
+ }
+})
+
const isLoading = computed(() => status.value === 'pending')
const isLoadingDebounced = useDebounce(isLoading, 100)
@@ -233,6 +247,26 @@ const sourcemapLinks = computed(() => {