Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
421 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = ready;
|
---|
| 7 |
|
---|
| 8 | // eslint-disable-next-line consistent-return
|
---|
| 9 | function ready(context, callback, req) {
|
---|
| 10 | if (context.state) {
|
---|
| 11 | return callback(context.stats);
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | const name = req && req.url || callback.name;
|
---|
| 15 | context.logger.info(`wait until bundle finished${name ? `: ${name}` : ""}`);
|
---|
| 16 | context.callbacks.push(callback);
|
---|
| 17 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.