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

Allow using package without supporting esnext #462

Open
UgurGumushan opened this issue Jan 29, 2024 · 1 comment
Open

Allow using package without supporting esnext #462

UgurGumushan opened this issue Jan 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@UgurGumushan
Copy link

I couldn't use the most recent version of this package without supporting esnext on my project.
Can you build this package by targeting an ES/JS version which is widely supported?

`ERROR in ./node_modules/apollo-link-sentry/lib-esm/excludeGraphQLFetch.js 3:36
Module parse failed: Unexpected token (3:36)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export const excludeGraphQLFetch = (breadcrumb) => {
| if (breadcrumb.category === 'fetch') {

    const url = breadcrumb.data?.url ?? '';

| if (url.includes('/graphql')) {
| return null;

ERROR in ./node_modules/apollo-link-sentry/lib-esm/SentryLink.js 7:11
Module parse failed: Unexpected token (7:11)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import { attachBreadcrumbToSentry, setFingerprint, setTransaction, } from './sentry';
| export class SentryLink extends ApolloLink {

options;

| constructor(options = {}) {
| super();`

@spawnia
Copy link
Collaborator

spawnia commented Sep 6, 2024

Feel free to contribute a pull request that changes this. I have no issue with it myself, so I am not looking to do anything about it.

@spawnia spawnia added the enhancement New feature or request label Sep 6, 2024
@spawnia spawnia changed the title Can't use package without supporting esnext Allow using package without supporting esnext Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants