apollo-link-sentry icon indicating copy to clipboard operation
apollo-link-sentry copied to clipboard

Allow using package without supporting esnext

Open UgurGumushan opened this issue 1 year ago • 1 comments

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();`

UgurGumushan avatar Jan 29 '24 12:01 UgurGumushan