How to handle third-party references in components

wrote a component that wants to upload to npm
, but this component references some third-party libraries
and doesn"t want to package it into the component

I hope to introduce these third-party libraries at the same time in the use of this component

what should I do with this

Apr.15,2022

1. When you upload your component to npm, you only need to upload your own code
2. You rely on components and libraries written in package.json, do not need to be packaged into your own code, if packaged, that is the way you output the package


you need to introduce third-party libraries into package.json, if the development needs to be written in devDependencies, if it is a production dependency written in dependencies. In this way, when others use your components, they will automatically install the corresponding dependent libraries into the project.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9633d-2efee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9633d-2efee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?