Reduce rollup warnings

This commit is contained in:
Michael Vines 2018-08-24 08:22:54 -07:00
parent 4ca59533a4
commit 2ccabce064
1 changed files with 19 additions and 0 deletions

View File

@ -64,6 +64,25 @@ function generateConfig(configType) {
format: 'es',
},
];
// Quash 'Unresolved dependencies' complaints for modules listed in the
// package.json "dependencies" section. Unfortunately this list is manually
// maintained.
config.external = [
'assert',
'babel-runtime/core-js/promise',
'babel-runtime/helpers/asyncToGenerator',
'babel-runtime/helpers/classCallCheck',
'babel-runtime/helpers/createClass',
'babel-runtime/helpers/toConsumableArray',
'babel-runtime/helpers/typeof',
'babel-runtime/regenerator',
'bs58',
'jayson/lib/client/browser',
'node-fetch',
'superstruct',
'tweetnacl',
];
break;
default:
throw new Error(`Unknown configType: ${configType}`);