Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

More updates for CLI / new API #98

Merged
merged 4 commits into from
Apr 25, 2015
Merged

Commits on Apr 24, 2015

  1. Fix / change a few more things in the simple API

    - When using inlineSourceMap, result.code will now have the sourceMap
      encoded and appended. This matches more closely what we did in
      react-tools. We won't also return the raw sourcemap data (this matches
      what Babel does).
    - Expose a new option sourceMap which will result in the sourceMap being
      in the result.
    - Pre-JSONify the SourceMapGenerator instead of returning it directly.
    - Make sure 'source.js' actually is the default for sourcemaps.
    - Make sure the API works when no options are passed.
    - Don't expose result directly from jstransform, only expose specific
      values.
    zpao committed Apr 24, 2015
    Configuration menu
    Copy the full SHA
    f9fb3b7 View commit details
    Browse the repository at this point in the history
  2. Ensure better defaults

    Mostly this is to make sure source maps get a good filename, which will
    mostly be correct-ish. It also makes the other defaults explicit.
    zpao committed Apr 24, 2015
    Configuration menu
    Copy the full SHA
    76a10f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c343728 View commit details
    Browse the repository at this point in the history
  4. Update Readme for all the new changes

    Document the Advanced API as well as all the new stuff.
    zpao committed Apr 24, 2015
    Configuration menu
    Copy the full SHA
    192cf5b View commit details
    Browse the repository at this point in the history