Skip to content

Commit 26672a9

Browse files
authored
fix: update three examples imports (#73)
Some bundlers like Angular bundler complains about three/examples/jsm imports without `.js` ending.
1 parent 3999cbf commit 26672a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/Caustics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as THREE from 'three'
22
import { shaderMaterial } from './shaderMaterial'
3-
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass'
3+
import { FullScreenQuad } from 'three/examples/jsm/postprocessing/Pass.js'
44
import { useFBO } from './useFBO'
55
import { PlaneGeometry } from 'three'
66

src/core/Outlines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { shaderMaterial } from './shaderMaterial'
22
import * as THREE from 'three'
3-
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils'
3+
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils.js'
44

55
export type OutlinesProps = {
66
/** Outline color, default: black */

0 commit comments

Comments
 (0)