1
0
forked from Rowland/EG
EG/Cesium-1.132/node_modules/liftoff/lib/needs_lookup.js
2025-08-25 17:48:13 +08:00

19 lines
368 B
JavaScript

'use strict';
var isPlainObject = require('is-plain-object').isPlainObject;
function needsLookup(xtends) {
if (typeof xtends === 'string' && xtends[0] === '.') {
return true;
}
if (isPlainObject(xtends)) {
// Objects always need lookup because they can't be used with `require()`
return true;
}
return false;
}
module.exports = needsLookup;