-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Esm build #1779
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
Esm build #1779
Conversation
Signed-off-by: cromefire <[email protected]>
Signed-off-by: cromefire <[email protected]>
Signed-off-by: cromefire <[email protected]>
The |
@kamilogorek Are you okay with me rewriting the imports in the esm modules, so utils can also be esm? |
There are multiple travis errors that don't seem like I caused them and also travis has problems because this is a PR and so certain env variables are not there. |
Signed-off-by: cromefire <[email protected]>
Signed-off-by: cromefire <[email protected]>
I just have to get the rewrite script running under node 6 |
Signed-off-by: cromefire <[email protected]>
Signed-off-by: cromefire <[email protected]>
Signed-off-by: cromefire <[email protected]>
This is ready from my site, but there are still some weird travis errors |
Thanks for this amazing PR 💯 We will test it locally and merge it soon.
Edit: Something that's not necessary but, do you already have some number of how much we size we save using |
I still have to turn off side-effects I remembered, so please wait until I did that. Does any of your files inject something into a global local object, just by importing it?
You can turn off certain builds for 3rd party PRs
Yes I fixed it, I always import things like that, it just took some more effort.
I can calculate that |
If you want I can also do a PR after that to optimize the existing code like introduce es6 classes |
Would love that, like I said before the code changes you did so far look really solid :) |
Signed-off-by: cromefire <[email protected]>
Normal: ESM, but splattered (not bundled): Warning: This values are not very good. |
Signed-off-by: cromefire <[email protected]>
My application shows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work 🙂👍
Hey, sorry for the delay. We did not forget about this but we still need some time to merge this. |
I was thinking about making this more opt in, because right now webpack will automatically choose the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for such a long response time, I was over 4 weeks on a vacations.
The code looks nice and should work just fine. However build process is already complex for us and we had some accidents along the way with it.
We need to write some assertions that the build is actually correct and working as well as some assertions around rewrite script before we merge this.
Also packages/raven-js/dist/raven.js
has to be restored. It's legacy code and it's used by some people directly through services like rawgit etc. (yup, we had reports like this, so let's just keep it there).
@@ -72,6 +72,17 @@ init({ | |||
captureMessage('Hello, world!'); | |||
``` | |||
|
|||
If you want sentry to be customized for the browsers you want to support use the `esm` build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence (and the one below) sounds kinda confusing. I'd reword it somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I didn't come up with a better one, but if you have a better idea
Also I thought some time ago, if the esm should be the default module build ( |
All the build errors are coming from either this being a 3rd party PR or from the node module (which I didn't modify) |
I think you should skip certain builds in 3rd party PRs so the build does not error. To do that:
|
Signed-off-by: cromefire <[email protected]>
@cromefire Thanks for reacting so quickly, could you please just restore the deleted |
Oh my bad obviously there was a problem, I'll look into what went wrong |
Yes I'm sorry, as I already said there had to be some problem, while rolling back |
Signed-off-by: cromefire <[email protected]>
Fixed, it was ignored by the |
Wait, I forgot to put things in |
Signed-off-by: cromefire <[email protected]>
Thanks again, awesome work! |
For size (#1552) and speed in modern browsers
yarn lint
) & (yarn test
).