mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4315a46ff2 | ||
|
|
0fb5827968 |
@@ -1,5 +1,9 @@
|
||||
# sapper changelog
|
||||
|
||||
## 0.16.1
|
||||
|
||||
* Fix file watching regression in previous version
|
||||
|
||||
## 0.16.0
|
||||
|
||||
* Slim down installed package ([#363](https://github.com/sveltejs/sapper/pull/363))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sapper",
|
||||
"version": "0.16.0",
|
||||
"version": "0.16.1",
|
||||
"description": "Military-grade apps, engineered by Svelte",
|
||||
"main": "dist/middleware.ts.js",
|
||||
"bin": {
|
||||
|
||||
@@ -455,8 +455,9 @@ function noop() {}
|
||||
|
||||
function watch_files(pattern: string, events: string[], callback: () => void) {
|
||||
let watcher;
|
||||
let closed = false;
|
||||
|
||||
import('chokidar').then(({ default: chokidar }) => {
|
||||
import('chokidar').then((chokidar) => {
|
||||
if (closed) return;
|
||||
|
||||
watcher = chokidar.watch(pattern, {
|
||||
|
||||
Reference in New Issue
Block a user