Closed juanpabloaj closed 7 years ago
If I have this javascript file
// hello.js var hello = function () { return 'hello'; }; var bye = function () { return 'bye bye'; };
I can use hello() with this configuration
hello()
"browserify": { "transform": ["browserify-shim"] }, "browser": { "hello": "./hello.js" }, "browserify-shim": { "hello": {"exports": "hello"} }
And call with
var hello = require('hello'); hello()
How can I use the both functions bye() and hello() ?
bye()
browserify-shim is only capable of handling one export per module so at the moment it cannot accomplish what you're requesting.
If I have this javascript file
I can use
hello()
with this configurationAnd call with
How can I use the both functions
bye()
andhello()
?