https://threejs.org/docs/#manual/en/introduction/Installation
https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene
npm install --save three
npm install --save-dev vite
npx vite
npx vite build
Now upload the dist/ dir to your Amplify app.