browserify-async-define
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -13,3 +13,3 @@ var path = require('path'); | ||
var adPathName = require.resolve('async-define'); | ||
// var adPathName = 'async-define'; | ||
var adModName = '_d'; | ||
@@ -84,3 +84,3 @@ temp.track(); // remove temp files | ||
var name = t[0]; | ||
return "require('" + adPathName + "')(" + quote(label) + ", function(){return " + mangleName(name) + ";});" | ||
return "require('" + adModName + "')(" + quote(label) + ", function(){return " + mangleName(name) + ";});" | ||
}) | ||
@@ -147,2 +147,3 @@ .join('\n'); | ||
b.require(adPathName, { expose: adModName }); | ||
@@ -195,2 +196,3 @@ b.transform(transformer.requireTransform, { | ||
var b = browserify(f, {basedir: process.cwd(), paths: ['./node_modules']}); | ||
b.require(adPathName, { expose: adModName }); | ||
if(opts.collapse) { | ||
@@ -197,0 +199,0 @@ b.plugin(bundleCollapser); |
{ | ||
"name": "browserify-async-define", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Browserify plugin for async-define", | ||
@@ -24,10 +24,8 @@ "main": "index.js", | ||
"react": "^0.14.5", | ||
"async-define": "^3.0.3", | ||
"async-define": "^3.0.4", | ||
"react-dom": "^0.14.5", | ||
"npm-release": "^1.0.0" | ||
}, | ||
"peerDependencies": { | ||
"async-define": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"async-define": "^3.0.4", | ||
"browserify-transform-tools": "^1.5.0", | ||
@@ -34,0 +32,0 @@ "bundle-collapser": "^1.2.1", |
@@ -6,3 +6,3 @@ var path = require('path'); | ||
var mangleName = utils.mangleName; | ||
var adPathName = require.resolve('async-define'); | ||
var adModName = '_d'; | ||
@@ -13,3 +13,3 @@ function wrap(exports, deps, sym, body){ | ||
var s = sym ? quote(sym) + "," : ""; | ||
var out = ["require('" + adPathName + "')(" + s + d + "function (" + a + "){"]; | ||
var out = ["require('" + adModName + "')(" + s + d + "function(" + a + "){"]; | ||
out.push(body); | ||
@@ -16,0 +16,0 @@ if (sym){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13801
290
+ Addedasync-define@^3.0.4