in crypto-js/core.js
// Native crypto import via require (NodeJS)
if (!crypto && typeof require === 'function') {
try {
crypto = require('crypto');
} catch (err) {}
}
this lib can not use in the browser, because the polyfill is so big more than 400kb with webpack bundle