Closed jvilk closed 10 years ago
It looks like I'm going to need to define RequireJS shim module files for fs
and path
, as it requires that each module be defined in a separate file. Then, I can alias fs
and path
to these files.
It's not clear how I can do the same for process
without simply making it a global variable in a development build and a scope variable in a release build.
For Buffer
, I can either take the same route as process
, or change our code to use require('Buffer')
.
Just a side note from the commit message:
process
and Buffer
are globals. This is acceptable atm for the dev build, but unacceptable for the release build. I will fix this when I almond-ize doppio.js and force it to expose functionality through a single global.I gave up on chmod
support, as it's irrelevant in the browser. So this is good now.
BrowserFS v0.3.1 brings with it zip file support, proper error codes, less overhead, and some compatibility-breaking changes. Actually, I think it brings with it the new Dropbox and HTML5FS file systems, too.
Namely, we no longer define
BrowserFS.node
.With this upgrade, I plan to:
fs
andpath
modules appropriately, and defineprocess
as a variable within the library scope so classes can treat it as a global. This will enable TypeScript to appropriately typecheck our calls into these modules using the Node typings.node
variable to detemine if we are in the browser to useprocess.platform
.