@supernova-studio/pulsar-core 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/browser/pulsar.js
CHANGED
|
@@ -3865,8 +3865,9 @@ const PulsarExporterMemoryLoader_1 = require("../memory/PulsarExporterMemoryLoad
|
|
|
3865
3865
|
const fs_1 = __importDefault(require("fs"));
|
|
3866
3866
|
const util_1 = require("util");
|
|
3867
3867
|
const path_1 = require("path");
|
|
3868
|
-
|
|
3869
|
-
const
|
|
3868
|
+
// This crazy code makes browser bundle work and reminds us we need to split loaders to separate packages
|
|
3869
|
+
const readdir = util_1.promisify && (fs_1.default === null || fs_1.default === void 0 ? void 0 : fs_1.default.readdir) ? util_1.promisify(fs_1.default.readdir) : null;
|
|
3870
|
+
const stat = util_1.promisify && (fs_1.default === null || fs_1.default === void 0 ? void 0 : fs_1.default.stat) ? util_1.promisify(fs_1.default.stat) : null;
|
|
3870
3871
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
3871
3872
|
// MARK: - Definitions
|
|
3872
3873
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|