Cannot use angular-formly in kibana plugin

when i import fromly from 'angular-formly', kibana tells me 'Uncaught ReferenceError: require is not defined', why?

Could you provide a code snippet? Thanks!