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

fix: handle sourcemap sources emtpy edge case #94

Merged
merged 1 commit into from Mar 27, 2020

Commits on Mar 27, 2020

  1. fix: Handle sourcemap sources emtpy edge case

    For source maps, the sources property can potentially be an empty array if mappings
    doesn't provide any information about its origin. For example if you compile an empty
    js file with babel, a valid sourcemap can be created with `[]` for `sources`. Here
    we add a fallback to `file` in this case and adds a fixture to test for it.
    
    The new test fixtures `empty.js`, `emtpy.compiled.js` and `empty.compiled.js.map`
    simulate this scenario for a unit test.
    j03m committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    59c9e6f View commit details
    Browse the repository at this point in the history