Skip to content

Commit 10fd6b2

Browse files
committed
Add TS compiler flag to allow import of localforage
1 parent 3146924 commit 10fd6b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/integrations/src/offline.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
22
import { getGlobalObject, logger, uuid4 } from '@sentry/utils';
3-
// @ts-ignore
4-
import localforage = require('localforage');
3+
import localforage from 'localforage';
54

65
/**
76
* cache offline errors and send when connected

packages/integrations/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src/**/*.ts", "test/**/*.ts"],
44
"exclude": ["dist"],
55
"compilerOptions": {
6+
"esModuleInterop": true,
67
"declarationMap": false,
78
"rootDir": ".",
89
"types": ["node", "jest"]

0 commit comments

Comments
 (0)