blob: 1c1636cf6cac06c69c701511d67c649a69f879d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import terminal from './plugins/terminal';
import terminalSync from './plugins/terminal_sync';
const plugins = () => [
terminal,
...(gon.features && gon.features.buildServiceProxy ? [terminalSync] : []),
];
export default (store, el) => {
// plugins is actually an array of plugin factories, so we have to create first then call
plugins().forEach(plugin => plugin(el)(store));
return store;
};
|