Skip to content

Commit

Permalink
Merge pull request #198 from Gmadges/master
Browse files Browse the repository at this point in the history
explicitly use path-browserify for better webpack 5+ support
  • Loading branch information
gkjohnson authored Jul 22, 2021
2 parents 2a616d8 + f70b86d commit 5141ab9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
13 changes: 9 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@
},
"peerDependencies": {
"three": ">=0.123.0"
},
"dependencies": {
"path-browserify": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion src/base/TilesRendererBase.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from 'path-browserify';
import { urlJoin } from '../utilities/urlJoin.js';
import { LRUCache } from '../utilities/LRUCache.js';
import { PriorityQueue } from '../utilities/PriorityQueue.js';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/urlJoin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from 'path-browserify';

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

0 comments on commit 5141ab9

Please sign in to comment.