Strapi admin plugin field component

so my current solution is to use name argument that is passed to the custom field component and decide to show my own component or original strapi component. However I have a new problem. I want to reference strapi’s jsonField object (located at strapi/packages/core/admin/admin/src/content-manager/components/InputJSON/index.js ) webpack does not allow me to compile the project and I keep getting errors like webpack module parse failed: Unexpected token which is weird.
So here is my new question, is there any way that I can use jsonField component in my plugin?