Skip to content

[Bug]: source code content was incorrectly replaced to filename hash by realContentHash. #8474

@bigbossx

Description

@bigbossx

System Info

rsbuild version: 1.0.19

// use in project
export const lazyLoadDateHolidays = () => {
  return import(
    /* webpackChunkName: "date-holidays"*/
    /* webpackPrefetch: true */
    'date-holidays'
  );
};

break down in production build

Image

Details

  • is it stable reproduce ? No, i can't provider a mini reproduce

  • webpack has some problem?No, only happen with rsbuild

maybe rspack need a better way to replace hash content in chunk, not global replace

please cc @chenjiahan btw, thanks for your quick answer in wechat. help me a lot

Reproduce link

No response

Reproduce Steps

source code was break down in

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsame as webpackThe behavior is the same as Webpack

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions