Skip to content

Commit

Permalink
fix: add proper rollup config for superjson (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianOsipiuk committed Oct 4, 2022
1 parent 1bb13e2 commit 923c740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
'@tanstack/react-query': 'ReactQuery',
'@tanstack/match-sorter-utils': 'MatchSorterUtils',
'use-sync-external-store/shim/index.js': 'UseSyncExternalStore',
"superjson": 'SuperJson',
},
bundleUMDGlobals: [
'@tanstack/match-sorter-utils',
'use-sync-external-store/shim/index.js',
"superjson",
],
}),
...buildConfigs({
Expand All @@ -138,6 +140,7 @@ export default function rollup(options: RollupOptions): RollupOptions[] {
'@tanstack/react-query': 'ReactQuery',
'@tanstack/match-sorter-utils': 'MatchSorterUtils',
'use-sync-external-store/shim/index.js': 'UseSyncExternalStore',
"superjson": 'SuperJson',
},
forceDevEnv: true,
forceBundle: true,
Expand Down

0 comments on commit 923c740

Please sign in to comment.