From af67937bbaefa9a7e04ad52299e4d3b9af60a178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Jim=C3=A9nez=20Es=C3=BAn?= Date: Thu, 15 Jun 2017 10:29:04 -0700 Subject: [PATCH] Export source maps utilities Reviewed By: kittens Differential Revision: D5249991 fbshipit-source-id: e2ad21bfa3497bc08c5afdcb0c7d9b76dc5dcc25 --- packages/metro-bundler/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/metro-bundler/src/index.js b/packages/metro-bundler/src/index.js index ac061995..f3671655 100644 --- a/packages/metro-bundler/src/index.js +++ b/packages/metro-bundler/src/index.js @@ -17,6 +17,8 @@ const TransformCaching = require('./lib/TransformCaching'); const debug = require('debug'); const invariant = require('fbjs/lib/invariant'); +const {fromRawMappings, compactMapping} = require('./Bundler/source-map'); + import type {PostProcessModules, PostMinifyProcess} from './Bundler'; import type Server from './Server'; import type {GlobalTransformCache} from './lib/GlobalTransformCache'; @@ -24,6 +26,7 @@ import type {TransformCache} from './lib/TransformCaching'; import type {Reporter} from './lib/reporting'; import type {HasteImpl} from './node-haste/Module'; +exports.sourceMaps = {fromRawMappings, compactMapping}; exports.createServer = createServer; exports.Logger = Logger;