Skip to content

Not split the vendor code and app code after updating v5.0.0 #11903

Open
@heroboy

Description

@heroboy

Describe the bug

According to this, and my previous create-react-app@4.0.3:
https://create-react-app.dev/docs/production-build#static-file-caching

After build, it will generate three js files.
But now , only main.[hash].js is generated.

Did you try recovering your dependencies?

No. I just run npm i -s react-scripts@5.0.0

Which terms did you search for in User Guide?

vendor code

Environment

Environment Info:

current version of create-react-app: 5.0.0
running from C:\Users\heroboy\AppData\Roaming\npm\node_modules\create-react-app

System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Binaries:
Node: 17.2.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 97.0.4692.71
Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.55)
Internet Explorer: 11.0.19041.1202
npmPackages:
react: ^17.0.1 => 17.0.1
react-dom: ^17.0.1 => 17.0.1
react-scripts: 5.0.0 => 5.0.0
npmGlobalPackages:
create-react-app: Not Found

(paste the output of the command here.)

Steps to reproduce

(Write your steps here:)

Expected behavior

(Write what you thought would happen.)

Actual behavior

(Write what happened. Please add screenshots!)

Reproducible demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions