calvinmetcalf / rollup-plugin-node-builtins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DES missing reference to utils

danbucholtz opened this issue · comments

When I use this plugin and include node-uuid in a bundle,

I see the following exception in my outputted bundle:

des.js:7Uncaught TypeError: Cannot read property 'utils' of undefined

Looking at the source map, it looks like this:

var des = require('../des');
var utils = des.utils; <--- Where the error is
var Cipher = des.Cipher;

How would we go about fixing this? I can get rid of the issue by removing the builtins library, but I'd rather be able to keep it in since we're trying to implement a build process that "just works" for users that could import any number of libraries.

Thanks,
Dan

make sure you have the most up to date version of builtins, v2.0.0 fixed some issues