Files
dependabot[bot] ee48d5ca76 Bump vite from 6.3.5 to 6.3.6 in /web/demo
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 02:00:41 +00:00
..
2025-06-28 06:23:43 +09:00
2025-06-26 11:35:19 +09:00
2025-06-28 07:56:22 +09:00
2025-06-26 09:40:55 +09:00
2025-06-27 10:06:00 +09:00
2025-06-26 08:47:45 +09:00
2025-06-02 14:05:34 +09:00
2025-06-26 08:47:45 +09:00
2025-06-26 08:47:45 +09:00
2025-06-27 10:06:00 +09:00

Demos using TinyUSDZ as npm package.

Requirements

  • bun
  • vite

Setup

npm install or bun install to install tinyusdz npm package to node_modules folder.

Run locally

Run the server(We use bun + vite).

$ bun run dev

Run with tinyusdz npm package with vite.

For some reason, vite cannot find tinyusdz.wasm file for caching(optimzieDeps). Please exclude tinyusdz package to vite.config.ts(or vite.config.js) file as a work around.

import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    headers: {
      'Cross-Origin-Opener-Policy': 'same-origin',
      'Cross-Origin-Embedder-Policy': 'require-corp',
    },
  },
  optimizeDeps: {
    exclude: ['tinyusdz'],
  },
});

Deploy

$ bun run build
(or vite build)

Content will be installed to ../dist

Demo asset info

UsdCookie.usdz : Each asset has a license declared in the readme, typically CC0 or something highly permissive

image is resized to 1024x1024.