node-util icon indicating copy to clipboard operation
node-util copied to clipboard

i find a error about isBuffer function

Open wbhAvivahc opened this issue 3 years ago • 1 comments

when i build use rollup, i find my project dist have a error about exports.isBuffer = require('./support/isBuffer'); my dist don't have this files (/support/isBuffer image )

wbhAvivahc avatar Jun 30 '22 03:06 wbhAvivahc

That’s defined here; seems like it’s a bug in rollup with the browser field.

ljharb avatar Jun 30 '22 03:06 ljharb

i think you may be missing the CommonJS plugin for rollup, as the require statement still exists in the output. This is a CommonJS module so you need to configure your bundler appropriately if it doesn't support CommonJS by default.

goto-bus-stop avatar Oct 16 '22 20:10 goto-bus-stop