This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
Some wrapper checks for require
will not export as expected
#38
Labels
I'm trying to rollup
protobufjs
with rollup-plugin-commonjs, but I getundefined
as export. It turns out the UMD wrapper ofprotobufjs
will check the type ofrequire
to export the module as commonjs.The specs of Commonjs defines
require
as a Function. It make sense for wrapper to check for it. Currently, I use a plugin to addrequire
as a noop function since it should never been called anyway. I hope rollup-plugin-commonjs can handle such use case more elegantly.The text was updated successfully, but these errors were encountered: