Skip to content

Commit

Permalink
Convert a few default imports to named.
Browse files Browse the repository at this point in the history
This should prevent Rollup from generating unnecessary code like

  var invariant__default = /*#__PURE__*/_interopDefaultLegacy(invariant);
  • Loading branch information
benjamn committed Jun 1, 2021
1 parent ea14462 commit 4df3402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cache/inmemory/entityStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dep, OptimisticDependencyFunction } from 'optimism';
import invariant from 'ts-invariant';
import { invariant } from 'ts-invariant';
import { equal } from '@wry/equality';
import { Trie } from '@wry/trie';

Expand Down
2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ setVerbosity("log");
// then re-exporting them separately, helps keeps bundlers happy without any
// additional config changes.
export {
default as gql,
gql,
resetCaches,
disableFragmentWarnings,
enableExperimentalFragmentVariables,
Expand Down

0 comments on commit 4df3402

Please sign in to comment.