mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Make uglify not append //# sourceMappingURL=
Summary: We also need a more recent version of uglify that supports this Reviewed By: martinbigio Differential Revision: D3024959 fb-gh-sync-id: f9efdddceda4f726567c39884c844a8e74e6e09d shipit-source-id: f9efdddceda4f726567c39884c844a8e74e6e09d
This commit is contained in:
parent
ab926cca33
commit
dc4d4863a2
@ -39,7 +39,7 @@ describe('Minification:', () => {
|
|||||||
expect(uglify.minify).toBeCalledWith(code, objectContaining({
|
expect(uglify.minify).toBeCalledWith(code, objectContaining({
|
||||||
fromString: true,
|
fromString: true,
|
||||||
inSourceMap: map,
|
inSourceMap: map,
|
||||||
outSourceMap: filename,
|
outSourceMap: true,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ function minify(filename, code, sourceMap) {
|
|||||||
const minifyResult = uglify.minify(code, {
|
const minifyResult = uglify.minify(code, {
|
||||||
fromString: true,
|
fromString: true,
|
||||||
inSourceMap: sourceMap,
|
inSourceMap: sourceMap,
|
||||||
outSourceMap: filename,
|
outSourceMap: true,
|
||||||
output: {
|
output: {
|
||||||
ascii_only: true,
|
ascii_only: true,
|
||||||
screw_ie8: true,
|
screw_ie8: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user