Skip to content

Commit 75766fa

Browse files
committed
Fix issue with web worker not being parsed correctly
1 parent 8d05260 commit 75766fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"root": true,
33
"parserOptions": {
4-
"ecmaVersion": 2018
4+
"ecmaVersion":"latest"
55
},
66

77
"extends": [

src/parsers/CityJSONWorkerParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class CityJSONWorkerParser {
7777

7878
// Sets the web worker that will parse all normal (ie non-instanced)
7979
// geometries
80-
const worker = new Worker( "./helpers/ParserWorker.js" );
80+
const worker = new Worker( new URL( "./helpers/ParserWorker.js", import.meta.url ), { type: "module" } );
8181
const m = this.matrix;
8282
const onChunkLoad = this.onChunkLoad;
8383
const onComplete = this.onComplete;

0 commit comments

Comments
 (0)