Releases: browserify/brfs
Releases · browserify/brfs
v2.0.2
- Update static-module from 3.0.0 to 3.0.2 (#93 by @jagonzalr)
v2.0.1
- fix
input.jsfile entries in source maps (#90 by @pirxpilot)
v2.0.0
Update to static-module 3. This adds scope tracking, and keeps fs requires around if they are still used.
Scope tracking
Previously the below:
var fs = require('fs')
function x (fs) { return fs.readFileSync(__filename) }
x({ readFileSync: function () { return 10 } })would compile the fs.readFileSync() call, even though it's not actually referring to the fs module. This may seem contrived but it can happen easily if a file was minified before being passed to brfs, and a million different variables are all named e.
Retain used requires
Previously the below:
var fs = require('fs')
fs.readFileSync(someDynamicValue())
fs.readFileSync(__filename)would compile to:
fs.readFileSync(someDynamicValue())
Buffer('...', 'base64')But now it compiles to:
var fs = require('fs')
fs.readFileSync(someDynamicValue())
Buffer('...', 'base64')This is primarily helpful when bundling for node or electron.
v1.6.1
Update tests so they work with the latest Browserify.
v1.6.0
v1.5.0
the brfs transform now generates source maps in --debug mode.