Socket
Socket
Sign inDemoInstall

karma-sourcemap-loader

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-sourcemap-loader

Karma plugin that locates and loads existing javascript source map files.


Version published
Weekly downloads
311K
increased by6.59%
Maintainers
1
Weekly downloads
 
Created

What is karma-sourcemap-loader?

The karma-sourcemap-loader is an npm package that preprocesses source maps for your files, allowing you to debug your original source code in the browser when running tests with Karma. This is particularly useful for projects that use transpilers or minifiers, as it helps map the compiled code back to the original source code.

What are karma-sourcemap-loader's main functionalities?

Preprocessing Source Maps

This feature allows you to preprocess source maps for your JavaScript files. By adding 'sourcemap' to the preprocessors array, karma-sourcemap-loader will handle the source maps, enabling you to debug the original source code in the browser.

module.exports = function(config) {
  config.set({
    preprocessors: {
      'src/**/*.js': ['sourcemap']
    },
    files: [
      'src/**/*.js',
      'test/**/*.spec.js'
    ],
    // other configurations
  });
};

Other packages similar to karma-sourcemap-loader

Keywords

FAQs

Package last updated on 18 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc