Skip to content

Allow using package without supporting esnextΒ #462

@UgurGumushan

Description

@UgurGumushan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions