- // preprocess matching files before serving them to the browser
- // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
- preprocessors: {
- 'app/localization.js': ['babel'],
- 'app/webutil.js': ['babel'],
- 'core/**/*.js': ['babel'],
- 'tests/test.*.js': ['babel'],
- 'tests/fake.*.js': ['babel'],
- 'tests/assertions.js': ['babel'],
- 'vendor/pako/**/*.js': ['babel'],
- },
-
- babelPreprocessor: {
- options: {
- presets: transpileToES5 ? ['es2015'] : [],
- plugins: ['transform-es2015-modules-amd', 'syntax-dynamic-import'],
- sourceMap: 'inline',
- },
- },
-