projecte_ionic/node_modules/karma-source-map-support/lib/index.js
2022-02-09 18:30:03 +01:00

21 lines
525 B
JavaScript
Executable file

const path = require('path');
const smsPath = path.dirname(require.resolve('source-map-support'));
const createPattern = function(pattern) {
return {pattern: pattern, included: true, served: true, watched: false};
};
const init = function(files) {
files.unshift(createPattern(path.join(__dirname, 'client.js')));
files.unshift(
createPattern(path.join(smsPath, 'browser-source-map-support.js'))
);
};
init.$inject = ['config.files'];
module.exports = {
'framework:source-map-support': ['factory', init]
};