Skip to content

Commit 870e78d

Browse files
committed
Fix serve issue
1 parent 6c5d024 commit 870e78d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

esbuild-serve.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
*/
66
import { compressionBrowserPlugin } from './esbuild-plugins.mjs';
77
import watPlugin from 'esbuild-plugin-wat';
8+
import esbuild from 'esbuild';
89
// esbuild has TypeScript support by default. It will use .tsconfig
9-
require('esbuild')
10+
esbuild
1011
.context({
1112
entryPoints: ['parquet.ts'],
1213
outfile: 'main.js',
@@ -22,7 +23,7 @@ require('esbuild')
2223
.then((context) => {
2324
context
2425
.serve({
25-
servedir: __dirname,
26+
servedir: './',
2627
})
2728
.then((server) => {
2829
console.log('serving parquetjs', server);
Binary file not shown.

0 commit comments

Comments
 (0)