Skip to content

After run yarn eject #4310

Closed
Closed
@givingwu

Description

@givingwu

After yarn eject the package.json be changed but the all dependencies be inserted to "dependencies" , not "devDependencies".

It is wrong? right?

i already known it does not influence the bundle.js if i do not import any package under development environment, but it was not comfortable on right way. Many packages was belong to development environment but it shown in dependencies in package.json.

Activity

bondz

bondz commented on Apr 16, 2018

@bondz
Contributor

This has been asked before, see #2657, #2696, #1764, and #3220

Basically, it is like that because some hosts don't install devDependencies on deployments.

You can move the modules back to devDependencies if you want except for react, react-dom, and polyfills used by CRA

locked and limited conversation to collaborators on Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @iansu@bondz@givingwu

        Issue actions

          After run `yarn eject` · Issue #4310 · facebook/create-react-app