commenthol/serialize-to-js

remove `beautify` option (`js-beautify` package too)

Closed this issue · 4 comments

Why:

  • reduce package size
  • no need beautify by default, main purpose is serialization, not pretty printing
  • there a lot of other buitifiers (example i like prettier)

you can use the serialization without beautifier.

const serialize = require('serialize-to-js/lib/serialize')

does the trick.

@commenthol we want to use this library in big packages like loaders/plugins for webpack, and it is increase size our packages (node_modules), we don't want to do fork because of this problem, it is really looks weird

Can we reconsider this issue, otherwise we really have to do fork?

Hi @evilebottnawi,
there is PR #12 to split things up as you requested. Would be nice if you could have a look at it if that fits your/ and maybe others needs.