mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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
|
||||
const pattern = '**/*.{js,json}'
|
||||
const pattern = '**/*.{js,json,cjs,mjs}'
|
||||
const events = ['add', 'change']
|
||||
let watcher: FSWatcher
|
||||
function watch () {
|
||||
|
Loading…
Reference in New Issue
Block a user