mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
7985aa1e57
* Performance/Webpack: Introduces more aggressive code-splitting and other perf improvements - Introduces dynamic imports for built-in plugins - Uses dynamic imports for various packages (rst2html, brace) - Introduces route-based dynamic imports - Splits angular and moment into separate bundles
15 lines
368 B
JavaScript
15 lines
368 B
JavaScript
'use strict';
|
|
|
|
const pkg = require('../../package.json');
|
|
const pull = require('lodash/pull');
|
|
|
|
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')
|
|
|
|
// add jquery first
|
|
dependencies.unshift('jquery');
|
|
|
|
module.exports = dependencies;
|