Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

strip-sourcemap-loader

strip sourcemapping urls from bundled webpack resources to not confuse safari

why?

some packages are distributed with //# sourceMappingURL = comments embedded in them. Safari will find the first such comment and use that to find your source map. If it finds the wrong one, you lose.

how?

In your webpack config,

module.exports = {
  // ...
  module: {
    loaders: [
      {
        test: /\.js$/,
        include: /node_modules/,
        loaders: ['strip-sourcemap-loader']
      }
    ]
  }
}

License

See LICENSE.

Author

Eric O'Connell eric.oconnell@gmail.com

About

strip sourcemapping urls from bundled webpack resources to not confuse safari

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages