Skip to content

Commit

Permalink
fix(nitro): watch .mjs and .cjs extensions (closes #352)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 22, 2021
1 parent ddc045e commit cab8faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function createDevServer (nitroContext: NitroContext) {
}

// Watch for dist and reload worker
const pattern = '**/*.{js,json}'
const pattern = '**/*.{js,json,cjs,mjs}'
const events = ['add', 'change']
let watcher: FSWatcher
function watch () {
Expand Down

0 comments on commit cab8faa

Please sign in to comment.