mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Fix building JS code as exported library.
This commit is contained in:
18
webpack.js
18
webpack.js
@@ -16,15 +16,11 @@ var builds = [{
|
|||||||
minimize: true
|
minimize: true
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
||||||
async.series(builds.map(build), function (err) {
|
|
||||||
if (err) {
|
|
||||||
console.error(err);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
var defaultOpts = {
|
var defaultOpts = {
|
||||||
library: 'ripple',
|
// [sic] Yes, this is the spelling upstream.
|
||||||
|
libary: 'ripple',
|
||||||
|
// However, it's fixed in webpack 0.8, so we include the correct spelling too:
|
||||||
|
library: 'ripple'
|
||||||
};
|
};
|
||||||
function build(opts) {
|
function build(opts) {
|
||||||
var opts = extend({}, defaultOpts, opts);
|
var opts = extend({}, defaultOpts, opts);
|
||||||
@@ -37,3 +33,9 @@ function build(opts) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async.series(builds.map(build), function (err) {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user