Skip to content

Commit

Permalink
Explain JsImage in practical terms
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava committed Aug 6, 2015
1 parent b9b329e commit 6dc2e0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/isobuild/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,16 @@ class ClientTarget extends Target {
// A JsImage can be loaded into its own new JavaScript virtual
// machine, or it can be loaded into an existing virtual machine as a
// plugin.

// In real life, JsImage is usually a representation for two things:
// 1. A server program of an App that contains all client programs as
// well (as they are served by the server program to the browsers).
// 2. A built Build Plugin program - a piece of software built out of
// a Build Plugin that is ran during the build process of other
// targets.
// Usually, a Build Plugin is a piece of software that is very similar
// to a server-only app: it has some code, it uses Meteor packages,
// and sometimes it is written in a language that compiles to JS.
class JsImage {
constructor() {
// Array of objects with keys:
Expand Down

0 comments on commit 6dc2e0b

Please sign in to comment.