murat-dogan / node-datachannel

WebRTC For Node.js and Electron. libdatachannel node bindings.
Mozilla Public License 2.0
280 stars 52 forks source link

fix: default imports should always be last #253

Closed ThaUnknown closed 1 month ago

ThaUnknown commented 1 month ago

default condition should always be last, this is required as it breaks some bundlers such as webpack

murat-dogan commented 1 month ago

From webpack page, I didn't understand that. But anyway it is harmless. Thanks.

ThaUnknown commented 1 month ago

From webpack page, I didn't understand that. But anyway it is harmless. Thanks.

The last condition in the object might be the special "default" condition

it needs to be last