Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/haul-preset-0.60/src/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ export default function getDefaultConfig(
minimize: !!minify,
debug: dev,
}),
/**
* All chunks will be combined into a single bundle anyway - so
* combine all chunks into one to avoid creating other issues e.g.
* https://github.com/callstack/haul/issues/701. They might otherwise
* be created e.g. by calls to `import()`.
*/
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
resolve: {
plugins: [
Expand Down