Skip to content

Commit

Permalink
fix: update three examples imports (#73)
Browse files Browse the repository at this point in the history
Some bundlers like Angular bundler complains about three/examples/jsm
imports without `.js` ending.
  • Loading branch information
nartc authored Sep 4, 2024
1 parent 3999cbf commit 26672a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Caustics.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/core/Outlines.ts
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down

0 comments on commit 26672a9

Please sign in to comment.