Skip to content

Commit

Permalink
fix: watch for changes in src dir instead of src/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Jul 9, 2024
1 parent 19106f7 commit 6371d36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/pylon-builder/src/bundler/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export class Bundler {
}

if (options.watch) {
chokidar.watch(this.sfiFilePath).on('change', async () => {
const folder = path.dirname(this.sfiFilePath)

chokidar.watch(folder).on('change', async () => {
await build()

if (options.onWatch) {
Expand Down

0 comments on commit 6371d36

Please sign in to comment.