Skip to content

Commit

Permalink
lazy import dist
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed May 12, 2024
1 parent b60b44e commit 3e60dc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/check-exports.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import * as browser from '@sentry/browser';
import * as renderer from '../esm/renderer/index.js';

import * as node from '@sentry/node';

export default async function () {
// We need to shim electron to avoid errors when importing the main process code into plain-old-node that doesn't have
// the electron module built-in.
await import('./electron-shim.mjs');

const renderer = await import('../esm/renderer/index.js');
const main = await import('../esm/main/index.js');

const browserExports = Object.keys(browser);
Expand Down

0 comments on commit 3e60dc6

Please sign in to comment.