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

Re-enable advanced optimizations and add binary/ tests for CommonJS #146

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

dibenede
Copy link
Contributor

No description provided.

@dibenede dibenede self-assigned this Oct 14, 2022

function enableSimpleOptimizations(cb) {
compilationLevel = 'SIMPLE';
cb();
Copy link
Contributor

Choose a reason for hiding this comment

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

reset after callback

@@ -49,16 +49,19 @@ goog.provide('jspb.arith.UInt64');
* @param {number} lo The low 32 bits.
* @param {number} hi The high 32 bits.
* @constructor
* @export
Copy link
Contributor

Choose a reason for hiding this comment

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

this is an example of something that is only being exported for tests

can you open an issue to look into removing export from APIs like this to improve size and just note that this will require a test refactoring.

@dibenede dibenede merged commit 3ff6090 into protocolbuffers:main Oct 14, 2022
@dibenede dibenede deleted the commonjs-tests branch October 14, 2022 22:22
gbl08ma added a commit to tnyim/jungletv that referenced this pull request Jul 29, 2023
This is so we get the bundle size optimizations the official package still hasn't cut in a release, after almost one year: protocolbuffers/protobuf-javascript#146

(and yes I was too lazy to get it to compile so I wouldn't depend on a sketchy fork)
(the sketchy fork is used in TRON cryptocurrency stuff too, we should be fine, cough cough)
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.

None yet

2 participants