UNPKG

707 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5require('./hooks/index.js');
6require('./constants/index.js');
7var version = require('./version.js');
8var key = require('./constants/key.js');
9var index = require('./hooks/use-global-config/index.js');
10
11const makeInstaller = (components = []) => {
12 const install = (app, options) => {
13 if (app[key.INSTALLED_KEY])
14 return;
15 app[key.INSTALLED_KEY] = true;
16 components.forEach((c) => app.use(c));
17 if (options)
18 index.provideGlobalConfig(options, app, true);
19 };
20 return {
21 version: version.version,
22 install
23 };
24};
25
26exports.makeInstaller = makeInstaller;
27//# sourceMappingURL=make-installer.js.map