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
[v2.0.0] Change writeBundle signature to match generateBundle #3361
Conversation
Codecov Report
@@ Coverage Diff @@
## release-2.0.0 #3361 +/- ##
==============================================
Coverage 94.07% 94.07%
==============================================
Files 174 174
Lines 5977 5977
Branches 1768 1768
==============================================
Hits 5623 5623
Misses 191 191
Partials 163 163
Continue to review full report at Codecov.
|
This would absolutely be useful to us! Currently we obtain output options in generate bundle in one plugin but act on them in writeBundle — which works because in this case there’s only one output, but I suspect it would imply a race condition if we did have more than one output. |
771189e
to
cfdc86b
Compare
f4bacc3
to
115a001
Compare
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Resolves #2717
Description
This is one of the few truly breaking changes in this release as there is no two-step deprecation; but to be honest, I could not think of another good name for this hook and well, writing a downward compatible plugin is not that difficult because you can do this:
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.