Skip to content

fix(server): prevent require undefined module#963

Closed
dciccale wants to merge 1 commit into
angular-fullstack:canaryfrom
dciccale:canary
Closed

fix(server): prevent require undefined module#963
dciccale wants to merge 1 commit into
angular-fullstack:canaryfrom
dciccale:canary

Conversation

@dciccale

Copy link
Copy Markdown
Contributor

the previous code would actually require(./undefined.js) if the NODE_ENV is not defined

the previous code would actually require(./undefined.js) if the NODE_ENV is not defined
@Awk34

Awk34 commented May 13, 2015

Copy link
Copy Markdown
Collaborator

NODE_ENV should always be set though

@dciccale

Copy link
Copy Markdown
Contributor Author

i know, but why there is an || operator in the first place?

@Awk34 Awk34 closed this Jun 22, 2015
@Awk34

Awk34 commented Jun 22, 2015

Copy link
Copy Markdown
Collaborator

I think that there's a better way to solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants