mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
@@ -175,7 +175,7 @@ exports.register = -> require './register'
|
||||
|
||||
# Throw error with deprecation warning when depending upon implicit `require.extensions` registration
|
||||
if require.extensions
|
||||
for ext in @FILE_EXTENSIONS
|
||||
for ext in @FILE_EXTENSIONS then do (ext) ->
|
||||
require.extensions[ext] ?= ->
|
||||
throw new Error """
|
||||
Use CoffeeScript.register() or require the coffee-script/register module to require #{ext} files.
|
||||
|
||||
Reference in New Issue
Block a user