Skip to content

Commit 5141ab9

Browse files
authored
Merge pull request #198 from Gmadges/master
explicitly use path-browserify for better webpack 5+ support
2 parents 2a616d8 + f70b86d commit 5141ab9

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

package-lock.json

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,8 @@
5454
},
5555
"peerDependencies": {
5656
"three": ">=0.123.0"
57+
},
58+
"dependencies": {
59+
"path-browserify": "^1.0.1"
5760
}
5861
}

src/base/TilesRendererBase.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'path-browserify';
22
import { urlJoin } from '../utilities/urlJoin.js';
33
import { LRUCache } from '../utilities/LRUCache.js';
44
import { PriorityQueue } from '../utilities/PriorityQueue.js';

src/utilities/urlJoin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import path from 'path-browserify';
22

33
// Function that properly handles path resolution for parts that have
44
// a protocol component like "http://".

0 commit comments

Comments
 (0)