1234567891011121314151617181920212223242526 |
- "use strict";
- function ready(context, callback, req) {
- if (context.state) {
- callback(context.stats);
- return;
- }
- const name = req && req.url || callback.name;
- context.logger.info(`wait until bundle finished${name ? `: ${name}` : ""}`);
- context.callbacks.push(callback);
- }
- module.exports = ready;
|