Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 676 Bytes

File metadata and controls

9 lines (6 loc) · 676 Bytes

Optimize your package before publishing

⚠️ Please double check that there is no development librairies in the package.json "dependencies" section. Exemple : jest, eslint, webpack, babel, ...

Next, ignore common libraries you don't want to see bundled with your library, but still warn developers that they are required in the parent project, like React for instance:

  • In the "webpack.config.js", add a externals property
  • In the package.json, add a peer dependency corresponding to the installed library you excluded from your final build
  • You can find examples in the package "language-provider" for instance