From 72d4df5cce39ddd1be4fbc6c796e2b63278e59a6 Mon Sep 17 00:00:00 2001 From: Dawid Kopys Date: Mon, 15 Jan 2024 10:09:42 +0100 Subject: [PATCH] fix: import serializeJs using default import instead of a namespace import (#1485) Co-authored-by: Dawid Kopys --- packages/vue-apollo-ssr/src/index.ts | 2 +- packages/vue-apollo-ssr/tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vue-apollo-ssr/src/index.ts b/packages/vue-apollo-ssr/src/index.ts index 65f836a2..b0ad171f 100644 --- a/packages/vue-apollo-ssr/src/index.ts +++ b/packages/vue-apollo-ssr/src/index.ts @@ -1,4 +1,4 @@ -import * as serializeJs from 'serialize-javascript' +import serializeJs from 'serialize-javascript' import { ApolloClient } from '@apollo/client/core/index.js' export type ApolloClients = { [key: string]: ApolloClient } diff --git a/packages/vue-apollo-ssr/tsconfig.json b/packages/vue-apollo-ssr/tsconfig.json index 539c369b..c4e01253 100644 --- a/packages/vue-apollo-ssr/tsconfig.json +++ b/packages/vue-apollo-ssr/tsconfig.json @@ -5,7 +5,8 @@ "moduleResolution": "node", "sourceMap": true, "skipLibCheck": true, - "strict": true + "strict": true, + "esModuleInterop": true }, "include": [ "src/**/*"