web-infra-dev / rspack

A fast Rust-based web bundler 🦀️

Home Page:https://rspack.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: webpackChunkName not used if name contains period

JohnDaly opened this issue · comments

System Info

rspack v0.6.3

Details

The magic comment in this example will be respected by Webpack, but not by rspack

import(/* webpackChunkName: "component.Mod" */ './mod');

See linked repro for full example

Reproduce link

https://github.com/JohnDaly/rspack-magic-comment-repro

Reproduce Steps

  1. npm run dev
  2. npm run build
  3. Notice that the assets generated by Webpack use the webpackChunkName. The assets generated by rspack do not