diff --git a/packager/react-packager/index.js b/packager/react-packager/index.js index 65892a14d..b9c456e98 100644 --- a/packager/react-packager/index.js +++ b/packager/react-packager/index.js @@ -16,53 +16,7 @@ var debug = require('debug'); var Activity = require('./src/Activity'); exports.createServer = createServer; -exports.middleware = function(options) { - var server = createServer(options); - return server.processRequest.bind(server); -}; - exports.Activity = Activity; - -// Renamed "package" to "bundle". But maintain backwards -// compat. -exports.buildPackage = -exports.buildBundle = function(options, bundleOptions) { - var server = createNonPersistentServer(options); - return server.buildBundle(bundleOptions) - .then(function(p) { - server.end(); - return p; - }); -}; - -exports.buildPrepackBundle = function(options, bundleOptions) { - var server = createNonPersistentServer(options); - return server.buildPrepackBundle(bundleOptions) - .then(function(p) { - server.end(); - return p; - }); -}; - -exports.buildPackageFromUrl = -exports.buildBundleFromUrl = function(options, reqUrl) { - var server = createNonPersistentServer(options); - return server.buildBundleFromUrl(reqUrl) - .then(function(p) { - server.end(); - return p; - }); -}; - -exports.getDependencies = function(options, bundleOptions) { - var server = createNonPersistentServer(options); - return server.getDependencies(bundleOptions) - .then(function(r) { - server.end(); - return r.dependencies; - }); -}; - exports.getOrderedDependencyPaths = function(options, bundleOptions) { var server = createNonPersistentServer(options); return server.getOrderedDependencyPaths(bundleOptions)