mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 23:55:23 +00:00
don't use full path to source map in bundles
Summary: This shortens the source map URL to its basename for bundles built via the command line API. This makes builds reproducible across different file system locations. Reviewed By: michalgr Differential Revision: D3684263 fbshipit-source-id: 2d5fdb5c5d0aa229f5a85465b2d1919f54e33d55
This commit is contained in:
parent
915345bd01
commit
6ead260508
@ -28,7 +28,7 @@ function buildBundle(args, config, output = outputBundle, packagerInstance) {
|
|||||||
|
|
||||||
const requestOpts = {
|
const requestOpts = {
|
||||||
entryFile: args.entryFile,
|
entryFile: args.entryFile,
|
||||||
sourceMapUrl: args.sourcemapOutput,
|
sourceMapUrl: path.basename(args.sourcemapOutput),
|
||||||
dev: args.dev,
|
dev: args.dev,
|
||||||
minify: !args.dev,
|
minify: !args.dev,
|
||||||
platform: args.platform,
|
platform: args.platform,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user