export default function parseMeta ( meta ? ) { if ( ! meta ) { return { } ; } if ( typeof meta === 'string' ) { meta = [ meta ] ; } const parsed = { } ; for ( const item of meta ) { const [ key , ... rest ] = item . split ( '=' ) ; parsed [ key ] = rest . join ( '=' ) ; } return parsed ; }