-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Errors when bundling for ES5 browser #1989
Comments
We have the same problem. Upgrading from 4 to 5 is not so simple due to the addition the |
Thanks for reporting, we will change this, our |
Yes you should configure node_modules/@sentry for transpilation, you shouldbe aable to configure it like this (I'm not sure if include is correct): test: {
exclude: /node_modules/,
include: [/node_modules\/@sentry/]
} If you already have babel configured this should be easy |
I think webpack prefers es2015 by default anyway, maybe it should be documented better |
I think that this approach is not scalable because we have to maintain the list of the packages that we need to transpile manually 🤔 |
yeah, I agree with @vkrol it's not practical, so we will switch to ship with It just seems so odd to me to have |
Somewhat related: |
I do the opposite, I blacklist packages which do not work, in general I would say 95% of packages work if you transpile them |
I have the same problem, but when I transpile it I have another problem, it throw another error: |
Package + Version
@sentry/browser
Version:
Description
Hi,
I'm not sure if my issue is a duplicate of #1984 and #1979.
I'm using webpack to bundle my application. After running webpack in 'production' mode, i get a bundle with some ES6 keywords ('const', 'class'... and hence i'm targetting ES5 browsers). It worked in 5.0.0; i think my issue is due to this commit.
According the webpack documentation and this webpack issue, webpack uses the "browser".
I guess (not tried) i can add some specific webpack/babel settings for sentry, but i'm not very confortable with this.
Any advice?
Regards
The text was updated successfully, but these errors were encountered: