source: trip-planner-front/node_modules/karma-source-map-support/lib/index.js@ bdd6491

Last change on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 525 bytes
Line 
1const path = require('path');
2
3const smsPath = path.dirname(require.resolve('source-map-support'));
4
5const createPattern = function(pattern) {
6 return {pattern: pattern, included: true, served: true, watched: false};
7};
8
9const init = function(files) {
10 files.unshift(createPattern(path.join(__dirname, 'client.js')));
11 files.unshift(
12 createPattern(path.join(smsPath, 'browser-source-map-support.js'))
13 );
14};
15
16init.$inject = ['config.files'];
17
18module.exports = {
19 'framework:source-map-support': ['factory', init]
20};
Note: See TracBrowser for help on using the repository browser.