Skip to content

feat: 🎸 Allow any rollup hook instead of generateBundle#11

Open
GerkinDev wants to merge 1 commit into
audinue:masterfrom
GerkinDev:feature/custom-hooks
Open

feat: 🎸 Allow any rollup hook instead of generateBundle#11
GerkinDev wants to merge 1 commit into
audinue:masterfrom
GerkinDev:feature/custom-hooks

Conversation

@GerkinDev

Copy link
Copy Markdown

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
Comment thread index.js
return
}

if ((sync !== undefined) && (sync == true)) {

Copy link
Copy Markdown
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

idmadj commented Jan 11, 2020

Copy link
Copy Markdown

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