Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Use most current manifest_data #713

Merged
merged 1 commit into from
Jul 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/api/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Watcher extends EventEmitter {
}
port: number;
closed: boolean;

dev_port: number;
live: boolean;
hot: boolean;
Expand Down Expand Up @@ -82,7 +82,7 @@ class Watcher extends EventEmitter {
hot,
'devtools-port': devtools_port,
bundler,
port = +process.env.PORT,
port = +process.env.PORT,
ext
}: Opts) {
super();
Expand Down Expand Up @@ -192,16 +192,14 @@ class Watcher extends EventEmitter {
},
() => {
try {
const new_manifest_data = create_manifest_data(routes, this.ext);
manifest_data = create_manifest_data(routes, this.ext);
create_app({
bundler: this.bundler,
manifest_data, // TODO is this right? not new_manifest_data?
manifest_data,
dev: true,
dev_port: this.dev_port,
cwd, src, dest, routes, output
});

manifest_data = new_manifest_data;
} catch (error) {
this.emit('error', <ErrorEvent>{
type: 'manifest',
Expand Down Expand Up @@ -523,4 +521,4 @@ function watch_dir(
closed = true;
}
};
}
}