Skip to content

@orpc/tanstack-query's dist output is importing from itself #621

@V1RE

Description

@V1RE

As you can see here, unbuild is bundling in a way where @orpc/tanstack-query is importing from itself.

// dist/index.mjs
import { generateOperationKey as generateOperationKey$1 } from '@orpc/tanstack-query';
import { isAsyncIteratorObject, toArray } from '@orpc/shared';
import { skipToken, experimental_streamedQuery } from '@tanstack/query-core';

function createGeneralUtils(path) {
  return {
    key(options) {
      return generateOperationKey$1(path, options);
    }
  };
}

This was giving me some issues in a react-native project, since the metro bundler seems to have some trouble with stuff like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions