0

I'm not understanding why some babel packages appear within my node_modules, while others do not. I have

  "@babel/plugin-proposal-optional-chaining": "^7.16.5",

in my babel.config.js in the root of the project tree. I did

npm i --save @babel/plugin-proposal-optional-chaining

but the plugin does not appear in my tree afterwards. It does appear in package.json under dev-dependencies, and I added it under dependencies too, followed by npm install.

Any idea why this package seems to install correctly but does not appear in my tree ?

smartblonde
  • 138
  • 1
  • 11
  • What do you mean by "tree"? Do you mean that you are not seeing this module inside node_modules? – Tuhin Dec 15 '21 at 23:02
  • I did a find from the root of the project, which is above node_modules in the hierarchy, so that node_modules is traversed by the find. – smartblonde Dec 15 '21 at 23:10

0 Answers0