1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.store = exports.Store = void 0;
|
4 | const normalize_path_1 = require("./utils/normalize-path");
|
5 | class Store {
|
6 | constructor() {
|
7 | this.state = {
|
8 | constants: {},
|
9 | pluginsFiles: {
|
10 | 'enhance-app': new Set(),
|
11 | 'enhance-server': new Set(),
|
12 | },
|
13 | };
|
14 | this.defineConstant = (name, value) => {
|
15 | this.state.constants[name] = JSON.stringify(value);
|
16 | };
|
17 | this.addPluginFile = (type, file) => {
|
18 | this.state.pluginsFiles[type].add(normalize_path_1.normalizePath(file));
|
19 | };
|
20 | }
|
21 | }
|
22 | exports.Store = Store;
|
23 | exports.store = new Store();
|