@luma.gl/webgpu
Advanced tools
Comparing version 9.0.0-beta.7 to 9.0.0-beta.8
@@ -30,2 +30,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
}; | ||
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
@@ -52,5 +53,5 @@ // If the importer is in node compatibility mode or this is not an ESM | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
// bundle.ts | ||
var bundle_exports = {}; | ||
__export(bundle_exports, { | ||
WebGPUBuffer: () => WebGPUBuffer, | ||
@@ -62,2 +63,3 @@ WebGPUDevice: () => WebGPUDevice, | ||
}); | ||
__reExport(bundle_exports, __toESM(require_core(), 1)); | ||
@@ -1186,8 +1188,6 @@ // src/adapter/webgpu-device.ts | ||
function isElectron(mockUserAgent) { | ||
if (typeof window !== "undefined" && typeof window.process === "object" && // @ts-expect-error | ||
window.process.type === "renderer") { | ||
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") { | ||
return true; | ||
} | ||
if (typeof process !== "undefined" && typeof process.versions === "object" && // eslint-disable-next-line | ||
Boolean(process.versions["electron"])) { | ||
if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions["electron"])) { | ||
return true; | ||
@@ -1205,6 +1205,3 @@ } | ||
function isBrowser() { | ||
const isNode = ( | ||
// @ts-expect-error | ||
typeof process === "object" && String(process) === "[object process]" && !process.browser | ||
); | ||
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser; | ||
return !isNode || isElectron(); | ||
@@ -1664,5 +1661,5 @@ } | ||
__publicField(WebGPUDevice, "type", "webgpu"); | ||
return __toCommonJS(src_exports); | ||
return __toCommonJS(bundle_exports); | ||
})(); | ||
return __exports__; | ||
}); |
{ | ||
"name": "@luma.gl/webgpu", | ||
"version": "9.0.0-beta.7", | ||
"version": "9.0.0-beta.8", | ||
"description": "WebGPU adapter for the luma.gl core API", | ||
@@ -35,8 +35,8 @@ "type": "module", | ||
"scripts": { | ||
"build-minified-bundle": "ocular-bundle ./src/index.ts -output=dist/dist.min.js", | ||
"build-dev-bundle": "ocular-bundle ./src/index.ts -output=dist/dist.dev.js -- --env=dev", | ||
"build-minified-bundle": "ocular-bundle ./bundle.ts --output=dist/dist.min.js", | ||
"build-dev-bundle": "ocular-bundle ./bundle.ts --output=dist/dist.dev.js --env=dev", | ||
"prepublishOnly": "npm run build-minified-bundle && npm run build-dev-bundle" | ||
}, | ||
"peerDependencies": { | ||
"@luma.gl/core": "^9.0.0-beta.4" | ||
"@luma.gl/core": "^9.0.0-beta" | ||
}, | ||
@@ -47,3 +47,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "e9606a88e0aab3dc27c87020cac89040ea1a8a02" | ||
"gitHead": "b4ba7f35a5d0b5a09625c955d952cbbab9c1ad28" | ||
} |
443076
97
7986