Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GenMapping for sourcemap generation #1190

Merged
merged 7 commits into from May 10, 2022

Commits on Apr 30, 2022

  1. Switch to GenMapping for sourcemap generation

    [`gen-mapping`](https://github.com/jridgewell/gen-mapping) is faster, smaller, and lighter  sourcemap generation library.
    
    This also exposes a new `decodedMap` property on the result object. Decoded maps are free to create (it's a shallow clone of the `GenMapping` instance), and passing them to `@jridgewell/trace-mapping` is copy-free. With Babel  [recently](babel/babel#14497) adding a `decodedMap` field, a dev could pass from the Babel transpilation to Terser without any added memory use for sourcemaps.
    
    And if there's a multi stage build process, a dev could use `@ampproject/remapping` to remap Babel, Terser, and (eg) a bundler's outputs without having to feed input maps into each stage.
    jridgewell committed Apr 30, 2022
    Copy the full SHA
    d23354e View commit details
    Browse the repository at this point in the history

Commits on May 1, 2022

  1. Apply suggestions from code review

    Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
    jridgewell and fabiosantoscode committed May 1, 2022
    Copy the full SHA
    04953b4 View commit details
    Browse the repository at this point in the history
  2. Fix dependency

    jridgewell committed May 1, 2022
    Copy the full SHA
    8f938df View commit details
    Browse the repository at this point in the history
  3. Switch to source-map compatible @jridgewell/source-map

    This preserves API compatibility, so that loading source-map in the browser is still supported.
    jridgewell committed May 1, 2022
    Copy the full SHA
    f6dbb8f View commit details
    Browse the repository at this point in the history
  4. Update TS types

    jridgewell committed May 1, 2022
    Copy the full SHA
    b2e5a12 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2022

  1. Copy the full SHA
    6cab7f2 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2022

  1. Copy the full SHA
    2cc6270 View commit details
    Browse the repository at this point in the history