choojs / nanohtml

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

Use acorn-node #154

Closed goto-bus-stop closed 5 years ago

goto-bus-stop commented 5 years ago

Uses acorn 7, with support for new ES features that have already landed in Node.js like bigint and numeric separators.

The breaking change in acorn does not affect end users of nanohtml. It's just a node name change: Import is now ImportExpression.

acorn-node@1.x patches acorn to undo the breaking change, so users of that version can upgrade to acorn 7 with no problems. In 2.x that patch will be removed, but the breaking change would still not affect nanohtml, because we don't deal with dynamic imports anyway :)