Swiper: Source maps missing

Created on 15 Apr 2016  路  7Comments  路  Source: nolimits4web/swiper

There is no source map files for non-minified versions. Next files are missing:

  • maps/swiper.jquery.js.map
  • maps/swiper.jquery.umd.js.map
  • maps/swiper.js.map

Most helpful comment

Let's remove this, guys?)
I'm tired to see this in console:
.../maps/swiper.jquery.js.map/ Failed to load resource: the server responded with a status of 404 (Not Found)

All 7 comments

You don't need source maps for unminified code do you?

If so - _sourceMappingURL_ comments should be removed from those files.
//# sourceMappingURL=maps/swiper.jquery.umd.js.map

Let's remove this, guys?)
I'm tired to see this in console:
.../maps/swiper.jquery.js.map/ Failed to load resource: the server responded with a status of 404 (Not Found)

I'm also experiencing 404 messages when including Swiper using Webpack:

鈥硷笌 404: No matching route found for /compiled/maps/swiper.js.map

Ping @nolimits4web

For anyone interested in this issue and is using Webpack. Using string-replace-loader will work as a temporary workaround:

    { // shim for libraries that are depending on a .map file (like Swiper)
      // github.com/nolimits4web/Swiper/issues/1683#issuecomment-316825698
      test: /\.js$/,
      loader: 'string-replace-loader',
      query: {
        search: '//# sourceMappingURL=(.*?).map',
        flags: 'gmi',
        replace: ''
      }
    }

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.

If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue
Was this page helpful?
0 / 5 - 0 ratings