deps: update to rollup-plugin-node-resolve
MODIFY
package-lock.json
package-lock.json
"dev": true
},
"@types/node": {
- "version": "12.6.2",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-12.6.2.tgz",
- "integrity": "sha512-gojym4tX0FWeV2gsW4Xmzo5wxGjXGm550oVUII7f7G5o4BV6c7DBdiG1RRQd+y1bvqRyYtPfMK85UM95vsapqQ==",
+ "version": "12.7.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz",
+ "integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==",
"dev": true
},
"@types/resolve": {
"integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=",
"dev": true
},
+ "estree-walker": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
+ "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
+ "dev": true
+ },
"esutils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
}
},
"rollup": {
- "version": "1.16.7",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.16.7.tgz",
- "integrity": "sha512-P3GVcbVSLLjHWFLKGerYRe3Q/yggRXmTZFx/4WZf4wzGwO6hAg5jyMAFMQKc0dts8rFID4BQngfoz6yQbI7iMQ==",
+ "version": "1.21.4",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.21.4.tgz",
+ "integrity": "sha512-Pl512XVCmVzgcBz5h/3Li4oTaoDcmpuFZ+kdhS/wLreALz//WuDAMfomD3QEYl84NkDu6Z6wV9twlcREb4qQsw==",
"dev": true,
"requires": {
"@types/estree": "0.0.39",
- "@types/node": "^12.0.10",
- "acorn": "^6.1.1"
+ "@types/node": "^12.7.5",
+ "acorn": "^7.0.0"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.0.0.tgz",
+ "integrity": "sha512-PaF/MduxijYYt7unVGRuds1vBC9bFxbNf+VWqhOClfdgy7RlVkQqt610ig1/yxTgsDIfW1cWDel5EBbOy3jdtQ==",
+ "dev": true
+ }
}
},
"rollup-plugin-node-resolve": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.4.tgz",
- "integrity": "sha512-t/64I6l7fZ9BxqD3XlX4ZeO6+5RLKyfpwE2CiPNUKa+GocPlQhf/C208ou8y3AwtNsc6bjSk/8/6y/YAyxCIvw==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-5.2.0.tgz",
+ "integrity": "sha512-jUlyaDXts7TW2CqQ4GaO5VJ4PwwaV8VUGA7+km3n6k6xtOEacf61u0VXwN80phY/evMcaS+9eIeJ9MOyDxt5Zw==",
"dev": true,
"requires": {
"@types/resolve": "0.0.8",
"builtin-modules": "^3.1.0",
"is-module": "^1.0.0",
- "resolve": "^1.10.0"
+ "resolve": "^1.11.1",
+ "rollup-pluginutils": "^2.8.1"
+ }
+ },
+ "rollup-pluginutils": {
+ "version": "2.8.2",
+ "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
+ "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",
+ "dev": true,
+ "requires": {
+ "estree-walker": "^0.6.1"
}
},
"run-async": {

MODIFY
package.json
package.json
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0",
"prettier": "^1.17.1",
- "rollup": "^1.1.0",
- "rollup-plugin-node-resolve": "^4.0.0",
+ "rollup": "^1.21.4",
+ "rollup-plugin-node-resolve": "^5.2.0",
"tape": "^4.9.2"
},
"dependencies": {

MODIFY
scripts/build-intermediate.js
scripts/build-intermediate.js
@@ -56,13 +56,17 @@ function process(code, map) {
function build() {
bundle().then(o => {
const { output } = o;
+ let foundChunk = false;
for (const chunkOrAsset of output) {
if (chunkOrAsset.isAsset) {
throw Error(`not expecting an asset: ${chunkOrAsset.fileName}`);
}
+ if (foundChunk) {
+ throw Error(`too many chunks: ${chunkOrAsset.fileName}`);
+ }
+ foundChunk = true;
const { code, map } = chunkOrAsset;
process(code, map);
- return; // there should be only one chunk, hopefully
}
});
}

deps: update to rollup-plugin-node-resolve