Skip to content

Because you write require("crypto"), use in Browser Webpack Bundle will inject more than 400kb node-browser code include bundle #276

@DemonCloud

Description

@DemonCloud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions