Excess dependencies

Question

I grabbed gallery block from Gutenberg github (Gallery block) and I wanted to modify it in following way: only first image is output to the html, while the rest are sent to lightbox javascript plugin.

However, when compiled and used, I am getting a bunch of excess dependencies in the frontend like lodash, react, react.dom and so on. Gutenberg does not output these dependencies in the frontend.

How to prevent outputting these dependencies?
they are getting outputed in index.asset.php. I am using create-gutenberg-block to work and compile with blocks.

0
Lovor 3 months 0 Answers 11 views 0

Leave an answer