`undef is not defined` when bundling with rollup
joews opened this issue · 0 comments
joews commented
When rome
is bundled with rollup, the bundle throws this error on execution:
dist.js:5671 Uncaught ReferenceError: undef is not defined
at dist.js:5671
at commonjsGlobal (dist.js:4)
at dist.js:5
(anonymous) @ dist.js:5671
commonjsGlobal @ dist.js:4
(anonymous) @ dist.js:5
This is caused by a bug in ticky, which is a transitive dependency from contra
.
It doesn't happen when bundled with browserify because process
is polyfilled, which results in a different ticky
code path.
It can be fixed by depending on a new version of contra
, which uses a patched version of ticky
.