'use babel'

export const compiler = false
export const minifier = false
export function process(contents) {
  const chunks = contents.split(/\r?\n/)
  if (chunks[chunks.length - 1] !== '') {
    chunks.push('')
  }
  return chunks.join('\n')
}

'use babel'

export const compiler = false
export const minifier = false
export function process(contents) {
  const chunks = contents.split(/\r\n|\n/)
  if (chunks[chunks.length - 1] !== '') {
    chunks.push('')
  }
  return {
    contents: chunks.join('\n'),
    sourceMap: null
  }
}

Upgrade to ucompiler v3 API
:arrow_up: Upgrade to ucompiler v3 API
