@threekit-tools/treble 0.0.34 → 0.0.35
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/dist/utils.js +22 -24
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -351,30 +351,28 @@ var isUuid = function (str) {
|
|
|
351
351
|
exports.isUuid = isUuid;
|
|
352
352
|
var loadTrebleConfig = function () {
|
|
353
353
|
var config = {};
|
|
354
|
-
try {
|
|
355
|
-
var project = require("/threekit.config.js").default;
|
|
356
|
-
if (project)
|
|
357
|
-
config.project = project;
|
|
358
|
-
}
|
|
359
|
-
catch (e) {
|
|
360
|
-
console.log(e);
|
|
361
|
-
}
|
|
362
|
-
try {
|
|
363
|
-
var player = require('/.treble/player.config.js').default;
|
|
364
|
-
if (player)
|
|
365
|
-
config.player = player;
|
|
366
|
-
}
|
|
367
|
-
catch (e) {
|
|
368
|
-
console.log(e);
|
|
369
|
-
}
|
|
370
|
-
try {
|
|
371
|
-
var treble = require('/.treble/treble.config.js').default;
|
|
372
|
-
if (treble)
|
|
373
|
-
config.treble = treble;
|
|
374
|
-
}
|
|
375
|
-
catch (e) {
|
|
376
|
-
console.log(e);
|
|
377
|
-
}
|
|
378
354
|
return config;
|
|
379
355
|
};
|
|
380
356
|
exports.loadTrebleConfig = loadTrebleConfig;
|
|
357
|
+
// export const loadTrebleConfig = () => {
|
|
358
|
+
// let config: Partial<ITrebleConfig> = {};
|
|
359
|
+
// try {
|
|
360
|
+
// const project = require(`/threekit.config.js`).default;
|
|
361
|
+
// if (project) config.project = project;
|
|
362
|
+
// } catch (e) {
|
|
363
|
+
// console.log(e);
|
|
364
|
+
// }
|
|
365
|
+
// try {
|
|
366
|
+
// const player = require('/.treble/player.config.js').default;
|
|
367
|
+
// if (player) config.player = player;
|
|
368
|
+
// } catch (e) {
|
|
369
|
+
// console.log(e);
|
|
370
|
+
// }
|
|
371
|
+
// try {
|
|
372
|
+
// const treble = require('/.treble/treble.config.js').default;
|
|
373
|
+
// if (treble) config.treble = treble;
|
|
374
|
+
// } catch (e) {
|
|
375
|
+
// console.log(e);
|
|
376
|
+
// }
|
|
377
|
+
// return config;
|
|
378
|
+
// };
|