swc/tests/fixture/issue-1545/case1/output/index.js
강동윤 46c3d62ebd
fix(swc): Fix bugs (#1560)
spack:
 - Ensure that #1533 is fixed. (#1533) 

swc_ecma_parser:
 - Support `async override` in classes. (#1558)

swc_ecma_transforms_compat:
 - `async_to_generator`: Preserve this in async object methods. (#1575)
 - `nullish_coaelscing`: Fix assignments. (#1570)
 - `export_namespace_from`: Preserve order of statements. (#1457)

swc:
 - Disable aes. (#1583)
2021-04-17 06:00:14 +00:00

4 lines
126 B
JavaScript

import { createHash, createHmac } from 'crypto-browserify';
var hash = createHash(algorithm);
var hmac = createHmac(fn, key);