Yarn PnP

0 min read


Are you a library author trying to make your library compatible with the Plug’n’Play installation strategy? Do you want to use the PnP API for something awesome? If the answer to any of these questions is yes, make sure to visit the PnP API page after reading the introduction!

PnP API

Welcome back, sekarang kita coba untuk bahas yarn plug n play ya guys.. jadi kita mencoba menggunakan plug n play stratgy dalam instalasinya… Jadi untuk langkah termudahnya kita coba bikin aplikasi React ya…

Getting Started

Jadi langkahnya , masuk kedalam folder project dan jalankan command yarn pnp nya… jadi akan seperti ini..

create-react-app --use-pnp
yarn --pnp

Jadi untuk memastikan kalau sudah berjalan bisa cek di package.json nya..

{
"installConfig": {
"pnp": true
}
}

Oke itu aja ya guys thx cyaaa….

Bima Sena

Leave a Reply

Your email address will not be published. Required fields are marked *