Skip to content

Commit

Permalink
Start modularizing the client code.
Browse files Browse the repository at this point in the history
This is the first step toward making the client code not be a terrible
ball of mud. Before, the client code was all in one file because it
needed to initialize some stuff before requiring external modules could
work. Now, a dummy global._hmr[key].initModule() function is placed so
modules can be loaded before HMR is initialized. That does mean that any
modules loaded at this point aren't hot-replaceable but that doesn't
seem like a real issue because I don't know who expects to hot-replace
the HMR internals themselves.
  • Loading branch information
Macil committed Sep 26, 2015
1 parent 56900ab commit 91d8629
Show file tree
Hide file tree
Showing 7 changed files with 766 additions and 734 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
@@ -1,4 +1,5 @@
{
"node": true,
"browser": true
"browser": true,
"-W079": false
}

0 comments on commit 91d8629

Please sign in to comment.