choojs / nanohtml

:dragon: HTML template strings for the Browser with support for Server Side Rendering in Node.
MIT License
686 stars 49 forks source link

`default` alias not defined on server.js #130

Closed seangenabe closed 6 years ago

seangenabe commented 6 years ago

module.exports.default seems to be defined in browser.js but not in server.js.

goto-bus-stop commented 6 years ago

Huh, i'm surprised browser.js sets a default property. i guess it'd be better if both versions do though, yea.

josephg commented 6 years ago

This is important because of the way the types have been set up. The types declare that nano is an export default function - which requires that the default property is set for it to work.

goto-bus-stop commented 6 years ago

Ohh, it was for typescript. That makes sense!

goto-bus-stop commented 6 years ago

:package: v1.2.6