diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-02-17 14:37:37 -0800 |
---|---|---|
committer | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2015-03-13 13:54:34 -0700 |
commit | 7bde3f1a8f53d82992a8fed73e5f93159bb400b3 (patch) | |
tree | 63d4951ae996ac83ff0f0292f7ce241bdb3c935d /test/fixtures/printB.js | |
parent | 53e200acc2b58fc3b33505b61a2f60d542e85f20 (diff) | |
download | android-node-v8-7bde3f1a8f53d82992a8fed73e5f93159bb400b3.tar.gz android-node-v8-7bde3f1a8f53d82992a8fed73e5f93159bb400b3.tar.bz2 android-node-v8-7bde3f1a8f53d82992a8fed73e5f93159bb400b3.zip |
src: add -r/--require flags for preloading modules
-r/--require can be used to preload modules on node startup. The option
takes a single module name. The option can be repeated as necessary to
preload multiple modules.
This patch allows 'vendors' (such a cloud host) to inject functionality
that gets executed at application startup without requiring an explicit
require from the user's application. This can be useful to load vendor
specific application monitoring APIs transparently.
PR-URL: https://github.com/iojs/io.js/pull/881
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'test/fixtures/printB.js')
-rw-r--r-- | test/fixtures/printB.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/printB.js b/test/fixtures/printB.js new file mode 100644 index 0000000000..241b6bdcf6 --- /dev/null +++ b/test/fixtures/printB.js @@ -0,0 +1 @@ +console.log('B') |