Skip to content

Commit

Permalink
Fix ESM module import to use dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jun 25, 2024
1 parent 345c24c commit 98f35d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/snaps-utils/src/eval-worker.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// eslint-disable-next-line import/no-unassigned-import
import 'ses/lockdown';

import { readFileSync } from 'fs';

import type { HandlerType } from './handler-types';
import { SNAP_EXPORT_NAMES } from './handler-types';
import { generateMockEndowments } from './mock';

declare let lockdown: any, Compartment: any;
import('ses/lockdown');

lockdown({
consoleTaming: 'unsafe',
Expand Down

0 comments on commit 98f35d6

Please sign in to comment.