karma-amdwrap-preprocessor
Karma preprocessor running amd-wrap on the code.
Installation
$ npm install karma-amdwrap-preprocessor --save-dev
Configuration
// karma.conf.jsmodule{ config;};
Excluding files
You can exclude particular files from being wrapped by supplying an exclude
function in the config:
amdwrapPreprocessor: { // return true to exclude }
The function is passed the karma file
object.
Example
With the following source:
var foo = ;exportsbar = ;
The browser will be served:
;