| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a704f77 commit 978351a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -219,7 +219,7 @@ export class ComponentStylesheetBundler { | |||
| 219 | 219 | const filename = secondSemi !== -1 ? entry.slice(secondSemi + 1) : ''; | |
| 220 | 220 | if (filename && normalizedFiles.has(path.normalize(filename))) { | |
| 221 | 221 | this.#inlineContexts.delete(entry); | |
| 222 | - void bundler.dispose(); | ||
| 222 | + void bundler.dispose().catch(() => {}); | ||
| 223 | 223 | } else { | |
| 224 | 224 | bundler.invalidate(normalizedFiles); | |
| 225 | 225 | } | |
@@ -229,10 +229,13 @@ export class ComponentStylesheetBundler { | |||
| 229 | 229 | } | |
| 230 | 230 | ||
| 231 | 231 | collectReferencedFiles(): string[] { | |
| 232 | - const files = []; | ||
| 232 | + const files: string[] = []; | ||
| 233 | 233 | for (const context of this.#fileContexts.values()) { | |
| 234 | 234 | files.push(...context.watchFiles); | |
| 235 | 235 | } | |
| 236 | + for (const context of this.#inlineContexts.values()) { | ||
| 237 | + files.push(...context.watchFiles); | ||
| 238 | + } | ||
| 236 | 239 | ||
| 237 | 240 | return files; | |
| 238 | 241 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments