Commit f0b6284e authored by nanahira's avatar nanahira

always save promise

parent d3214ef9
......@@ -144,7 +144,7 @@ export function DefinePlugin<T>(
if (type === 'ws') {
const layer = result.result as WebSocketLayer;
ctx.on('dispose', () => layer.close());
} else if (type === 'apply' || type === 'plugin') {
} else {
const mayBePromise = result.result;
if (mayBePromise instanceof Promise) {
this.__promisesToWaitFor.push(mayBePromise);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment