Skip to content

Commit

Permalink
fix(compiler): point crypto import at crypto instead of node:crypto
Browse files Browse the repository at this point in the history
This fixes an issue where this couldn't be resolved in some cases.

fixes #5358
  • Loading branch information
alicewriteswrongs committed Feb 15, 2024
1 parent 7dbdef6 commit fa57cc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/transformers/automatic-key-insertion/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createHash } from 'node:crypto';

import { createHash } from 'crypto';
import ts from 'typescript';

/**
Expand Down

0 comments on commit fa57cc8

Please sign in to comment.