calvinmetcalf / rollup-plugin-node-builtins

138 stars 40 forks source link

DES missing reference to utils #19

Open danbucholtz opened 8 years ago

danbucholtz commented 8 years ago

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

calvinmetcalf commented 8 years ago

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