diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-05-09 01:14:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 01:14:33 +0800 |
commit | e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab (patch) | |
tree | 010c0055a05845d8d21a06adee3a5a03e769d445 /packages/website/ts/index.tsx | |
parent | 73c6f11c9c19f5332ba7f02811a5386b844f9357 (diff) | |
parent | 939e2c70c4a319ac150c874791bb9696adb6481a (diff) | |
download | dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar.gz dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar.bz2 dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar.lz dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar.xz dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.tar.zst dexon-sol-tools-e9d70b7b1edb5089a6e5e2a9ee8c964ab4b4d4ab.zip |
Merge pull request #556 from 0xProject/feature/website/portal-v2
Add new top-level portal component with wallet and relayer index layout
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 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'), ); |