Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of Rollup 2.x.x #3

Closed
wants to merge 1 commit into from
Closed

Support of Rollup 2.x.x #3

wants to merge 1 commit into from

Conversation

PaulMaly
Copy link

Seems, there's an official way to check which signature of writeBundle used in current Rollup's version. Check this comment:

So you can detect the signature of the hook by checking if the second parameter is used; in that case, it is the bundle, otherwise the first is the bundle.

rollup/rollup#3361 (comment)

Seems, there's an official way to check which signature of `writeBundle` used in current Rollup's version. Check this comment:

```
So you can detect the signature of the hook by checking if the second parameter is used; in that case, it is the bundle, otherwise the first is the bundle.
```
rollup/rollup#3361 (comment)
@PaulMaly
Copy link
Author

@ThomZz Will be very appreciated for fast merge and publish!

@ThomZz
Copy link
Owner

ThomZz commented Oct 16, 2020

Yep, just need to take the time to ensure it is fully compatible.. I hardly see how it can be, as I use the two arguments distinctively.

@PaulMaly
Copy link
Author

I'm not very familiar with rollup plugins, but it’s the way described by maintainer in official PR. So, most likely it should work.

@ThomZz
Copy link
Owner

ThomZz commented Oct 21, 2020

Compatibility issues between rollup v1 and v2 are fixed with : 52e8ff2

Changes has been tested with rollup 1.27.1 and rollup 2.32.1.
Both working with a real life use case.

New version has been push to NPM (1.1.0) (damn, no CI !!).

Regards,

@ThomZz ThomZz closed this Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants