mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
fix(nitro): watch .mjs and .cjs extensions (closes #352)
This commit is contained in:
parent
77874bf4d2
commit
7fee983b52
@ -93,7 +93,7 @@ export function createDevServer (nitroContext: NitroContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Watch for dist and reload worker
|
// Watch for dist and reload worker
|
||||||
const pattern = '**/*.{js,json}'
|
const pattern = '**/*.{js,json,cjs,mjs}'
|
||||||
const events = ['add', 'change']
|
const events = ['add', 'change']
|
||||||
let watcher: FSWatcher
|
let watcher: FSWatcher
|
||||||
function watch () {
|
function watch () {
|
||||||
|
Loading…
Reference in New Issue
Block a user