Skip to content

strip sourcemapping urls from bundled webpack resources to not confuse safari

License

Notifications You must be signed in to change notification settings

sopherio/strip-sourcemap-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%