Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sentry JavaScript SDK Version 7.0 #4876
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
Uh oh!
There was an error while loading. Please reload this page.
Sentry JavaScript SDK Version 7.0 #4876
Changes from 1 commit
10fe77ff5013911997ad55f0d7c267bbb65c481f558ed1e9eba4561cebff7195a050eebd509d0729aced0604aeffc6aa54804640dc64ca5ed096b029b1dfdf7f56b0fe6149addcb1bb887e9894bac2d9162e718953027def5a6ca8b42472a075d59b07d4ffd5d38a7e05292b9a9cc61943cb4a1ea09e782ffd78c6f09dd708f50c8052263bb35fed9254e40ee2143253c7faf9fa34914b7c2494b15912aec5ebe9362375c23f8d6ee5f26a592bf5d3e816c349cf57fd9f3253d16600473f43c39d62c7580d811bdfe845d934d4ddb5ed60661cc0e8a1b32e5403d978a67cb07a4581faadeac0ebc2ebd42ec384dbdf555d118257b1b5abe034a35b8d8d52e1484555ace6a51cba8591eae0374a35037d76299aeb3a5c38084176bcb4ca2de287cf8c58145ce9a71cfb9e86fa943a512bc7856952d619372c55003f69028bf9e469447f04d33aefa9b1ebc938ade2822b389f4eeb3fddcdf9791041c5bff0031ffa7dd1fb29b450538e16a699f18a93869e62751130c1c16356cb2df499bd8fc94c00c00fa39553b5c9e89973532b3350361b6add82b41b924e7794f65b6496a119782d69419416a1e210fec9e36028b163788d475b15bd31ac8d36f0b19a9d00904b2d3cb9260f1342c4252af0b194554b3f715933529650c73ee42b46400ff5beee11656d7c48c185db7bf65406536eb6cd718647723d326b3ea05c8d990523982cfe5bfbaad9722dce39b3f6042e96ef4a18401badac128c09ad845346a10bca5030a9092472a473e0ad5c15c341528a4039d25aed4dfa7e3b7ce665e23534f15cac631298bc01a78d73046b6e746774065f797fe9095db44666a6b5933e48ca0a6b4f2888f2b8a917ddaefbd343d478c778d08a8b457b806152e3c5263257f7c71013161d30218af87d9759e27d48711f945437a5a782c306930f5c146db52808c6ebbc9d3dfa5712eb0950aaef9a5d97b9747f31595e30ad297198c2ccc549512d2b36cab18230038f0cb5223e04f5b0919efe80ccdcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
This adds four rollup plugins for use in the new build process: - A plugin which converts all `const`s in the output to `var`s, both after sucrase's code modifications and after those done by rollup itself, to make sure that all instances of `const` are caught. This transformation has two advantages: - It prevents errors arising from the way we redefine `global` (as the return value of `getGlobalObject`), since `var`s can be redeclared where `const`s can't. - It replaces a very common token which is four letters with one which is three letters. Not a huge bundle size savings, but it at least prevents us from going the wrong direction. (Our current builds use `var` because they are ES5, so this puts the new build in line with the current build, number-of-characters-in-variable-specifiers-wise.) - A plugin which strips eslint-style comments and another which reduces multiple consecutive blank lines down to one. Neither of these affects either code behavior or bundle size, but they do make the eventual output a little less messy. One of the odd quirks of sucrase is that it has the goal of never changing the line number of an expression[1], in order that even stacktraces from un-sourcemapped code are meaningful, and this can result in some odd-looking files. These two plugins don't totally undo the oddness, but they're simple and fast and certainly don't hurt readability. - A plugin to be used during our development, which allows you to place a debugger in the rollup hook[2] of your choice. [1] alangpierce/sucrase#452 (comment) [2] https://rollupjs.org/guide/en/#build-hooksUh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing