browserify-shim


Multiple exports with browserify-shim


Let's say i have a js file like this
function a() {
//...
}
function b() {
//...
}
I want to bundle it up with browserify-shim and export both a and b. Is there a way to do so?
EDIT. Well it looks like it is not possible. In my case i solved issue with browserify.transform. Here's what i had in my gulpfile:
//...
.transform(function(f){
if(/** check filename **/) {
return through(
function(data){this.queue(data + ";var c = {a:a, b:b};");},
function(){this.queue(null);}
);
}
return through();
})
//...
and then in browserify-shim config i export this c variable.

Related Links

Multiple exports with browserify-shim

Categories

HOME
cygwin
azure-stream-analytics
google-cloud-platform
gridview
localization
pda
solaris
mapbox
python-multithreading
google-admin-sdk
character
cfml
enterprise-miner
charles
monit
xcode-ui-testing
fractions
spotipy
paperjs
testcomplete
scrollview
userdefaults
panoramas
send
fossil
browser-extension
swagger-php
ogc
magento-1.9.3
skylink
parser-generator
smoothstate.js
strftime
dapper-simplecrud
jide
getchar
proget
term
openrasta
launchctl
rserve
backbone-collections
cd-burning
branch-prediction
testrail
docpad
redistributable
google-cloud-console
respondcms
appscale
refinerycms
nullable
design-principles
vhosts
microsoft-reporting
include-guards
user-permissions
ejb-2.x
delayed-execution
variadic-templates
nsmenu
insight.database
template-deduction
functional-java
renderer
scrypt
ui-select2
twisted.web
correlated-subquery
subproject
usertype
ilasm
agility.js
procedures
promotion-code
google-floodlight
automationelement
uipagecontrol
collectionviewsource
squishit
silent
django-piston
xpsdocument
firefox-3

Resources

Encrypt Message