Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix projectRoot reference causing forEach exception #58

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packager/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function openStackFrameInEditor(req, res, next) {
function getAppMiddleware(options) {
return ReactPackager.middleware({
dev: true,
projectRoot: options.projectRoot,
projectRoots: options.projectRoots,
blacklistRE: blacklist(false),
cacheVersion: '2',
polyfillModuleNames: [
Expand All @@ -92,14 +92,14 @@ function getAppMiddleware(options) {
}

function runServer(
options, /* {string projectRoot, bool web, bool dev} */
options, /* {string projectRoots, bool web, bool dev} */
readyCallback
) {
var app = connect()
.use(loadRawBody)
.use(openStackFrameInEditor)
.use(getAppMiddleware(options))
.use(connect.static(options.projectRoot))
.use(connect.static(options.projectRoots))
.use(connect.logger())
.use(connect.compress())
.use(connect.errorHandler());
Expand Down