@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
21 lines (20 loc) • 501 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class PluginStore {
constructor() {
this.variableCache = new Map();
this.projectFilePath = '';
this.hspModuleNames = [];
}
static clear() {
this.instance = null;
}
static getInstance() {
if (!this.instance) {
this.instance = new PluginStore();
}
return this.instance;
}
}
exports.default = PluginStore;
PluginStore.instance = null;