Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit baa6558

Browse files
author
Michal Vlasák
committed
🐛 Require sentry file dynamically
1 parent 526f77e commit baa6558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/streams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as util from 'util';
66
import { loggerNameKey, pkgVersionKey } from '.';
77
import { CosmasOptions, CosmasStream } from './interfaces';
88
import { levels } from './levels';
9-
import { SentryTransformStream } from './sentry';
109
import { StackDriverFormatStream } from './stackdriver';
1110

1211
const pkgJson = JSON.parse(fs.readFileSync(path.resolve(path.join(__dirname, '..', 'package.json')), 'utf8'));
@@ -74,6 +73,7 @@ const initLoggerStreams = (
7473
streams = decorateStreams(streams, getDefaultTransformStream(options));
7574

7675
if (options.sentry) {
76+
const { SentryTransformStream } = require('./sentry');
7777
streams = decorateStreams(streams, SentryTransformStream);
7878
}
7979

0 commit comments

Comments
 (0)