fix watch-mode batching
This commit is contained in:
		@@ -2,7 +2,7 @@ import { QuartzFilterPlugin } from "../types"
 | 
			
		||||
 | 
			
		||||
export const RemoveDrafts: QuartzFilterPlugin<{}> = () => ({
 | 
			
		||||
  name: "RemoveDrafts",
 | 
			
		||||
  shouldPublish([_tree, vfile]) {
 | 
			
		||||
  shouldPublish(_ctx, [_tree, vfile]) {
 | 
			
		||||
    const draftFlag: boolean = vfile.data?.frontmatter?.draft ?? false
 | 
			
		||||
    return !draftFlag
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ import { QuartzFilterPlugin } from "../types"
 | 
			
		||||
 | 
			
		||||
export const ExplicitPublish: QuartzFilterPlugin = () => ({
 | 
			
		||||
  name: "ExplicitPublish",
 | 
			
		||||
  shouldPublish([_tree, vfile]) {
 | 
			
		||||
  shouldPublish(_ctx, [_tree, vfile]) {
 | 
			
		||||
    const publishFlag: boolean = vfile.data?.frontmatter?.publish ?? false
 | 
			
		||||
    return publishFlag
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user