 'use strict'
 
-try
-    babel = require 'babel-core'
+babel = require 'babel-core'
 bundle = require './bundle'
 parser = require './parser'
 bindingParser = require 'src/binding/parser'

ids = idsKeys = itemsKeys = extensions = queries = requires = null
itemsDeclarations = afterItemCode = null
fileUid = 0

isAnchor = (obj) ->
    assert obj.type is ATTRIBUTE, "isAnchor: type must be an attribute"

    function: (elem) ->
        # arguments
        args = ''
        if args and String(elem.params)
            args += ","
        args += String(elem.params)

        # body
        body = transformByBabel elem.body
        "function(#{args}){#{body}}"
    object: (elem) ->
        json = {}
