Skip to content

Commit

Permalink
chore: bump @GMOD dependencies and generic-filehandle (#849)
Browse files Browse the repository at this point in the history
* chore: bump @GMOD dependencies and generic-filehandle

* fix: broken bbi
  • Loading branch information
manzt committed Apr 17, 2023
1 parent a1977b9 commit 1c62919
Show file tree
Hide file tree
Showing 4 changed files with 373 additions and 354 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
},
"sideEffect": false,
"dependencies": {
"@gmod/bam": "^1.1.8",
"@gmod/bbi": "^1.0.30",
"@gmod/tabix": "^1.5.3",
"@gmod/vcf": "^5.0.6",
"@gmod/bam": "^1.1.18",
"@gmod/bbi": "^3.0.0",
"@gmod/tabix": "^1.5.6",
"@gmod/vcf": "^5.0.10",
"@types/bezier-js": "^4.1.0",
"@types/d3": "^7.0.0",
"@types/lodash": "^4.14.151",
Expand All @@ -67,7 +67,7 @@
"d3-scale-chromatic": "^2.0.0",
"d3-shape": "^2.0.0",
"fflate": "^0.7.1",
"generic-filehandle": "2.2.1",
"generic-filehandle": "^3.0.1",
"gosling-theme": "^0.0.10",
"higlass": "~1.11.8",
"higlass-register": "^0.3.0",
Expand Down Expand Up @@ -139,8 +139,7 @@
"vitest": "^0.10.0"
},
"resolutions": {
"slugid": "^3.0.0",
"generic-filehandle": "2.2.1"
"slugid": "^3.0.0"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion src/data-fetchers/bigwig/bigwig-data-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function BigWigDataFetcher(HGC: import('@higlass/types').HGC, dataConfig: BigWig
this.dataPromises.push(this.loadBBI(dataConfig));
}

loadBBI(dataConfig: { url: string }) {
async loadBBI(dataConfig: { url: string }) {
if (dataConfig.url) {
this.bwFile = new BigWig({
filehandle: new RemoteFile(dataConfig.url)
Expand Down
19 changes: 17 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ const esm = defineConfig({
rollupOptions: { external }
},
resolve: { alias },
plugins: [manualInlineWorker]
plugins: [manualInlineWorker],
optimizeDeps: {
esbuildOptions: {
inject: ['./src/alias/buffer-shim.js']
}
}
});

const dev = defineConfig({
Expand All @@ -91,7 +96,12 @@ const dev = defineConfig({
'process.platform': 'undefined',
'process.env.THREADS_WORKER_INIT_TIMEOUT': 'undefined'
},
plugins: [bundleWebWorker, manualInlineWorker]
plugins: [bundleWebWorker, manualInlineWorker],
optimizeDeps: {
esbuildOptions: {
inject: ['./src/alias/buffer-shim.js']
}
}
});

const testing = defineConfig({
Expand All @@ -112,6 +122,11 @@ const testing = defineConfig({
include: ['src', 'editor'],
}
},
optimizeDeps: {
esbuildOptions: {
inject: ['./src/alias/buffer-shim.js']
}
}
});

export default ({ command, mode }) => {
Expand Down
Loading

0 comments on commit 1c62919

Please sign in to comment.