yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.23k stars 1.07k forks source link

Clarify use of `require` in Plugin Tutorial #6320

Open Knagis opened 3 weeks ago

Knagis commented 3 weeks ago

https://yarnpkg.com/advanced/plugin-tutorial#writing-our-first-plugin

has the statement:

// Of course, the regular require implementation remains // available, so feel free to use the require you need for // your use case!

It would be helpful to clarify if there is any difference or not when using regular require for anything other than the bundled modules. For example require("path"). "Feel free" is a vague statement that i guess is meant as "there isn't any difference" but i can't be certain of my interpretation.