mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-26 16:14:16 +03:00
default ext handler just reads the file's contents
This commit is contained in:
parent
ac773daff6
commit
b2f2eb4cb7
@ -14,6 +14,7 @@ __jsc__.evalJSString_withScriptPath code, path
|
||||
console.log 'require tests:'
|
||||
console.log require.resolve 'underscore'
|
||||
console.log require.resolve 'osx'
|
||||
console.log require.resolve 'tabs/tabs'
|
||||
console.log require.resolve 'ace/requirejs/text!ace/css/editor.css'
|
||||
console.log require.resolve 'ace/keyboard/keybinding'
|
||||
console.log '--------------'
|
||||
|
@ -14,11 +14,11 @@ require = (file) ->
|
||||
return __modules[file] if __modules[file]?
|
||||
|
||||
__modules[file] = {} # Fix for circular references
|
||||
__modules[file] = exts[ext]? file
|
||||
__modules[file] = (exts[ext] or (file) -> __read file) file
|
||||
__modules[file]
|
||||
|
||||
defines = []
|
||||
define = (cb) ->
|
||||
define = (cb) ->
|
||||
defines.push ->
|
||||
exports = {}
|
||||
module = exports: exports
|
||||
@ -26,7 +26,6 @@ define = (cb) ->
|
||||
exports
|
||||
|
||||
exts =
|
||||
css: (file) -> __read file
|
||||
js: (file) ->
|
||||
code = __read file
|
||||
__jsc__.evalJSString_withScriptPath code, file
|
||||
|
Loading…
Reference in New Issue
Block a user