nl_tokens: Normalize babel plugins
pl_tokens: function normalizeBabelPlugins ( plugins , <mask> , buildManager ) { if ( typeof plugins === 'function' ) { plugins = plugins ( file ) ; } plugins = plugins ? [ ] . concat ( plugins ) : [ ] ; if ( ! hasBabelDepPlugin ( plugins ) ) { // add npm resolve plugin plugins . push ( DEP_PLUGIN_NAME ) ; } return ( plugins || [ ] ) . map ( item => { if ( typeof item === 'string' ) { let result = BUILTIN_PLUGINS [ item ] ; if ( typeof result === 'function' ) { return result ( file , buildManager ) ; } } return item ; } ) ; }