Created
September 14, 2017 09:45
-
-
Save edvinerikson/52e0843748bfdd4d974ab8948b556352 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { query } from './RouteA'; | |
const loadRoute = () => import('./RouteA'); | |
// I want query to be duplicated in both chunks but I don't want the component exported as default to be included in this chunk. | |
// both are ES modules | |
// webpack currently merges these two into the same chunk. | |
<RelayRoute path="/route-a" query={query} component={loadRoute} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment