Skip to content

Instantly share code, notes, and snippets.

@edvinerikson
Created September 14, 2017 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edvinerikson/52e0843748bfdd4d974ab8948b556352 to your computer and use it in GitHub Desktop.
Save edvinerikson/52e0843748bfdd4d974ab8948b556352 to your computer and use it in GitHub Desktop.
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