grafana/scripts/webpack/dependencies.js

16 lines
369 B
JavaScript
Raw Normal View History

2017-10-03 04:02:40 -05:00
'use strict';
const { pull } = require('lodash');
2017-10-03 04:02:40 -05:00
const pkg = require('../../package.json');
2017-10-03 04:02:40 -05:00
let dependencies = Object.keys(pkg.dependencies);
// remove jquery so we can add it first
// remove rxjs so we can only depend on parts of it in code
pull(dependencies, 'jquery', 'rxjs');
2017-10-03 04:02:40 -05:00
// add jquery first
dependencies.unshift('jquery');
module.exports = dependencies;