1 | Facade = require('./lib/facade')
|
2 |
|
3 | fsNotFound = -> throw new Error("module 'fs' is not defined in Browsers.")
|
4 |
|
5 | Facade.fs =
|
6 | existsSync: fsNotFound
|
7 | readFileSync: fsNotFound
|
8 | writeFileSync: fsNotFound
|
9 |
|
10 | Facade.requireFile = (file) ->
|
11 | throw new Error("requireFile is suppressed in non-node environment. file: #{file}")
|
12 |
|
13 | Facade.requireJSON = (file) ->
|
14 | throw new Error("requireJSON is suppressed in non-node environment. file: #{file}")
|
15 |
|
16 | module.exports = Facade
|