-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade dev dependency rollup
to v3
#26665
Comments
to upgrade:
though currently blocked by maxdavidson/rollup-plugin-sourcemaps#127 |
@deyaaeldeen was able to use v3 here: #27258 |
https://rollupjs.org/configuration-options/#output-sourcemap maybe we don't need the plugin anymore? |
This plugin loads the source maps from external dependencies to be included in the bundle using
|
Successful live runs: - [Schema Registry](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3142121&view=results) - [Event Hubs](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3143866&view=results) ### Packages impacted by this PR @Azure/event-hubs ### Issues associated with this PR #26665 ### Describe the problem that is addressed by this PR Move from rollup v2 to v3. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? Node polyfilling is not doing the right thing in Event Hubs for some reason and I had to disable it. In particular, the buffer API was causing bad generated tokens that are used for SAS authentication with the service. My approach is to continue to rely on the inject plugin to inject imports to the polyfill buffer dependency. However, since we disabled node polyfilling for event hubs, we have to do manual polyfilling for all libraries that depend on event hubs which are basically the schema registry serializers. This PR manually polyfills streams used by avsc and suppresses rollup warnings for missing other node builtins since they're not needed in our scenarios. The advantage of this work is that we no longer need custom rollup configurations for Event Hubs or Schema Registry. ### Are there test cases added in this PR? _(If not, why?)_ N/A ### Provide a list of related PRs _(if any)_ N/A ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
[Successful live test](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3150973&view=results) ### Packages impacted by this PR @Azure/service-bus ### Issues associated with this PR #26665 ### Describe the problem that is addressed by this PR Upgrade rollup from v2 to v3 ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? N/A ### Are there test cases added in this PR? _(If not, why?)_ N/A ### Provide a list of related PRs _(if any)_ #27305 ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
This has been addressed. |
Here's a v3 migration guide: https://rollupjs.org/migration/#changed-defaults
It looks that we are not impact by its breaking changes.
The text was updated successfully, but these errors were encountered: