aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/index.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-04-24 12:07:48 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-05-05 02:04:58 +0800
commit58794fc8e9ac473154ead395452b8e43c10f5cd7 (patch)
tree7df72109441e600ff7543f3632a24fc78f955302 /packages/website/ts/index.tsx
parent91fdd6fc292327c5f021d2718d7e9aa0dd1b39ca (diff)
downloaddexon-0x-contracts-58794fc8e9ac473154ead395452b8e43c10f5cd7.tar.gz
dexon-0x-contracts-58794fc8e9ac473154ead395452b8e43c10f5cd7.tar.zst
dexon-0x-contracts-58794fc8e9ac473154ead395452b8e43c10f5cd7.zip
Lay out wallet and relayers
Diffstat (limited to 'packages/website/ts/index.tsx')
-rw-r--r--packages/website/ts/index.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 9535dd222..1b1255214 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'),
);