Skip to content

Invalid sourcemaps in dist/ #5598

Description

@Lucas-C

Q&A (please complete the following information)

  • OS: Windows
  • Browser: NA
  • Version: latest (master branch)
  • Method of installation: NA
  • Swagger-UI version: latest (master branch)
  • Swagger/OpenAPI version: NA

Describe the bug you're encountering

The .map files provided in the dist/ folder seem to be invalid, based on sourcemap-validator

To reproduce...

Steps to reproduce the behavior:

  1. Install the sourcemap-validate command:
    npm install -g git+https://github.com/Lucas-C/sourcemap-validator.git
  2. Execute the following command in this repo:
    sourcemap-validate dist/swagger-ui-bundle.js dist/swagger-ui-bundle.js.map

Expected behavior

Validation OK

Additional context or thoughts

Using sourcemap-validate I tested that the Validation OK message appears up to tag v3.3.0. Starting from tag v3.4.0 the error appears.

I found about this error in springfox/springfox#3114, because my Firefox browser could not load the sourcemaps correctly.

Based on the package-lock.json in this repo I cannot pinpoint exactly what version of webpack-sources it is using, but this error may be due to a nasty bug broke sourcemaps it generated before version 1.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions