source: trip-planner-front/node_modules/webpack-dev-middleware/dist/utils/ready.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 421 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = ready;
7
8// eslint-disable-next-line consistent-return
9function 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.