From 26672a95dd2b68edbe6fa5d68863544c5a087644 Mon Sep 17 00:00:00 2001 From: Chau Tran Date: Wed, 4 Sep 2024 13:41:33 -0500 Subject: [PATCH] fix: update three examples imports (#73) Some bundlers like Angular bundler complains about three/examples/jsm imports without `.js` ending. --- src/core/Caustics.ts | 2 +- src/core/Outlines.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Caustics.ts b/src/core/Caustics.ts index 8347a21..8fa974d 100644 --- a/src/core/Caustics.ts +++ b/src/core/Caustics.ts @@ -1,6 +1,6 @@ import * as THREE from 'three' import { shaderMaterial } from './shaderMaterial' -import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass' +import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js' import { useFBO } from './useFBO' import { PlaneGeometry } from 'three' diff --git a/src/core/Outlines.ts b/src/core/Outlines.ts index 221c05b..7b61fba 100644 --- a/src/core/Outlines.ts +++ b/src/core/Outlines.ts @@ -1,6 +1,6 @@ import { shaderMaterial } from './shaderMaterial' import * as THREE from 'three' -import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils' +import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils.js' export type OutlinesProps = { /** Outline color, default: black */