Skip to content

Commit

Permalink
Remove worker.pthread.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Oct 4, 2024
1 parent a711d39 commit db2ea98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/duckdb-wasm-app/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DUCKDB_BUNDLES: duckdb.DuckDBBundles = {
mainModule: duckdb_wasm_coi,
mainWorker: new URL('@duckdb/duckdb-wasm/dist/duckdb-browser-coi.worker.js', import.meta.url).toString(),
pthreadWorker: new URL(
'@duckdb/duckdb-wasm/dist/duckdb-browser-coi.pthread.worker.js',
'@duckdb/duckdb-wasm/dist/duckdb-browser-coi.worker.js',
import.meta.url,
).toString(),
},
Expand Down
6 changes: 3 additions & 3 deletions packages/duckdb-wasm/bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fs.copyFile(path.resolve(src, 'bindings', 'duckdb-coi.wasm'), path.resolve(dist,
patchFile('./src/bindings/duckdb-mvp.js', 'child_process');
patchFile('./src/bindings/duckdb-eh.js', 'child_process');
patchFile('./src/bindings/duckdb-coi.js', 'child_process');
patchFile('./src/bindings/duckdb-coi.pthread.js', 'vm');
// patchFile('./src/bindings/duckdb-coi.pthread.js', 'vm');

// -------------------------------
// Browser bundles
Expand Down Expand Up @@ -216,7 +216,7 @@ fs.copyFile(path.resolve(src, 'bindings', 'duckdb-coi.wasm'), path.resolve(dist,
external: EXTERNALS_WEBWORKER,
define: { 'process.release.name': '"browser"' },
});

/*
console.log('[ ESBUILD ] duckdb-browser-coi.pthread.worker.js');
await esbuild.build({
entryPoints: ['./src/targets/duckdb-browser-coi.pthread.worker.ts'],
Expand All @@ -230,7 +230,7 @@ fs.copyFile(path.resolve(src, 'bindings', 'duckdb-coi.wasm'), path.resolve(dist,
external: EXTERNALS_WEBWORKER,
define: { 'process.release.name': '"browser"' },
});

*/
// -------------------------------
// Node bundles

Expand Down
2 changes: 1 addition & 1 deletion packages/duckdb-wasm/test/index_browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DUCKDB_BUNDLES: duckdb.DuckDBBundles = {
coi: {
mainModule: new URL('/static/duckdb-coi.wasm', window.location.href).href,
mainWorker: new URL('/static/duckdb-browser-coi.worker.js', window.location.href).href,
pthreadWorker: new URL('/static/duckdb-browser-coi.pthread.worker.js', window.location.href).href,
pthreadWorker: new URL('/static/duckdb-browser-coi.worker.js', window.location.href).href,
},
};
let DUCKDB_BUNDLE: duckdb.DuckDBBundle | null = null;
Expand Down

0 comments on commit db2ea98

Please sign in to comment.