commonjs-everywhere
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var canonicalise, esprima, PRELUDE, PRELUDE_NODE, wrapFile; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -6,4 +6,4 @@ var path; | ||
module.exports = function (root, file) { | ||
return ('/' + path.relative(root, file)).replace(/\\/g, '/'); | ||
return ('/' + path.relative(root, path.resolve(root, file))).replace(/\\/g, '/'); | ||
}; | ||
}.call(this); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var bundle, traverseDependencies; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var $0, _, aliasPair, btoa, build, cache$3, cache$4, CJSEverywhere, dep, deps, escodegen, escodegenFormat, fs, handlerPair, knownOpts, match, nopt, opt, optAliases, options, originalEntryPoint, path, positionalArgs, root, startBuild, stdinput; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var CJS_DIR, CORE_MODULES, mod, NODE_CORE_MODULES, path, resolve; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var CORE_MODULES, resolve; |
@@ -1,4 +0,4 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
exports.bundle = require('./bundle'); | ||
exports.cjsify = require('./cjsify'); | ||
exports.traverseDependencies = require('./traverse-dependencies'); |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var canonicalise, CORE_MODULES, fs, isCore, path, resolve, resolvePath; |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 2.0.0-beta6 | ||
// Generated by CoffeeScript 2.0.0-beta7 | ||
void function () { | ||
@@ -3,0 +3,0 @@ var badRequireError, canonicalise, CoffeeScript, esprima, estraverse, fs, md5, path, relativeResolve; |
{ | ||
"name": "commonjs-everywhere", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "CommonJS browser bundler with aliasing, extensibility, and source maps from the minified JS bundle", | ||
@@ -40,7 +40,7 @@ "homepage": "https://github.com/michaelficarra/commonjs-everywhere", | ||
"esprima": "~1.0.2", | ||
"estraverse": "~0.0.4", | ||
"MD5": "~1.0", | ||
"estraverse": "1.3.x", | ||
"MD5": "1.x.x", | ||
"mktemp": "~0.3.0", | ||
"nopt": "~2.1.2", | ||
"resolve": "~0.3.0", | ||
"resolve": "0.5.x", | ||
"buffer-browserify": "*", | ||
@@ -47,0 +47,0 @@ "constants-browserify": ">= 0.0.1", |
@@ -52,2 +52,8 @@ # CommonJS Everywhere | ||
Use a browser-specific version of `/lib/node-compatible.js` (remember to use `root`-relative paths for aliasing). An empty alias target is used to delay errors to runtime when requiring the source module (`fs` in this case). | ||
```bash | ||
cjsify -a /lib/node-compatible.js:/lib/browser-compatible.js -a fs: -x MyLibrary lib/entry-file.js | ||
``` | ||
### Module Interface | ||
@@ -54,0 +60,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1866537
118
+ AddedMD5@1.3.0(transitive)
+ Addedresolve@0.5.1(transitive)
- RemovedMD5@1.0.3(transitive)
- Removedestraverse@0.0.4(transitive)
- Removedresolve@0.3.1(transitive)
UpdatedMD5@1.x.x
Updatedestraverse@1.3.x
Updatedresolve@0.5.x