From 30ea6bd7ab848df678446014998e1b89ca61be1a Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 12 Apr 2015 11:40:57 +0100 Subject: [PATCH] allow different syntax --- src/static/js/pluginfw/plugins.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/static/js/pluginfw/plugins.js b/src/static/js/pluginfw/plugins.js index 25c0cffe5..625472121 100644 --- a/src/static/js/pluginfw/plugins.js +++ b/src/static/js/pluginfw/plugins.js @@ -23,9 +23,12 @@ exports.ensure = function (cb) { name: name, location: packages[name].realPath } - }) + }), + // nodeRequire gives us the ability to access node.js native + // require syntax from within requirejs, to do this use the syntax + // var fs = requirejs.nodeRequire("fs"); + nodeRequire: require }); - exports.update(cb); }); else