UNPKG

@softvisio/webpack

Version:
11 lines (7 loc) 310 B
export default async function ( buffer, map, meta ) { const callback = this.async(), options = this.getOptions(); if ( this.cacheable ) this.cacheable(); const config = options.json5.fromJson5( buffer ); callback( null, `export default ${ JSON.stringify( config ) }`, map, meta ); }