bpms_site/.svn/pristine/7b/7b0ccf67bf5cd6ff39f9ee5096929641f960f656.svn-base
2025-11-02 16:38:49 +03:30

19 lines
529 B
Plaintext

import { SERVER_DIRECTORY } from "../../../../../shared/lib/constants";
import path from "../../../../../shared/lib/isomorphic/path";
export class NodeManifestLoader {
constructor(distDir){
this.distDir = distDir;
}
static require(id) {
try {
return require(id);
} catch {
return null;
}
}
load(name) {
return NodeManifestLoader.require(path.join(this.distDir, SERVER_DIRECTORY, name));
}
}
//# sourceMappingURL=node-manifest-loader.js.map