We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5d9c05 + a64fe26 commit 1a13008Copy full SHA for 1a13008
1 file changed
src/index.js
@@ -2,8 +2,6 @@
2
3
4
function fastbootExpressMiddleware(distPath, options) {
5
- const FastBoot = require('fastboot');
6
-
7
let opts = options;
8
9
if (arguments.length === 1) {
@@ -21,6 +19,7 @@ function fastbootExpressMiddleware(distPath, options) {
21
19
let fastboot = opts.fastboot;
22
20
23
if (!fastboot) {
+ let FastBoot = require('fastboot');
24
fastboot = new FastBoot({
25
distPath: opts.distPath,
26
resilient: opts.resilient
0 commit comments