karma-sourcemap-loader

WebJar for karma-sourcemap-loader

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

karma-sourcemap-loader
Последняя версия

Последняя версия

0.3.8
Дата

Дата

Тип

Тип

jar
Описание

Описание

karma-sourcemap-loader
WebJar for karma-sourcemap-loader
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/demerzel3/karma-sourcemap-loader

Скачать karma-sourcemap-loader

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/karma-sourcemap-loader/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>karma-sourcemap-loader</artifactId>
    <version>0.3.8</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/karma-sourcemap-loader/
implementation 'org.webjars.npm:karma-sourcemap-loader:0.3.8'
// https://jarcasting.com/artifacts/org.webjars.npm/karma-sourcemap-loader/
implementation ("org.webjars.npm:karma-sourcemap-loader:0.3.8")
'org.webjars.npm:karma-sourcemap-loader:jar:0.3.8'
<dependency org="org.webjars.npm" name="karma-sourcemap-loader" rev="0.3.8">
  <artifact name="karma-sourcemap-loader" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='karma-sourcemap-loader', version='0.3.8')
)
libraryDependencies += "org.webjars.npm" % "karma-sourcemap-loader" % "0.3.8"
[org.webjars.npm/karma-sourcemap-loader "0.3.8"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : graceful-fs jar [4.1.2,5)

Модули Проекта

Данный проект не имеет модулей.

karma-sourcemap-loader

Preprocessor that locates and loads existing source maps.

Why

When you use karma not in isolation but as part of a build process (e.g. using grunt or gulp) it is often the case that the compilation/transpilation is done on a previous step of the process and not handled by karma preprocessors. In these cases source maps don't get loaded by karma and you lose the advantages of having them.

How it works

This plug-in supports both inline and external source maps.

Inline source maps are located by searching "sourceMappingURL=" inside the javascript file, both plain text and base64-encoded maps are supported.

External source maps are located by appending ".map" to the javascript file name. So if for example you have Hello.js, the preprocessor will try to load source map from Hello.js.map.

Installation

Just add karma-sourcemap-loader as a devDependency in your package.json.

{
  "devDependencies": {
    "karma-sourcemap-loader": "~0.3"
  }
}

Or issue the following command:

npm install karma-sourcemap-loader --save-dev

Configuration

The code below shows a sample configuration of the preprocessor.

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['sourcemap']
    }
  });
};

Версии библиотеки

Версия
0.3.8