Your bundler is doing it wrong
Today's bundlers rely on developers to decide where and when the application code should be lazy...
Tags: performance, bundling, javascript, frameworks