This PR makes recast browser compatible by using an assert polyfill which will only be used in the browser, because with Node.js assert is a built-in, as well as conditionally requires os only when executed with Node.js.
@eventualbuddha Any chance we could get this in and published? I'd really like to use recast in the browser, and for the time being I am using my fork.
This PR makes recast browser compatible by using an
assert
polyfill which will only be used in the browser, because with Node.jsassert
is a built-in, as well as conditionally requiresos
only when executed with Node.js.Closes #1235