UNPKG

export-loader

Version:

A webpack loader that allowes to write a Golang style exports.

10 lines (9 loc) 249 B
function handleClassDeclaration(insertKeyFunc, debug, { id }){ if(!id) throw new Error('handleClassDeclaration:id was not passed') let { name } = id debug(`Class: ${name}`) insertKeyFunc(name) } module.exports = { handleClassDeclaration }