Sha256: 76825f88e3818003b1d57e564226b08bf41f19063dedbb517169c2ca2dfb9f81

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

# This (javascript) file is generated from lib/coffee_script/narwhal/loader.coffee

coffeescript: null
factories: {}

loader: {

  # Reload the coffee-script environment from source.
  reload: (topId, path) ->
    coffeescript ||= require('coffee-script')
    factories[topId]: -> coffeescript.makeNarwhalFactory(path)

  # Ensure that the coffee-script environment is loaded.
  load: (topId, path) ->
    factories[topId] ||= this.reload(topId, path)

}

require.loader.loaders.unshift([".coffee", loader])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coffee-script-0.3.1 lib/coffee_script/narwhal/loader.coffee
coffee-script-0.3.0 lib/coffee_script/narwhal/loader.coffee