Skip to content

Commit f029543

Browse files
Fix entryPoints and switch sourcemap to external
1 parent b812f70 commit f029543

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/bin/bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const hydrogenAssets = joinPath(hydrogenPath, 'dist/assets/hydrogen/**/*')
4040

4141
esBuild({
4242
bundle: true,
43-
entryPoints: ['./src/index.ts'],
43+
entryPoints: ['./src/index.ts', './src/hooks/prerun.ts', './src/hooks/postrun.ts'],
4444
outdir: './dist',
4545
platform: 'node',
4646
format: 'esm',
@@ -53,7 +53,7 @@ esBuild({
5353
},
5454
inject: ['../../bin/bundling/cjs-shims.js'],
5555
external,
56-
sourcemap: true,
56+
sourcemap: 'external',
5757
loader: {'.node': 'copy'},
5858
splitting: true,
5959
// these tree shaking and minify options remove any in-source tests from the bundle

0 commit comments

Comments
 (0)