diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-04-24 12:07:48 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-04-24 12:17:23 +0800 |
commit | 11f1ccf3ff92d5d1e32e0451ffd5069615e29867 (patch) | |
tree | 977c439c4fc64ec561dfcdf9eba7872f1eaad175 /packages/website/ts/index.tsx | |
parent | 10a379077c551887bc41dc33197298540f28d7c6 (diff) | |
download | dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar.gz dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar.bz2 dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar.lz dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar.xz dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.tar.zst dexon-sol-tools-11f1ccf3ff92d5d1e32e0451ffd5069615e29867.zip |
Lay out wallet and relayers
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r-- | packages/website/ts/index.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index d99187151..7b7a7eb2e 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -34,9 +34,14 @@ import 'less/all.less'; // cause we only want to import the module when the user navigates to the page. // At the same time webpack statically parses for System.import() to determine bundle chunk split points // so each lazy import needs it's own `System.import()` declaration. -const LazyPortal = createLazyComponent('LegacyPortal', async () => - System.import<any>(/* webpackChunkName: "legacyPortal" */ 'ts/containers/legacy_portal'), -); +const LazyPortal = + utils.isDevelopment() || utils.isStaging() + ? createLazyComponent('Portal', async () => + System.import<any>(/* webpackChunkName: "portal" */ 'ts/containers/portal'), + ) + : createLazyComponent('LegacyPortal', async () => + System.import<any>(/* webpackChunkName: "legacyPortal" */ 'ts/containers/legacy_portal'), + ); const LazyZeroExJSDocumentation = createLazyComponent('Documentation', async () => System.import<any>(/* webpackChunkName: "zeroExDocs" */ 'ts/containers/zero_ex_js_documentation'), ); |