package.json: update dependencies
Also update to rollup-1.1.0, which changes the API slightly, so
build-intermediate.js was changed to match.
MODIFY
package.json
package.json
"build": "git submodule update --init --recursive && node scripts/build-intermediate.js && rollup --format=iife --output.name=SES --output.exports=named --sourcemap --file=dist/ses-shim.js -- src/index.js"
},
"devDependencies": {
- "esm": "^3.0.37",
- "rollup": "^0.63.4",
- "rollup-plugin-node-resolve": "^3.3.0",
- "tape": "^4.9.0"
+ "esm": "^3.1.0",
+ "rollup": "^1.1.0",
+ "rollup-plugin-node-resolve": "^4.0.0",
+ "tape": "^4.9.2"
},
"dependencies": {},
"repository": {

MODIFY
scripts/build-intermediate.js
scripts/build-intermediate.js
@@ -52,8 +52,15 @@ function process(code, map) {
function build() {
bundle().then(function(o) {
- let { code, map } = o;
+ const { output } = o;
+ for (const chunkOrAsset of output) {
+ if (chunkOrAsset.isAsset) {
+ throw Error(`not expecting an asset: ${chunkOrAsset.fileName}`);
+ }
+ const { code, map } = chunkOrAsset;
process(code, map);
+ return; // there should be only one chunk, hopefully
+ }
});
}

package.json: update dependencies

Also update to rollup-1.1.0, which changes the API slightly, so
build-intermediate.js was changed to match.