mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +08:00
Fix release / minified bundle builds
Summary: Fixes building release builds with the new buck integration. Reviewed By: jeanlauliac Differential Revision: D5002441 fbshipit-source-id: e7716324c7c8dd0bfcaf5b39cf716ac589e948e8
This commit is contained in:
committed by
Facebook Github Bot
parent
11eef69936
commit
1a0e78c4e4
@@ -28,7 +28,8 @@ describe('build setup', () => {
|
||||
expect(prelude).toEqual({
|
||||
dependencies: [],
|
||||
file: {
|
||||
code: 'var __DEV__=true,__BUNDLE_START_TIME__=Date.now();',
|
||||
code: 'var __DEV__=true,__BUNDLE_START_TIME__=' +
|
||||
'global.nativePerformanceNow?global.nativePerformanceNow():Date.now();',
|
||||
path: '',
|
||||
type: 'script',
|
||||
},
|
||||
@@ -41,7 +42,8 @@ describe('build setup', () => {
|
||||
buildSetup(noEntryPoints, {optimize: true}, (error, result) => {
|
||||
const [prelude] = result.modules;
|
||||
expect(prelude.file.code)
|
||||
.toEqual('var __DEV__=false,__BUNDLE_START_TIME__=Date.now();');
|
||||
.toEqual('var __DEV__=false,__BUNDLE_START_TIME__=' +
|
||||
'global.nativePerformanceNow?global.nativePerformanceNow():Date.now();');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user