Skip to content

extract sourceMappingURL comments from modules and offer it to webpack

License

Notifications You must be signed in to change notification settings

sfjs/source-map-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm deps chat

Sourcemap Loader

Extracts SourceMaps for source files that as added as `sourceMappingURL` comment.

Install

npm i -D source-map-loader

Usage

Documentation: Using loaders

Example webpack config

module.exports = {
  module: {
    rules: [
      {
        test: /\.js$/,
        use: ["source-map-loader"],
        enforce: "pre"
      }
    ]
  }
};

This extracts SourceMaps from all js files (including node_modules). This is not very performant, so you may want to only apply the loader to relevant files.

Maintainers


Juho Vepsäläinen

Joshua Wiens

Kees Kluskens

Sean Larkin

About

extract sourceMappingURL comments from modules and offer it to webpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%