A wider trade deficit as a result of an influx of imports is usually offset by a rise in inventories in the calculation of GDP. Trade and inventories are the most volatile components of GDP.
The U.S. trade deficit widened sharply in December as imports ... last week showed trade had a surprisingly neutral impact on GDP after being a drag for three straight quarters.