Skip to content

Conversation

GerkinDev
Copy link

sync parameter was replaced with an option object, allowing sync &
hooks properties.

BREAKING CHANGE: Deprecated sync truthy/falsy 2nd parameter. Use options.sync
instead.

Closes: #3

There are a lot of diffs, and a lot of them being just stuff moved or re-indented. The core logic remains the same.

`sync` parameter was replaced with an option object, allowing `sync` &
`hooks` properties.

BREAKING CHANGE: Deprecated `sync` truthy/falsy 2nd parameter. Use `options.sync`
instead.

Closes: audinue#3
return
}

if ((sync !== undefined) && (sync == true)) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sync !== undefined && sync == true is redundant, since it can't be both truthy & not undefined.

@idmadj
Copy link

idmadj commented Jan 11, 2020

This is a great PR.
@GerkinDev would you consider updating the VALID_HOOKS to include all the hooks (banner, buildEnd, buildStart, footer, intro, load, options, outro, resolveId, resolveImportMeta, transform, watchChange)?
@audinue Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Execute on other hooks
2 participants