bundler: don't emit chunks for import() targets referenced only from dead code (#39591)