We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61504e5 + f1124ef commit cf1b1f3Copy full SHA for cf1b1f3
src/index.js
@@ -1,9 +1,9 @@
1
'use strict';
2
3
-const FastBoot = require('fastboot');
4
-const chalk = require('chalk');
5
6
function fastbootExpressMiddleware(distPath, options) {
+ const FastBoot = require('fastboot');
+
7
let opts = options;
8
9
if (arguments.length === 1) {
@@ -66,7 +66,10 @@ function fastbootExpressMiddleware(distPath, options) {
66
};
67
}
68
69
+let chalk;
70
71
function _log(statusCode, message, startTime) {
72
+ chalk = chalk || require('chalk');
73
let color = statusCode === 200 ? 'green' : 'red';
74
let now = new Date();
75
0 commit comments