search

Home  >  Q&A  >  body text

javascript - How to distinguish development time dependencies from runtime dependencies?

How to determine whether the imported module in package.json is a runtime dependency (dependencies) or a development time dependency (devDependencies), such as which react is?

大家讲道理大家讲道理2752 days ago720

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-14 10:55:59

    dependencies: {
        react: ^15.4.2
    }

    It can be understood this way: what is finally packaged is dependencies; it is just dev that is relied upon during development, such as various babel-plugin-*, *-loader

    reply
    0
  • Cancelreply